LibreOffice Module i18npool (master)  1
wtt.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_I18NPOOL_INC_WTT_H
20 #define INCLUDED_I18NPOOL_INC_WTT_H
21 
22 namespace i18npool {
23 
24 /*
25  * Thai character type definition.
26  */
27 
28 #define CT_CTRL 0 // Control character
29 #define CT_NON 1 // Non-composible
30 #define CT_CONS 2 // Consonant
31 #define CT_LV 3 // Leading vowel
32 #define CT_FV1 4 // Following vowel
33 #define CT_FV2 5 // Following vowel
34 #define CT_FV3 6
35 #define CT_BV1 7 // Below vowel
36 #define CT_BV2 8
37 #define CT_BD 9 // Below diacritic
38 #define CT_TONE 10 // Tone
39 #define CT_AD1 11 // Above diacritic
40 #define CT_AD2 12
41 #define CT_AD3 13
42 #define CT_AV1 14 // Above vowel
43 #define CT_AV2 15
44 #define CT_AV3 16
45 
46 #define MAX_CT 17
47 
48 const sal_uInt16 thaiCT[128] = { // Thai character type
61 
62 #define getCharType(x) ((x >= 0x0E00 && x < 0x0E60) ? thaiCT[x - 0x0E00] : CT_NON)
63 
64 }
65 
66 #endif // INCLUDED_I18NPOOL_INC_WTT_H
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define CT_BD
Definition: wtt.h:37
#define CT_BV1
Definition: wtt.h:35
#define CT_TONE
Definition: wtt.h:38
#define CT_AV2
Definition: wtt.h:43
#define CT_AD3
Definition: wtt.h:41
#define CT_AV3
Definition: wtt.h:44
const sal_uInt16 thaiCT[128]
Definition: wtt.h:48
#define CT_LV
Definition: wtt.h:31
#define CT_FV2
Definition: wtt.h:33
#define CT_FV3
Definition: wtt.h:34
Constant values shared between i18npool and, for example, the number formatter.
#define CT_CONS
Definition: wtt.h:30
#define CT_AV1
Definition: wtt.h:42
#define CT_BV2
Definition: wtt.h:36
#define CT_FV1
Definition: wtt.h:32
#define CT_NON
Definition: wtt.h:29
#define CT_CTRL
Definition: wtt.h:28
#define CT_AD2
Definition: wtt.h:40
#define CT_AD1
Definition: wtt.h:39