class StringBuilder
Defined at line 238 of file ../../third_party/double-conversion/double-conversion/utils.h
Helper class for building result strings in a character buffer. The
purpose of the class is to use safe operations that checks the
buffer bounds on all operations in debug mode.
Public Methods
void StringBuilder (char * buffer, int buffer_size)
Defined at line 240 of file ../../third_party/double-conversion/double-conversion/utils.h
void ~StringBuilder ()
Defined at line 243 of file ../../third_party/double-conversion/double-conversion/utils.h
int size ()
Defined at line 245 of file ../../third_party/double-conversion/double-conversion/utils.h
int position ()
Get the current position in the builder.
Defined at line 248 of file ../../third_party/double-conversion/double-conversion/utils.h
void Reset ()
Reset the position.
Defined at line 254 of file ../../third_party/double-conversion/double-conversion/utils.h
void AddCharacter (char c)
Add a single character to the builder. It is not allowed to add
0-characters; use the Finalize() method to terminate the string
instead.
Defined at line 259 of file ../../third_party/double-conversion/double-conversion/utils.h
void AddString (const char * s)
Add an entire string to the builder. Uses strlen() internally to
compute the length of the input string.
Defined at line 267 of file ../../third_party/double-conversion/double-conversion/utils.h
void AddSubstring (const char * s, int n)
Add the first 'n' characters of the given string 's' to the
builder. The input string must have enough characters.
Defined at line 273 of file ../../third_party/double-conversion/double-conversion/utils.h
void AddPadding (char c, int count)
Add character padding to the builder. If count is non-positive,
nothing is added to the builder.
Defined at line 283 of file ../../third_party/double-conversion/double-conversion/utils.h
char * Finalize ()
Finalize the string by 0-terminating it and returning the buffer.
Defined at line 290 of file ../../third_party/double-conversion/double-conversion/utils.h