libthai  0.1.30
Macros | Functions
thwctype.h File Reference

Thai wide-char character classifications. More...

Macros

#define th_wcistis(wc)    th_istis(th_uni2tis(wc))
 
#define th_wcisthai(wc)    th_isthai(th_uni2tis(wc))
 
#define th_wciseng(wc)    th_iseng(th_uni2tis(wc))
 
#define th_wcisthcons(wc)    th_isthcons(th_uni2tis(wc))
 
#define th_wcisthvowel(wc)   th_isthvowel(th_uni2tis(wc))
 
#define th_wcisthtone(wc)    th_isthtone(th_uni2tis(wc))
 
#define th_wcisthdigit(wc)   th_isthdigit(th_uni2tis(wc))
 
#define th_wcisthdiac(wc)    th_isthdiac(th_uni2tis(wc))
 
#define th_wcisthpunct(wc)   th_isthpunct(th_uni2tis(wc))
 
#define th_wcistaillesscons(wc)    th_istaillesscons(th_uni2tis(wc))
 
#define th_wcisovershootcons(wc)   th_isovershootcons(th_uni2tis(wc))
 
#define th_wcisundershootcons(wc)   th_isundershootcons(th_uni2tis(wc))
 
#define th_wcisundersplitcons(wc)   th_isundersplitcons(th_uni2tis(wc))
 
#define th_wcisldvowel(wc)   th_isldvowel(th_uni2tis(wc))
 
#define th_wcisflvowel(wc)   th_isflvowel(th_uni2tis(wc))
 
#define th_wcisupvowel(wc)   th_isupvowel(th_uni2tis(wc))
 
#define th_wcisblvowel(wc)   th_isblvowel(th_uni2tis(wc))
 
#define th_wcchlevel(wc)    th_chlevel(th_uni2tis(wc))
 

Functions

int th_wcistis (thwchar_t wc)
 Is the wide character convertible to a valid TIS-620 code? More...
 
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: More...
 

Detailed Description

Thai wide-char character classifications.

Function Documentation

int th_wcchlevel ( thwchar_t  wc)

Position for rendering:

  • 3 = above/top
  • 2 = top
  • 1 = above
  • 0 = base
  • -1 = below
int th_wcistis ( thwchar_t  wc)

Is the wide character convertible to a valid TIS-620 code?

TIS-620 here means US-ASCII plus TIS-620 extension.