#include <cel_unicode.h>
Public Types | |
enum | |
Bytes per element. More... | |
Static Public Member Functions | |
static UChar4 | getCharcode (const UChar *inPtr, size_t &outLength) |
static size_t | encode (UChar *outBuffer, UChar4 inCharCode) |
static size_t | getCharSize (UChar4 inCharCode) |
The definition of UtfTraits. This structure is not actually implemented and usually specialized versions should be used.
If you want to use instanciate StringUtil, use UnicodeCharTraits instead of this structure.
anonymous enum |
Bytes per element.
|
static |
This function encode the specified UCS-4 character code and write it on buffer.
outBuffer | Pointer to buffer that receives the encoded result. |
inCharCode | UCS-4 character code to be encoded. |
|
static |
This function extract an UCS-4 character code from the specified pointer position.
inPtr | Pointer to a buffer that stores the string. |
outLength | On return, the length of the entries used by the UCS-4 character code is returned to this variable. You can add this value to the pointer to make a pointer that points to the next UCS-4 character. |
Referenced by Celartem::UnicodeCharTraits< T >::getCharcode(), and Celartem::String::getNthUnicodeChar().
|
static |
This function returns the length of the encoded result of the specified UCS-4 character code.
inCharCode | UCS-4 character code to be encoded. |