My Project
|
CONSTANT BYTE STRING CLASS. More...
Inherits CFX_Object.
Inherited by CFX_ByteStringL.
Public Member Functions | |
CFX_ByteStringC () | |
Constructs a null constant string. | |
CFX_ByteStringC (FX_LPCBYTE ptr, FX_STRSIZE size) | |
Constructs from a byte string. More... | |
CFX_ByteStringC (FX_LPCSTR ptr) | |
Construct from a character string. More... | |
CFX_ByteStringC (const FX_CHAR &ch) | |
Construct from a single character. More... | |
CFX_ByteStringC (FX_LPCSTR ptr, FX_STRSIZE len) | |
Construct from a character string. More... | |
CFX_ByteStringC (const CFX_ByteStringC &src) | |
Copy constructor. More... | |
CFX_ByteStringC (const CFX_ByteString &src) | |
Construct from a byte string. More... | |
FX_BYTE | GetAt (FX_STRSIZE index) const |
This method retrieves a single byte specified by an index number. More... | |
FX_LPCSTR | GetCStr () const |
Get a constant character string pointer to the byte string. More... | |
FX_DWORD | GetID (FX_STRSIZE start_pos=0) const |
Get a DWORD identifier of the string, from a particular position. More... | |
FX_STRSIZE | GetLength () const |
Get the length of the byte string. More... | |
FX_LPCBYTE | GetPtr () const |
Get a constant byte string pointer to the byte string. More... | |
bool | IsEmpty () const |
Check whether current string object is empty. More... | |
CFX_ByteStringC | Mid (FX_STRSIZE index, FX_STRSIZE count=-1) const |
This method extracts a substring of length count bytes from this CFX_ByteStringC object, starting at position index (zero-based). More... | |
bool | operator != (const CFX_ByteStringC &str) const |
Comparison(!=) operator overload. case-sensitive. More... | |
operator FX_LPCBYTE () const | |
This casting operator accesses the byte string referred in a CFX_ByteStringC object. More... | |
CFX_ByteStringC & | operator= (FX_LPCSTR src) |
Assignment(=) operator overload. From a character string. More... | |
CFX_ByteStringC & | operator= (const CFX_ByteStringC &src) |
Assignment(=) operator overload. From a CFX_ByteStringC object. More... | |
CFX_ByteStringC & | operator= (const CFX_ByteString &src) |
Assignment(=) operator overload. From a CFX_ByteString object. More... | |
bool | operator== (const CFX_ByteStringC &str) const |
Comparison(==) operator overload. case-sensitive. More... | |
CONSTANT BYTE STRING CLASS.
Constant byte string, it contains no buffer so its content cannot be changed directly.
|
inline |
Constructs from a byte string.
[in] | ptr | Pointer to a constant byte string. |
[in] | size | The length of the byte string. |
|
inline |
Construct from a character string.
[in] | ptr | Pointer to a constant character string, the string must be null-terminated. |
|
inlineexplicit |
Construct from a single character.
[in] | ch | A single character. |
|
inline |
Construct from a character string.
[in] | ptr | Pointer to a constant character string. |
[in] | len | The length of the character string. This can be -1 for null-terminated string. |
|
inline |
Copy constructor.
[in] | src | constant ref to a CFX_ByteStringC object. |
|
inline |
This method retrieves a single byte specified by an index number.
[in] | index | Specifies the zero-based index in the byte string. |
|
inline |
Get a constant character string pointer to the byte string.
FX_DWORD CFX_ByteStringC::GetID | ( | FX_STRSIZE | start_pos = 0 | ) | const |
Get a DWORD identifier of the string, from a particular position.
This DWORD can be used for quick comparison. Using MSB-first scheme. If the string does not have enough bytes, then zero will be used missing bytes.
[in] | start_pos | Start position in the constant byte string. |
|
inline |
Get the length of the byte string.
|
inline |
Get a constant byte string pointer to the byte string.
|
inline |
Check whether current string object is empty.
|
inline |
This method extracts a substring of length count bytes from this CFX_ByteStringC object, starting at position index (zero-based).
[in] | index | Specifies the zero-based index in the CFX_ByteStringC object. |
[in] | count | Specifies the number of bytes to extract from this CFX_ByteStringC object. |
|
inline |
Comparison(!=) operator overload. case-sensitive.
[in] | str | constant ref to a CFX_ByteStringC object. |
|
inline |
This casting operator accesses the byte string referred in a CFX_ByteStringC object.
|
inline |
Assignment(=) operator overload. From a character string.
[in] | src | Pointer to a constant character string. |
|
inline |
Assignment(=) operator overload. From a CFX_ByteStringC object.
[in] | src | constant ref to a CFX_ByteStringC object. |
|
inline |
Comparison(==) operator overload. case-sensitive.
[in] | str | constant ref to a CFX_ByteStringC object. |