![]() |
Public API Reference |
#include <csuctransform.h>
Static Public Methods | |
UTF Decoders | |
int | UTF8Decode (const utf8_char *str, size_t strlen, utf32_char &ch, bool *isValid=0) |
Decode an Unicode character encoded in UTF-8. More... | |
int | UTF16Decode (const utf16_char *str, size_t strlen, utf32_char &ch, bool *isValid=0) |
Decode an Unicode character encoded in UTF-16. More... | |
int | UTF32Decode (const utf32_char *str, size_t strlen, utf32_char &ch, bool *isValid=0) |
Decode an Unicode character encoded in UTF-32. More... | |
UTF Encoders | |
int | EncodeUTF8 (const utf32_char ch, utf8_char *buf, size_t bufsize) |
Encode an Unicode character to UTF-8. More... | |
int | EncodeUTF16 (const utf32_char ch, utf16_char *buf, size_t bufsize) |
Encode an Unicode character to UTF-16. More... | |
int | EncodeUTF32 (const utf32_char ch, utf32_char *buf, size_t bufsize) |
Encode an Unicode character to UTF-32. More... | |
Converters between strings in different UTF encodings | |
size_t | UTF8to16 (utf16_char *dest, size_t destSize, const utf8_char *source, size_t srcSize=(size_t)-1) |
Convert UTF-8 to UTF-16. More... | |
size_t | UTF8to32 (utf32_char *dest, size_t destSize, const utf8_char *source, size_t srcSize=(size_t)-1) |
Convert UTF-8 to UTF-32. More... | |
size_t | UTF16to8 (utf8_char *dest, size_t destSize, const utf16_char *source, size_t srcSize=(size_t)-1) |
Convert UTF-16 to UTF-8. More... | |
size_t | UTF16to32 (utf32_char *dest, size_t destSize, const utf16_char *source, size_t srcSize=(size_t)-1) |
Convert UTF-16 to UTF-32. More... | |
size_t | UTF32to8 (utf8_char *dest, size_t destSize, const utf32_char *source, size_t srcSize=(size_t)-1) |
Convert UTF-32 to UTF-8. More... | |
size_t | UTF32to16 (utf16_char *dest, size_t destSize, const utf32_char *source, size_t srcSize=(size_t)-1) |
Convert UTF-32 to UTF-16. More... | |
Converters UTF and platform-specific wchar_t | |
size_t | UTF8toWC (wchar_t *dest, size_t destSize, const utf8_char *source, size_t srcSize) |
Convert UTF-8 to platform-specific wide chars. More... | |
size_t | UTF16toWC (wchar_t *dest, size_t destSize, const utf16_char *source, size_t srcSize) |
Convert UTF-16 to platform-specific wide chars. More... | |
size_t | UTF32toWC (wchar_t *dest, size_t destSize, const utf32_char *source, size_t srcSize) |
Convert UTF-32 to platform-specific wide chars. More... | |
size_t | WCtoUTF8 (utf8_char *dest, size_t destSize, const wchar_t *source, size_t srcSize) |
Convert platform-specific wide chars to UTF-8. More... | |
size_t | WCtoUTF16 (utf16_char *dest, size_t destSize, const wchar_t *source, size_t srcSize) |
Convert platform-specific wide chars to UTF-16. More... | |
size_t | WCtoUTF32 (utf32_char *dest, size_t destSize, const wchar_t *source, size_t srcSize) |
Convert platform-specific wide chars to UTF-32. More... |
Definition at line 41 of file csuctransform.h.
|
Encode an Unicode character to UTF-16. \copydoc EncodeUTF8() Definition at line 303 of file csuctransform.h. References CS_UC_CHAR_HIGH_SURROGATE_FIRST, CS_UC_CHAR_LOW_SURROGATE_FIRST, CS_UC_IS_INVALID, CS_UC_IS_SURROGATE, utf16_char, and utf32_char. |
|
Encode an Unicode character to UTF-32. \copydoc EncodeUTF8() Definition at line 329 of file csuctransform.h. References CS_UC_IS_INVALID, CS_UC_IS_SURROGATE, and utf32_char. |
|
Encode an Unicode character to UTF-8.
Definition at line 250 of file csuctransform.h. References CS_UC_IS_INVALID, CS_UC_IS_SURROGATE, utf32_char, and utf8_char. |
|
Decode an Unicode character encoded in UTF-16. \copydoc UTF8Decode() Definition at line 164 of file csuctransform.h. References CS_UC_IS_HIGH_SURROGATE, CS_UC_IS_INVALID, CS_UC_IS_LOW_SURROGATE, CS_UC_IS_SURROGATE, utf16_char, and utf32_char. |
|
Convert UTF-16 to UTF-32. \copydoc UTF8to16() Definition at line 429 of file csuctransform.h. References EncodeUTF32, utf16_char, UTF16Decode, UTF16to32, and utf32_char. |
|
Convert UTF-16 to UTF-8. \copydoc UTF8to16() Definition at line 424 of file csuctransform.h. References EncodeUTF8, utf16_char, UTF16Decode, UTF16to8, and utf8_char. |
|
Convert UTF-16 to platform-specific wide chars. \copydoc UTF8toWC() Definition at line 528 of file csuctransform.h. References utf16_char. |
|
Decode an Unicode character encoded in UTF-32. \copydoc UTF8Decode() Definition at line 209 of file csuctransform.h. References CS_UC_IS_INVALID, and utf32_char. |
|
Convert UTF-32 to UTF-16. \copydoc UTF8to16() Definition at line 440 of file csuctransform.h. References EncodeUTF16, utf16_char, utf32_char, UTF32Decode, UTF32to16, and utf8_char. |
|
Convert UTF-32 to UTF-8. \copydoc UTF8to16() Definition at line 435 of file csuctransform.h. References EncodeUTF8, utf32_char, UTF32Decode, UTF32to8, and utf8_char. Referenced by UTF32to8. |
|
Convert UTF-32 to platform-specific wide chars. \copydoc UTF8toWC() Definition at line 551 of file csuctransform.h. References utf16_char, utf32_char, and UTF32to16. |
|
Decode an Unicode character encoded in UTF-8.
Definition at line 82 of file csuctransform.h. References CS_UC_IS_INVALID, CS_UC_IS_SURROGATE, utf32_char, and utf8_char. |
|
Convert UTF-8 to UTF-16.
Definition at line 413 of file csuctransform.h. References EncodeUTF16, utf16_char, utf8_char, UTF8Decode, and UTF8to16. |
|
Convert UTF-8 to UTF-32. \copydoc UTF8to16() Definition at line 418 of file csuctransform.h. References EncodeUTF32, utf32_char, utf8_char, UTF8Decode, and UTF8to32. Referenced by UTF8to32. |
|
Convert UTF-8 to platform-specific wide chars. \copydoc UTF8to16() Definition at line 518 of file csuctransform.h. References utf16_char, utf8_char, and UTF8to16. |
|
Convert platform-specific wide chars to UTF-16. \copydoc UTF8toWC() Definition at line 571 of file csuctransform.h. References utf16_char. |
|
Convert platform-specific wide chars to UTF-32. \copydoc UTF8toWC() Definition at line 594 of file csuctransform.h. References utf16_char, UTF16to32, and utf32_char. |
|
Convert platform-specific wide chars to UTF-8. \copydoc UTF8toWC() Definition at line 561 of file csuctransform.h. References utf16_char, UTF16to8, and utf8_char. |