Bug 468575 - Scrape some gunk off the config/ grout, r=ted
[wine-gecko.git] / intl / lwbrk / src / th_char.h
blob1e4b1eb2ba9b2d7a06a2740c12fed3de7dc5f2e6
1 /*
2 Copyright (c) 1999 Samphan Raruenrom <samphan@thai.com>
3 Permission to use, copy, modify, distribute and sell this software
4 and its documentation for any purpose is hereby granted without fee,
5 provided that the above copyright notice appear in all copies and
6 that both that copyright notice and this permission notice appear
7 in supporting documentation. Samphan Raruenrom makes no
8 representations about the suitability of this software for any
9 purpose. It is provided "as is" without express or implied warranty.
11 #ifndef __TH_CHAR_H__
12 #define __TH_CHAR_H__
13 #include "nscore.h"
16 typedef unsigned char tis_char;
18 #ifdef TH_UNICODE
19 typedef PRUnichar th_char;
20 #define TH_THAIBEGIN_ 0x0e00
21 #define th_isthai(c) (0x0e00 <= (c) && (c) <= 0x0e5f)
22 #else
23 typedef tis_char th_char;
24 #define TH_THAIBEGIN_ 0xa0
25 #define th_isthai(c) ((c) >= 0xa0)
26 #endif
27 #define th_zcode(c) ((c) - TH_THAIBEGIN_)
29 enum TH_CHARNAME {
30 TH_THAIBEGIN = TH_THAIBEGIN_,
31 TH_KOKAI,TH_KHOKHAI,TH_KHOKHUAT,TH_KHOKHWAI,TH_KHOKHON,TH_KHORAKHANG,
32 TH_NGONGU,TH_CHOCHAN,TH_CHOCHING,TH_CHOCHANG,TH_SOSO,TH_CHOCHOE,TH_YOYING,
33 TH_DOCHADA,TH_TOPATAK,TH_THOTHAN,TH_THONANGMONTHO,TH_THOPHUTHAO,TH_NONEN,
34 TH_DODEK,TH_TOTAO,TH_THOTHUNG,TH_THOTHAHAN,TH_THOTHONG,TH_NONU,TH_BOBAIMAI,
35 TH_POPLA,TH_PHOPHUNG,TH_FOFA,TH_PHOPHAN,TH_FOFAN,TH_PHOSAMPHAO,TH_MOMA,
36 TH_YOYAK,TH_RORUA,TH_RU,TH_LOLING,TH_LU,TH_WOWAEN,TH_SOSALA,TH_SORUSI,
37 TH_SOSUA,TH_HOHIP,TH_LOCHULA,TH_OANG,TH_HONOKHUK,TH_PAIYANNOI,TH_SARA_A,
38 TH_MAIHANAKAT,TH_SARA_AA,TH_SARA_AM,TH_SARA_I,TH_SARA_II,TH_SARA_UE,
39 TH_SARA_UEE,TH_SARA_U,TH_SARA_UU,TH_PHINTHU,TH_REM_CHERNG_,TH_TAC_WBRK_,
40 TH_UNDEF_DD,TH_UNDEF_DE,TH_BAHT,TH_SARA_E,TH_SARA_AE,TH_SARA_O,TH_MAIMUAN,
41 TH_MAIMALAI,TH_LAKKHANGYAO,TH_MAIYAMOK,TH_MAITAIKHU,TH_MAIEK,TH_MAITHO,
42 TH_MAITRI,TH_MAICHATTAWA,TH_THANTHAKHAT,TH_NIKHAHIT,TH_YAMAKKAN,TH_FONGMAN,
43 TH_THAIZERO,TH_THAIONE,TH_THAITWO,TH_THAITHREE,TH_THAIFOUR,TH_THAIFIVE,
44 TH_THAISIX,TH_THAISEVEN,TH_THAIEIGHT,TH_THAININE,TH_ANGKHANKHU,TH_KHOMUT,
45 TH_UNDEF_FC,TH_UNDEF_FD,TH_UNDEF_FE,TH_THAIEND
47 #endif