stringbuffer.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_STRINGBUFFER_H
#define RUDIMENTS_STRINGBUFFER_H
#include <rudiments/private/stringbufferincludes.h>
class RUDIMENTS_DLLSPEC stringbuffer : public bytebuffer {
public:
stringbuffer();
stringbuffer(size_t initialsize);
stringbuffer(char *initialcontents, size_t initialsize);
stringbuffer(const stringbuffer &s);
stringbuffer &operator=(const stringbuffer &s);
~stringbuffer();
void setPosition(size_t pos);
size_t getPosition();
ssize_t write(const unsigned char *string);
ssize_t write(const unsigned char *string, size_t size);
ssize_t write(const char *string);
ssize_t write(const char *string, size_t length);
ssize_t write(char character);
ssize_t write(int16_t number);
ssize_t write(int32_t number);
ssize_t write(int64_t number);
ssize_t write(unsigned char character);
ssize_t write(uint16_t number);
ssize_t write(uint32_t number);
ssize_t write(uint64_t number);
ssize_t write(float number);
ssize_t write(float number, uint16_t scale);
ssize_t write(float number, uint16_t precision,
uint16_t scale);
ssize_t write(double number);
ssize_t write(double number, uint16_t scale);
ssize_t 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 length);
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();
void clear(size_t initialsize);
void clear(char *initialcontents, size_t initialsize);
const char *getString();
char *detachString();
size_t getStringLength();
};
#include <rudiments/private/stringbufferinlines.h>
#endif
bytebuffer
Definition: bytebuffer.h:13
bytebuffer::append
bytebuffer * append(const unsigned char *data, size_t size)
bytebuffer::setPosition
void setPosition(size_t pos)
bytebuffer::clear
void clear()
bytebuffer::truncate
virtual void truncate()
bytebuffer::write
ssize_t write(const unsigned char *data, size_t size)
bytebuffer::operator=
bytebuffer & operator=(const bytebuffer &v)
bytebuffer::getPosition
size_t getPosition()
character
Definition: character.h:11
stringbuffer
Definition: stringbuffer.h:13