Unicode Char
unicode_data.h
Go to the documentation of this file.
1 /* Copyright 2020 Zhao HG
2 
3 Permission is hereby granted, free of charge, to any person obtaining a copy
4 of this software and associated documentation files (the "Software"), to deal
5 in the Software without restriction, including without limitation the rights
6 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 copies of the Software, and to permit persons to whom the Software is
8 furnished to do so, subject to the following conditions:
9 
10 The above copyright notice and this permission notice shall be included in all
11 copies or substantial portions of the Software.
12 
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 SOFTWARE. */
20 #ifndef INCLUDE_UNICODE_DATA_H_
21 #define INCLUDE_UNICODE_DATA_H_
22 
28 #include "unicode_char.h"
29 
30 namespace unicode {
31 
33 extern const int32_t CODE_NUM;
35 extern const int32_t CONTINUOUS_NUM;
37 extern const UChar CODE_VALUE[];
38 
40 extern const GeneralCategory GENERAL_CATEGORY[];
43 
45 const int32_t CANONICAL_COMBINING_NUM = 536;
47 extern const int32_t CANONICAL_COMBINING_INDEX[];
49 extern const int32_t CANONICAL_COMBINING_CLASS[];
50 
52 extern const BidirectionalCategory BIDIRECTIONAL_CATEGORY[];
53 
55 const int32_t DECOMPOSITION_MAPPING_NUM = 5736;
57 extern const int32_t DECOMPOSITION_MAPPING_INDEX[];
61 extern const int32_t DECOMPOSITION_MAPPING_OFFSET[];
63 extern const UChar DECOMPOSITION_MAPPING_CHARS[];
64 
66 const int32_t NUMERICS_NUM = 1789;
68 extern const int32_t NUMERICS_INDEX[];
70 extern const int32_t NUMERICS_DECIMAL[];
72 extern const int32_t NUMERICS_DIGIT[];
74 extern const int64_t NUMERICS_NUMERATOR[];
76 extern const int32_t NUMERICS_DENOMINATOR[];
77 
79 const int32_t MIRRORED_NUM = 227;
81 extern const int32_t MIRRORED_INDEX[];
83 extern const bool MIRRORED_VALUE[];
84 
86 const int32_t UPPER_NUM = 1410;
88 extern const int32_t UPPER_INDEX[];
90 extern const UChar UPPER_CASE[];
92 const int32_t LOWER_NUM = 1393;
94 extern const int32_t LOWER_INDEX[];
96 extern const UChar LOWER_CASE[];
98 const int32_t TITLE_NUM = 1414;
100 extern const int32_t TITLE_INDEX[];
102 extern const UChar TITLE_CASE[];
103 
104 } // namespace unicode
105 
106 #endif // INCLUDE_UNICODE_DATA_H_
unicode::NUMERICS_NUMERATOR
const int64_t NUMERICS_NUMERATOR[]
Definition: numeric.cpp:616
unicode::DECOMPOSITION_MAPPING_TAG
const DecompositionMappingTag DECOMPOSITION_MAPPING_TAG[]
Definition: decomposition_mapping.cpp:788
unicode::NUMERICS_DECIMAL
const int32_t NUMERICS_DECIMAL[]
Definition: numeric.cpp:252
unicode::DECOMPOSITION_MAPPING_NUM
const int32_t DECOMPOSITION_MAPPING_NUM
Definition: unicode_data.h:55
unicode::NUMERICS_DENOMINATOR
const int32_t NUMERICS_DENOMINATOR[]
Definition: numeric.cpp:798
unicode::DECOMPOSITION_MAPPING_CHARS
const UChar DECOMPOSITION_MAPPING_CHARS[]
Definition: decomposition_mapping.cpp:2516
unicode::CONTINUOUS_NUM
const int32_t CONTINUOUS_NUM
Definition: code_value.cpp:25
unicode::LOWER_CASE
const UChar LOWER_CASE[]
Definition: cases.cpp:564
unicode::CODE_VALUE
const UChar CODE_VALUE[]
Definition: code_value.cpp:26
unicode::TITLE_NUM
const int32_t TITLE_NUM
Definition: unicode_data.h:98
unicode::LOWER_INDEX
const int32_t LOWER_INDEX[]
Definition: cases.cpp:386
unicode::NUMERICS_INDEX
const int32_t NUMERICS_INDEX[]
Definition: numeric.cpp:25
unicode::CANONICAL_COMBINING_NUM
const int32_t CANONICAL_COMBINING_NUM
Definition: unicode_data.h:45
unicode::BaseGeneralCategory
BaseGeneralCategory
Definition: unicode_char.h:46
unicode::MIRRORED_NUM
const int32_t MIRRORED_NUM
Definition: unicode_data.h:79
unicode::NUMERICS_NUM
const int32_t NUMERICS_NUM
Definition: unicode_data.h:66
unicode::LOWER_NUM
const int32_t LOWER_NUM
Definition: unicode_data.h:92
unicode::DECOMPOSITION_MAPPING_INDEX
const int32_t DECOMPOSITION_MAPPING_INDEX[]
Definition: decomposition_mapping.cpp:68
unicode::DecompositionMappingTag
DecompositionMappingTag
Definition: unicode_char.h:65
unicode::MIRRORED_INDEX
const int32_t MIRRORED_INDEX[]
Definition: mirrored.cpp:25
unicode::BIDIRECTIONAL_CATEGORY
const BidirectionalCategory BIDIRECTIONAL_CATEGORY[]
Definition: bidirectional_category.cpp:78
unicode::CANONICAL_COMBINING_CLASS
const int32_t CANONICAL_COMBINING_CLASS[]
Definition: canonical_combining_class.cpp:95
unicode::NUMERICS_DIGIT
const int32_t NUMERICS_DIGIT[]
Definition: numeric.cpp:434
unicode::TITLE_INDEX
const int32_t TITLE_INDEX[]
Definition: cases.cpp:743
unicode::TITLE_CASE
const UChar TITLE_CASE[]
Definition: cases.cpp:923
unicode::UPPER_NUM
const int32_t UPPER_NUM
Definition: unicode_data.h:86
unicode::UPPER_INDEX
const int32_t UPPER_INDEX[]
Definition: cases.cpp:25
unicode::CODE_NUM
const int32_t CODE_NUM
Definition: code_value.cpp:24
unicode::GENERAL_CATEGORY
const GeneralCategory GENERAL_CATEGORY[]
Definition: general_category.cpp:73
unicode::BASE_GENERAL_CATEGORY
const BaseGeneralCategory BASE_GENERAL_CATEGORY[]
Definition: general_category.cpp:6837
unicode_char.h
The data file that stores the information.
unicode::MIRRORED_VALUE
const bool MIRRORED_VALUE[]
Definition: mirrored.cpp:57
unicode::CANONICAL_COMBINING_INDEX
const int32_t CANONICAL_COMBINING_INDEX[]
Definition: canonical_combining_class.cpp:25
unicode::GeneralCategory
GeneralCategory
Definition: unicode_char.h:39
unicode::DECOMPOSITION_MAPPING_OFFSET
const int32_t DECOMPOSITION_MAPPING_OFFSET[]
Definition: decomposition_mapping.cpp:1939
unicode::UPPER_CASE
const UChar UPPER_CASE[]
Definition: cases.cpp:205