stringbuffer.h
// Copyright (c) 2002 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_STRINGBUFFER_H
#define RUDIMENTS_STRINGBUFFER_H
#include <rudiments/private/stringbufferincludes.h>
class stringbufferprivate;
class RUDIMENTS_DLLSPEC stringbuffer : public variablebuffer {
public:
stringbuffer();
stringbuffer(char *initialcontents,
size_t initialsize,
size_t increment);
stringbuffer(const stringbuffer &s);
stringbuffer &operator=(const stringbuffer &s);
~stringbuffer();
void setPosition(size_t pos);
size_t getPosition();
stringbuffer *write(const unsigned char *string);
stringbuffer *write(const unsigned char *string,
size_t size);
stringbuffer *write(const char *string);
stringbuffer *write(const char *string, size_t size);
stringbuffer *write(char character);
stringbuffer *write(int16_t number);
stringbuffer *write(int32_t number);
stringbuffer *write(int64_t number);
stringbuffer *write(unsigned char character);
stringbuffer *write(uint16_t number);
stringbuffer *write(uint32_t number);
stringbuffer *write(uint64_t number);
stringbuffer *write(float number);
stringbuffer *write(float number, uint16_t scale);
stringbuffer *write(float number, uint16_t precision,
uint16_t scale);
stringbuffer *write(double number);
stringbuffer *write(double number, uint16_t scale);
stringbuffer *write(double number, uint16_t precision,
uint16_t scale);
stringbuffer *append(const unsigned char *string);
stringbuffer *append(const unsigned char *string,
size_t size);
stringbuffer *append(const char *string);
stringbuffer *append(const char *string, size_t size);
stringbuffer *append(char character);
stringbuffer *append(int16_t number);
stringbuffer *append(int32_t number);
stringbuffer *append(int64_t number);
stringbuffer *append(unsigned char character);
stringbuffer *append(uint16_t number);
stringbuffer *append(uint32_t number);
stringbuffer *append(uint64_t number);
stringbuffer *append(int16_t number, uint16_t zeropadding);
stringbuffer *append(int32_t number, uint16_t zeropadding);
stringbuffer *append(int64_t number, uint16_t zeropadding);
stringbuffer *append(uint16_t number, uint16_t zeropadding);
stringbuffer *append(uint32_t number, uint16_t zeropadding);
stringbuffer *append(uint64_t number, uint16_t zeropadding);
stringbuffer *append(float number);
stringbuffer *append(float number, uint16_t scale);
stringbuffer *append(float number, uint16_t precision,
uint16_t scale);
stringbuffer *append(double number);
stringbuffer *append(double number, uint16_t scale);
stringbuffer *append(double number, uint16_t precision,
uint16_t scale);
void truncate(size_t pos);
void truncate();
void clear();
const char *getString();
char *detachString();
size_t getStringLength();
#include <rudiments/private/stringbuffer.h>
};
#endif