Rudiments
|
#include <ucs2stringbuffer.h>
Inherits bytebuffer.
The ucs2stringbuffer class can be used to store strings of arbitrary length.
It is generally more efficient to reuse the same ucs2stringbuffer over and over than to allocate a new one for each operation.
|
inline |
Creates an instance of the ucs2stringbuffer class with default initial size.
|
inline |
Creates an instance of the ucs2stringbuffer class with the specified "initialsize".
|
inline |
Creates an instance of the ucs2stringbuffer class. The buffer "initialcontents" will be attached to the instance and used as the initial contents. This buffer should not be freed by the calling program. The initial size may be specified by the "initialsize" parameter.
|
inline |
Creates an instance of the ucs2stringbuffer class that is a copy of "s".
|
inline |
Deletes this instance of the ucs2stringbuffer class.
|
inline |
Appends "character" to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Appends "string" to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Appends the first "size" bytes of "string" to the ucs2stringbuffer, growing the internall buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string (using a default scale of 4) and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string using the specified "precision" and "scale" and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string using the specified "scale" and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string (using a default scale of 4) and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string using the specified "precision" and "scale" and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string using the specified "scale" and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string with the specified amount of zeropadding and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string with the specified amount of zeropadding and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string with the specified amount of zeropadding and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string with the specified amount of zeropadding and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string with the specified amount of zeropadding and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Converts "number" to a string with the specified amount of zeropadding and appends it to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Appends "string" to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Appends the first "length" characters of "string" to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Appends "character" to the ucs2stringbuffer, growing the internal buffer as necessary to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->append("numbers: ")->append(5)->append(5.5);
|
inline |
Empties the ucs2stringbuffer.
Always returns true.
Empties the bytebuffer and resets the specified "initialsize" parameter.
Always returns true.
Empties the bytebuffer and attaches the buffer "initialcontents" to the instance as the initial contents. This buffer should not be freed by the calling program. Also resets the specified "initialsize" parameter.
Always returns true.
|
inline |
Returns a pointer to the string currently stored in the ucs2stringbuffer, then resets the ucs2stringbuffer such that it will no longer use that string.
The calling program must deallocate the string returned from this method.
|
inlinevirtual |
Returns the position in the internal buffer at which the next write will occur.
Reimplemented from bytebuffer.
|
inline |
Returns the string currently stored in the ucs2stringbuffer.
|
inline |
Returns the length of the string currently stored in the ucs2stringbuffer.
|
inline |
Makes this instance of the ucs2stringbuffer class identical to "s".
|
inlinevirtual |
Sets the position (relative to the beginning of the buffer) at which the next read or write will occur to "offset". If the position is set beyond the end of the buffer, the buffer will grow but the data between the current end of the buffer and the new position will be undefined.
Reimplemented from bytebuffer.
|
inlinevirtual |
Advances the position at which the next read or write will occur by "offset" bytes. If the position is set beyond the end of the buffer, the buffer will grow but the data between the current end of the buffer and the new position will be undefined.
Reimplemented from bytebuffer.
|
inlinevirtual |
Sets the position at which the next read or write will occur to the end of the buffer plus "offset" bytes. Generally, offset will be negative. If it is positive then the buffer will grow, but the data between the current buffer will grow but the data between the current end of the buffer and the new position will be undefined.
Reimplemented from bytebuffer.
|
inlinevirtual |
Trucnates the ucs2stringbuffer at the current position.
Reimplemented from bytebuffer.
Trucnates the ucs2stringbuffer at position "pos".
Reimplemented from bytebuffer.
|
inlinevirtual |
Writes "character" to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inline |
Writes "string" to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Writes the first "size" bytes of "string" to the stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Converts "number" to a string (using a default scale of 4) and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inline |
Converts "number" to a string using the specified "precision" and "scale" and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
|
inline |
Converts "number" to a string using the specified "scale" and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
|
inlinevirtual |
Converts "number" to a string (using a default scale of 4) and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inline |
Converts "number" to a string using the specified "precision" and "scale" and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
|
inline |
Converts "number" to a string using the specified "scale" and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
|
inlinevirtual |
Converts "number" to a string and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Converts "number" to a string and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Converts "number" to a string and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the inernal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Converts "number" to a string and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Converts "number" to a string and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Converts "number" to a string and writes it to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Writes "string" to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
Writes the first "length" characters of "string" to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.
|
inlinevirtual |
Writes "character" to the ucs2stringbuffer at the current position and increments the current position to the next byte after the data that was written. If necessary, the internal buffer will grow to accommodate the new data.
Returns a pointer to "this" to enable chaining such as: sb->write("numbers: ")->write(5)->write(5.5);
Reimplemented from bytebuffer.