Container for UTF-8 encoded string. More...
#include <mi32/strutf8.h>
Public Member Functions | |
| STRUTF8 (const MISTRING &rhs) | |
| STRUTF8 (const char *rhs) | |
| STRUTF8 (const STRUTF8 &rhs) | |
| STRUTF8 () | |
| ~STRUTF8 () | |
| void | Attach (unsigned char *&str) |
| void | Attach (char *&str) |
| void | Clear () |
| const UINT8 * | GetUINT8 () const |
| bool | IsEmpty () const |
| operator const char * () const | |
| STRUTF8 & | operator= (const MISTRING &rhs) |
| STRUTF8 & | operator= (const unsigned char *rhs) |
| STRUTF8 & | operator= (const char *rhs) |
| STRUTF8 & | operator= (const STRUTF8 &rhs) |
Container for UTF-8 encoded string.
Strings are reference-counted, so copying and return-by-value is very efficient. Provides very minimal string modification support. For more extensive modification the MISTRING class should be used.
| STRUTF8::STRUTF8 | ( | ) |
Default constructor.
| STRUTF8::STRUTF8 | ( | const STRUTF8 & | rhs | ) |
Copy constructor.
| STRUTF8::STRUTF8 | ( | const char * | rhs | ) |
Construct from null-terminated char* string.
| STRUTF8::~STRUTF8 | ( | ) |
Destructor.
| void STRUTF8::Attach | ( | unsigned char *& | str | ) |
Attach to unsigned char* string.
| void STRUTF8::Attach | ( | char *& | str | ) |
Attach to char* string.
| void STRUTF8::Clear | ( | ) |
Clear to empty string.
| const UINT8* STRUTF8::GetUINT8 | ( | ) | const |
Get UINT8 pointer to actual UTF8 buffer.
| bool STRUTF8::IsEmpty | ( | ) | const |
Determine if string is empty.
| STRUTF8::operator const char * | ( | ) | const |
Cast to null-terminated char* string.
| STRUTF8& STRUTF8::operator= | ( | const unsigned char * | rhs | ) |
Assign from null-terminated unsigned char* string.
| STRUTF8& STRUTF8::operator= | ( | const char * | rhs | ) |
Assign from null-terminated char* string.
1.6.1