My Project
|
A fixed string buffer holding up to certain number of characters. More...
Public Member Functions | |
CFX_StringBufBase (FX_STRSIZE limit) | |
A Constructor. More... | |
void | Append (FX_BSTR str) |
Append a non-buffered byte string. More... | |
void | Append (int i, FX_DWORD flags=0) |
Append an integer. See FXFORMAT_xxx for flags. More... | |
void | Copy (FX_BSTR str) |
Copy from a non-buffered byte string. More... | |
void | Empty () |
Set this string to be empty. More... | |
FX_CHAR * | GetPtr () const |
Get a C-style string pointer to the string buffer. More... | |
FX_STRSIZE | GetSize () const |
Gets the length of the string. More... | |
CFX_ByteString | GetString () const |
Get a buffered byte string. More... | |
CFX_ByteStringC | GetStringC () const |
Get a non-buffered byte string. More... | |
A fixed string buffer holding up to certain number of characters.
Operations are protected by buffer limit. Please do not use this class directly, use CFX_StringBufTemplate instead.
|
inlineexplicit |
A Constructor.
[in] | limit | buffer limit. |
void CFX_StringBufBase::Append | ( | FX_BSTR | str | ) |
Append a non-buffered byte string.
[in] | str | A non-buffered byte string. |
void CFX_StringBufBase::Append | ( | int | i, |
FX_DWORD | flags = 0 |
||
) |
Append an integer. See FXFORMAT_xxx for flags.
[in] | i | The input integer. |
[in] | flags | The formating flags. |
void CFX_StringBufBase::Copy | ( | FX_BSTR | str | ) |
Copy from a non-buffered byte string.
[in] | str | A no-buffered byte string. |
|
inline |
Set this string to be empty.
|
inline |
Get a C-style string pointer to the string buffer.
|
inline |
Gets the length of the string.
|
inline |
Get a buffered byte string.
|
inline |
Get a non-buffered byte string.