Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

th_uni2macthai(centos) [centos man page]

thai/thwchar.h(3)						      libthai							 thai/thwchar.h(3)

NAME
thai/thwchar.h - Wide char support for Thai. SYNOPSIS
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. int th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_t n) Convert string from TIS-620 to Unicode. thwchar_t th_winthai2uni (thchar_t c) Convert character code from Thai Windows extended code to Unicode. thwchar_t th_macthai2uni (thchar_t c) Convert character code from Mac Thai extended code to Unicode. thchar_t th_uni2tis (thwchar_t wc) Convert character code from Unicode to TIS-620. int th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_t n) Convert string from Unicode to TIS-620. thchar_t th_uni2winthai (thwchar_t wc) Convert character code from Unicode to Thai Windows extended code. thchar_t th_uni2macthai (thwchar_t wc) Convert character code from Unicode to Mac Thai extended code. Detailed Description Wide char support for Thai. Function Documentation thwchar_t th_macthai2uni (thchar_tc) Convert character code from Mac Thai extended code to Unicode. Parameters: c : Mac Thai character/glyph to convert Returns: Corresponding Unicode code thwchar_t th_tis2uni (thchar_tc) Convert character code from TIS-620 to Unicode. Parameters: c : TIS-620 character to convert Returns: Corresponding Unicode code int th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_tn) Convert string from TIS-620 to Unicode. Parameters: s : source TIS-620 string (null-terminated) result : buffer for storing resulting Unicode string n : size of result buffer (as number of elements) Returns: the length of the output Unicode string thchar_t th_uni2macthai (thwchar_twc) Convert character code from Unicode to Mac Thai extended code. Parameters: wc : Unicode code to convert Returns: Corresponding Mac Thai extended code, or TH_ERR if conversion is impossible thchar_t th_uni2tis (thwchar_twc) Convert character code from Unicode to TIS-620. Parameters: wc : Unicode character to convert Returns: Corresponding TIS-620 code, or TH_ERR if conversion is impossible int th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_tn) Convert string from Unicode to TIS-620. Parameters: s : source Unicode string (null-terminated) result : buffer for storing resulting TIS-620 string n : size of result buffer (as number of elements) Returns: the length of the output TIS-620 string Note that, since the conversion is lossy, some characters in the convesion result may be TH_ERR, indicating conversion error. thchar_t th_uni2winthai (thwchar_twc) Convert character code from Unicode to Thai Windows extended code. Parameters: wc : Unicode code to convert Returns: Corresponding Thai Windows extended code, or TH_ERR if conversion is impossible thwchar_t th_winthai2uni (thchar_tc) Convert character code from Thai Windows extended code to Unicode. Parameters: c : Thai Windows character/glyph to convert Returns: Corresponding Unicode code Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thwchar.h(3)

Check Out this Related Man Page

thai/thwctype.h(3)						      libthai							thai/thwctype.h(3)

NAME
thai/thwctype.h - Thai wide-char character classifications. SYNOPSIS
Functions int th_wcistis (thwchar_t wc) Is the wide character convertible to a valid TIS-620 code? int th_wcisthai (thwchar_t wc) Is the wide character a Thai character? int th_wciseng (thwchar_t wc) Is the wide character an English character? int th_wcisthcons (thwchar_t wc) Is the wide character a Thai consonant? int th_wcisthvowel (thwchar_t wc) Is the wide character a Thai vowel? int th_wcisthtone (thwchar_t wc) Is the wide character a Thai tone mark? int th_wcisthdiac (thwchar_t wc) Is the wide character a Thai diacritic? int th_wcisthdigit (thwchar_t wc) Is the character a Thai digit? int th_wcisthpunct (thwchar_t wc) Is the character a Thai punctuation? int th_wcistaillesscons (thwchar_t wc) Is the wide character a Thai consonant that fits the x-height? int th_wcisovershootcons (thwchar_t wc) Is the wide character a Thai consonant with stem above ascender? int th_wcisundershootcons (thwchar_t wc) Is the wide character a Thai consonant with stem below baseline? int th_wcisundersplitcons (thwchar_t wc) Is the wide character a Thai consonant with split part below baseline? int th_wcisldvowel (thwchar_t wc) Is the wide character a Thai leading vowel? int th_wcisflvowel (thwchar_t wc) Is the wide character a Thai following vowel? int th_wcisupvowel (thwchar_t wc) Is the wide character a Thai upper vowel? int th_wcisblvowel (thwchar_t wc) Is the wide character a Thai below vowel? int th_wcchlevel (thwchar_t wc) Position for rendering: Detailed Description Thai wide-char character classifications. Function Documentation int th_wcchlevel (thwchar_twc) Position for rendering: o 3 = above/top o 2 = top o 1 = above o 0 = base o -1 = below int th_wcistis (thwchar_twc) Is the wide character convertible to a valid TIS-620 code? TIS-620 here means US-ASCII plus TIS-620 extension. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thwctype.h(3)
Man Page