|
libthai
0.1.28
|
Wide char support for Thai. More...
Macros | |
| #define | THWCHAR_ERR (~(thwchar_t)0) |
| Wide-character value indicating error. | |
Typedefs | |
| typedef wchar_t | thwchar_t |
| Thai character type for storing Unicode character. | |
Functions | |
| thwchar_t | th_tis2uni (thchar_t c) |
| Convert character code from TIS-620 to Unicode. More... | |
| int | th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_t n) |
| Convert string from TIS-620 to Unicode. More... | |
| thwchar_t | th_winthai2uni (thchar_t c) |
| Convert character code from Thai Windows extended code to Unicode. More... | |
| thwchar_t | th_macthai2uni (thchar_t c) |
| Convert character code from Mac Thai extended code to Unicode. More... | |
| thchar_t | th_uni2tis (thwchar_t wc) |
| Convert character code from Unicode to TIS-620. More... | |
| int | th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_t n) |
| Convert string from Unicode to TIS-620. More... | |
| thchar_t | th_uni2winthai (thwchar_t wc) |
| Convert character code from Unicode to Thai Windows extended code. More... | |
| thchar_t | th_uni2macthai (thwchar_t wc) |
| Convert character code from Unicode to Mac Thai extended code. More... | |
Wide char support for Thai.
Convert character code from Mac Thai extended code to Unicode.
| c | : Mac Thai character/glyph to convert |
Convert character code from TIS-620 to Unicode.
| c | : TIS-620 character to convert |
Convert string from TIS-620 to Unicode.
| s | : source TIS-620 string (null-terminated) |
| result | : buffer for storing resulting Unicode string |
| n | : size of result buffer (as number of elements) |
Convert character code from Unicode to Mac Thai extended code.
| wc | : Unicode code to convert |
TH_ERR if conversion is impossible Convert character code from Unicode to TIS-620.
| wc | : Unicode character to convert |
TH_ERR if conversion is impossible Convert string from Unicode to TIS-620.
| s | : source Unicode string (null-terminated) |
| result | : buffer for storing resulting TIS-620 string |
| n | : size of result buffer (as number of elements) |
Note that, since the conversion is lossy, some characters in the convesion result may be TH_ERR, indicating conversion error.
Convert character code from Unicode to Thai Windows extended code.
| wc | : Unicode code to convert |
TH_ERR if conversion is impossible
1.8.14