|
| | GenericStringBuffer () |
| | Create an empty buffer with the default initial capacity. More...
|
| |
| | GenericStringBuffer (Size initialCapacity, Float newResizeFactor=DEFAULT_RESIZE_FACTOR) |
| | Create an empty buffer with the specified initial capacity and resize factor. More...
|
| |
| | GenericStringBuffer (const GenericStringBuffer &other) |
| | Create an identical copy of the specified buffer. More...
|
| |
| | ~GenericStringBuffer () |
| | Destroy a buffer, deallocating all resources used. More...
|
| |
| GenericStringBuffer & | operator= (const GenericStringBuffer &other) |
| | Assign the contents of one string buffer to another, performing a deep copy. More...
|
| |
| GenericStringBuffer & | append (const CharType &character) |
| | Append an element to the end of this buffer. More...
|
| |
| GenericStringBuffer & | append (const CharType *source) |
| | Append all characters from the given NULL-terminated string. More...
|
| |
| GenericStringBuffer & | append (const CharType *source, Size numElements) |
| | Append the specified number of elements from the given string. More...
|
| |
| GenericStringBuffer & | append (const GenericString< CharType > &string) |
| | Append a string to this string buffer. More...
|
| |
| template<typename OtherCharType > |
| GenericStringBuffer & | append (const GenericString< OtherCharType > &string) |
| |
| GenericStringBuffer & | append (const util::Array< CharType > &array) |
| | Append all elements from the specified character array to the end of the buffer. More...
|
| |
| GenericStringBuffer & | append (const util::Array< CharType > &array, Size number) |
| | Append a certain number of elements from the specified array to the end of the buffer. More...
|
| |
| GenericStringBuffer & | append (const GenericStringBuffer &aBuffer) |
| | Append all data from the specified buffer. More...
|
| |
| template<typename T > |
| GenericStringBuffer & | append (const T &object) |
| | Convert the object of templated type to a string and append it to the buffer. More...
|
| |
| GenericStringBuffer & | operator<< (const CharType &character) |
| | Append a character to the end of this string buffer. More...
|
| |
| GenericStringBuffer & | operator<< (const CharType *character) |
| | Append a NULL-terminated character string to the end of this buffer. More...
|
| |
| GenericStringBuffer & | operator<< (const GenericString< CharType > &string) |
| | Append a string to the end of this buffer. More...
|
| |
| template<typename OtherCharType > |
| GenericStringBuffer & | operator<< (const GenericString< OtherCharType > &string) |
| | Append a string to the end of this buffer. More...
|
| |
| GenericStringBuffer & | operator<< (const util::Array< CharType > &array) |
| | Append all elements from the specified character array to the end of the string buffer. More...
|
| |
| GenericStringBuffer & | operator<< (const GenericStringBuffer &aBuffer) |
| | Append all characters from the specified buffer to this buffer. More...
|
| |
| template<typename T > |
| GenericStringBuffer & | operator<< (const T &object) |
| | Convert the object of templated type to a string and append it to the buffer. More...
|
| |
| Size | remove (Size numCharacters) |
| | Remove the specified number of code points from the end of this string buffer. More...
|
| |
| void | clear () |
| | Clear the contents of the buffer, keeping its capacity intact. More...
|
| |
| GenericString< CharType > | toString () const |
| | Convert the contents of this buffer to a string object. More...
|
| |
| | operator GenericString< CharType > () |
| | Convert the contents of this buffer to a string object. More...
|
| |
| const CharType * | getPointer () const |
| | Get a pointer pointing to the buffer's internal array. More...
|
| |
| const CharType * | getCString () const |
| | Get a pointer pointing to the buffer's internal array. More...
|
| |
| Size | getSize () const |
| | Get the number of characters in the buffer, excluding the NULL terminator. More...
|
| |
| Size | getLength () const |
| | Get the number of characters in the buffer, excluding the NULL terminator. More...
|
| |
| Size | getCapacity () const |
| | Get the number of elements the buffer can hold without resizing. More...
|
| |
| Bool | setCapacity (Size newCapacity) |
| | Set the number of elements the buffer can hold. More...
|
| |
| Float | getResizeFactor () const |
| | Get the resize factor for this buffer. More...
|
| |
| void | setResizeFactor (Float newResizeFactor) |
| | Set the resize factor for this buffer, clamped to [1.1, 10.0]. More...
|
| |
template<typename CharType>
class om::data::GenericStringBuffer< CharType >
A class that contains a buffer of characters of templated type.
This class allows the user to accumulate characters in a resizing buffer, then convert the buffer's internal array to a string for other uses.