30 #ifndef AMATH_CHAR_BUFFER_H 31 #define AMATH_CHAR_BUFFER_H 54 void EnsureSize(
unsigned int blocksize,
unsigned int blocks);
65 bool Is(
const char* string)
const;
69 void Append(
const char* source);
71 void Append(
const char c,
unsigned int count);
void Append(const char c)
bool RemoveTrailing(const char c)
CharBuffer(unsigned int size)
Initialize while allocating specified amount of memory.
bool Is(const char *string) const
Compare content of CharBuffer with string)
void ClearBuffer()
Release memory in buffer.
bool RemoveTrailing(const char *string)
void Append(const char *source)
CharBuffer()
Initialize without allocating memory.
void EnsureGrowth(unsigned int size)
void Copy(CharBuffer *buf)
bool Contains(const char c) const
void ClearAndCopy(const char *source)
Release memory, allocate and copy source.
void EnsureSize(unsigned int blocksize, unsigned int blocks)
void Append(const char c, unsigned int count)
static const unsigned int minimumSize
Encapsulate an character array which can be used as a string.
void EnsureSize(unsigned int size)
Ensure a memory block of specified size is allocated.
void ClearAndAlloc(unsigned int size)
Release memory and allocate new size.