#include <GUtf8.h>
Public Member Functions | |
GUtf8Str (char *utf, int bytes=-1, bool Copy=false) | |
Constructor. | |
GUtf8Str (char16 *wide, int chars=-1) | |
Constructor. | |
GUtf8Str & | operator= (char *s) |
Assign a new pointer to the string. | |
char16 * | ToWide () |
Allocates a block of memory containing the wide representation of the string. | |
bool | Valid () |
bool | IsStart () |
bool | IsEnd () |
GUtf8Str::GUtf8Str | ( | char * | utf, | |
int | bytes = -1 , |
|||
bool | Copy = false | |||
) |
Constructor.
utf | The string pointer to start with |
bytes | The number of bytes containing characters, or -1 if NULL terminated. |
Copy | Copy the string first |
GUtf8Str::GUtf8Str | ( | char16 * | wide, | |
int | chars = -1 | |||
) |
Constructor.
wide | The string pointer to start with. A utf-8 copy of the string will be created. |
chars | The number of wide chars, or -1 if NULL terminated. |
bool GUtf8Str::Valid | ( | ) |
bool GUtf8Str::IsStart | ( | ) |
bool GUtf8Str::IsEnd | ( | ) |