source: icGREP/icgrep-devel/icgrep/UCD/PropertyAliases.h @ 5755

Last change on this file since 5755 was 5686, checked in by cameron, 23 months ago

Update to UCD 10.0.0

File size: 11.5 KB
Line 
1#ifndef PROPERTYALIASES_H
2#define PROPERTYALIASES_H
3/*
4 *  Copyright (c) 2017 International Characters, Inc.
5 *  This software is licensed to the public under the Open Software License 3.0.
6 *  icgrep is a trademark of International Characters, Inc.
7 *
8 *  This file is generated by UCD_properties.py - manual edits may be lost.
9 */
10
11#include <string>
12#include <unordered_map>
13#include <vector>
14
15namespace UCD {
16    enum property_t {
17        cjkAccountingNumeric, cjkOtherNumeric, cjkPrimaryNumeric, nv, cf,
18        cjkCompatibilityVariant, dm, FC_NFKC, lc, NFKC_CF, scf, slc, stc,
19        suc, tc, uc, bmg, bpb, cjkIICore, cjkIRG_GSource, cjkIRG_HSource,
20        cjkIRG_JSource, cjkIRG_KPSource, cjkIRG_KSource, cjkIRG_MSource,
21        cjkIRG_TSource, cjkIRG_USource, cjkIRG_VSource, cjkRSUnicode, isc,
22        JSN, na, na1, Name_Alias, scx, age, blk, sc, bc, bpt, ccc, dt, ea,
23        gc, GCB, hst, InPC, InSC, jg, jt, lb, NFC_QC, NFD_QC, NFKC_QC,
24        NFKD_QC, nt, SB, vo, WB, AHex, Alpha, Bidi_C, Bidi_M, Cased, CE, CI,
25        Comp_Ex, CWCF, CWCM, CWKCF, CWL, CWT, CWU, Dash, Dep, DI, Dia, Ext,
26        Gr_Base, Gr_Ext, Gr_Link, Hex, Hyphen, IDC, Ideo, IDS, IDSB, IDST,
27        Join_C, LOE, Lower, Math, NChar, OAlpha, ODI, OGr_Ext, OIDC, OIDS,
28        OLower, OMath, OUpper, Pat_Syn, Pat_WS, PCM, QMark, Radical, RI, SD,
29        STerm, Term, UIdeo, Upper, VS, WSpace, XIDC, XIDS, XO_NFC, XO_NFD,
30        XO_NFKC, XO_NFKD};
31    const static std::vector<std::string> property_enum_name = {
32        "cjkAccountingNumeric", "cjkOtherNumeric", "cjkPrimaryNumeric",
33        "nv", "cf", "cjkCompatibilityVariant", "dm", "FC_NFKC", "lc",
34        "NFKC_CF", "scf", "slc", "stc", "suc", "tc", "uc", "bmg", "bpb",
35        "cjkIICore", "cjkIRG_GSource", "cjkIRG_HSource", "cjkIRG_JSource",
36        "cjkIRG_KPSource", "cjkIRG_KSource", "cjkIRG_MSource",
37        "cjkIRG_TSource", "cjkIRG_USource", "cjkIRG_VSource",
38        "cjkRSUnicode", "isc", "JSN", "na", "na1", "Name_Alias", "scx",
39        "age", "blk", "sc", "bc", "bpt", "ccc", "dt", "ea", "gc", "GCB",
40        "hst", "InPC", "InSC", "jg", "jt", "lb", "NFC_QC", "NFD_QC",
41        "NFKC_QC", "NFKD_QC", "nt", "SB", "vo", "WB", "AHex", "Alpha",
42        "Bidi_C", "Bidi_M", "Cased", "CE", "CI", "Comp_Ex", "CWCF", "CWCM",
43        "CWKCF", "CWL", "CWT", "CWU", "Dash", "Dep", "DI", "Dia", "Ext",
44        "Gr_Base", "Gr_Ext", "Gr_Link", "Hex", "Hyphen", "IDC", "Ideo",
45        "IDS", "IDSB", "IDST", "Join_C", "LOE", "Lower", "Math", "NChar",
46        "OAlpha", "ODI", "OGr_Ext", "OIDC", "OIDS", "OLower", "OMath",
47        "OUpper", "Pat_Syn", "Pat_WS", "PCM", "QMark", "Radical", "RI",
48        "SD", "STerm", "Term", "UIdeo", "Upper", "VS", "WSpace", "XIDC",
49        "XIDS", "XO_NFC", "XO_NFD", "XO_NFKC", "XO_NFKD"};
50    const static std::vector<std::string> property_full_name = {
51        "kAccountingNumeric", "kOtherNumeric", "kPrimaryNumeric",
52        "Numeric_Value", "Case_Folding", "kCompatibilityVariant",
53        "Decomposition_Mapping", "FC_NFKC_Closure", "Lowercase_Mapping",
54        "NFKC_Casefold", "Simple_Case_Folding", "Simple_Lowercase_Mapping",
55        "Simple_Titlecase_Mapping", "Simple_Uppercase_Mapping",
56        "Titlecase_Mapping", "Uppercase_Mapping", "Bidi_Mirroring_Glyph",
57        "Bidi_Paired_Bracket", "kIICore", "kIRG_GSource", "kIRG_HSource",
58        "kIRG_JSource", "kIRG_KPSource", "kIRG_KSource", "kIRG_MSource",
59        "kIRG_TSource", "kIRG_USource", "kIRG_VSource", "kRSUnicode",
60        "ISO_Comment", "Jamo_Short_Name", "Name", "Unicode_1_Name",
61        "Name_Alias", "Script_Extensions", "Age", "Block", "Script",
62        "Bidi_Class", "Bidi_Paired_Bracket_Type",
63        "Canonical_Combining_Class", "Decomposition_Type",
64        "East_Asian_Width", "General_Category", "Grapheme_Cluster_Break",
65        "Hangul_Syllable_Type", "Indic_Positional_Category",
66        "Indic_Syllabic_Category", "Joining_Group", "Joining_Type",
67        "Line_Break", "NFC_Quick_Check", "NFD_Quick_Check",
68        "NFKC_Quick_Check", "NFKD_Quick_Check", "Numeric_Type",
69        "Sentence_Break", "Vertical_Orientation", "Word_Break",
70        "ASCII_Hex_Digit", "Alphabetic", "Bidi_Control", "Bidi_Mirrored",
71        "Cased", "Composition_Exclusion", "Case_Ignorable",
72        "Full_Composition_Exclusion", "Changes_When_Casefolded",
73        "Changes_When_Casemapped", "Changes_When_NFKC_Casefolded",
74        "Changes_When_Lowercased", "Changes_When_Titlecased",
75        "Changes_When_Uppercased", "Dash", "Deprecated",
76        "Default_Ignorable_Code_Point", "Diacritic", "Extender",
77        "Grapheme_Base", "Grapheme_Extend", "Grapheme_Link", "Hex_Digit",
78        "Hyphen", "ID_Continue", "Ideographic", "ID_Start",
79        "IDS_Binary_Operator", "IDS_Trinary_Operator", "Join_Control",
80        "Logical_Order_Exception", "Lowercase", "Math",
81        "Noncharacter_Code_Point", "Other_Alphabetic",
82        "Other_Default_Ignorable_Code_Point", "Other_Grapheme_Extend",
83        "Other_ID_Continue", "Other_ID_Start", "Other_Lowercase",
84        "Other_Math", "Other_Uppercase", "Pattern_Syntax",
85        "Pattern_White_Space", "Prepended_Concatenation_Mark",
86        "Quotation_Mark", "Radical", "Regional_Indicator", "Soft_Dotted",
87        "Sentence_Terminal", "Terminal_Punctuation", "Unified_Ideograph",
88        "Uppercase", "Variation_Selector", "White_Space", "XID_Continue",
89        "XID_Start", "Expands_On_NFC", "Expands_On_NFD", "Expands_On_NFKC",
90        "Expands_On_NFKD"};
91    static std::unordered_map<std::string, int> alias_map {{
92        {"age", age}, {"ahex", AHex}, {"alpha", Alpha},
93        {"alphabetic", Alpha}, {"asciihexdigit", AHex}, {"bc", bc},
94        {"bidic", Bidi_C}, {"bidiclass", bc}, {"bidicontrol", Bidi_C},
95        {"bidim", Bidi_M}, {"bidimirrored", Bidi_M},
96        {"bidimirroringglyph", bmg}, {"bidipairedbracket", bpb},
97        {"bidipairedbrackettype", bpt}, {"blk", blk}, {"block", blk},
98        {"bmg", bmg}, {"bpb", bpb}, {"bpt", bpt},
99        {"canonicalcombiningclass", ccc}, {"cased", Cased},
100        {"casefolding", cf}, {"caseignorable", CI}, {"ccc", ccc},
101        {"ce", CE}, {"cf", cf}, {"changeswhencasefolded", CWCF},
102        {"changeswhencasemapped", CWCM}, {"changeswhenlowercased", CWL},
103        {"changeswhennfkccasefolded", CWKCF},
104        {"changeswhentitlecased", CWT}, {"changeswhenuppercased", CWU},
105        {"ci", CI}, {"cjkaccountingnumeric", cjkAccountingNumeric},
106        {"cjkcompatibilityvariant", cjkCompatibilityVariant},
107        {"cjkiicore", cjkIICore}, {"cjkirggsource", cjkIRG_GSource},
108        {"cjkirghsource", cjkIRG_HSource},
109        {"cjkirgjsource", cjkIRG_JSource},
110        {"cjkirgkpsource", cjkIRG_KPSource},
111        {"cjkirgksource", cjkIRG_KSource},
112        {"cjkirgmsource", cjkIRG_MSource},
113        {"cjkirgtsource", cjkIRG_TSource},
114        {"cjkirgusource", cjkIRG_USource},
115        {"cjkirgvsource", cjkIRG_VSource},
116        {"cjkothernumeric", cjkOtherNumeric},
117        {"cjkprimarynumeric", cjkPrimaryNumeric},
118        {"cjkrsunicode", cjkRSUnicode}, {"compex", Comp_Ex},
119        {"compositionexclusion", CE}, {"cwcf", CWCF}, {"cwcm", CWCM},
120        {"cwkcf", CWKCF}, {"cwl", CWL}, {"cwt", CWT}, {"cwu", CWU},
121        {"dash", Dash}, {"decompositionmapping", dm},
122        {"decompositiontype", dt}, {"defaultignorablecodepoint", DI},
123        {"dep", Dep}, {"deprecated", Dep}, {"di", DI}, {"dia", Dia},
124        {"diacritic", Dia}, {"dm", dm}, {"dt", dt}, {"ea", ea},
125        {"eastasianwidth", ea}, {"expandsonnfc", XO_NFC},
126        {"expandsonnfd", XO_NFD}, {"expandsonnfkc", XO_NFKC},
127        {"expandsonnfkd", XO_NFKD}, {"ext", Ext}, {"extender", Ext},
128        {"fcnfkc", FC_NFKC}, {"fcnfkcclosure", FC_NFKC},
129        {"fullcompositionexclusion", Comp_Ex}, {"gc", gc}, {"gcb", GCB},
130        {"generalcategory", gc}, {"graphemebase", Gr_Base},
131        {"graphemeclusterbreak", GCB}, {"graphemeextend", Gr_Ext},
132        {"graphemelink", Gr_Link}, {"grbase", Gr_Base}, {"grext", Gr_Ext},
133        {"grlink", Gr_Link}, {"hangulsyllabletype", hst}, {"hex", Hex},
134        {"hexdigit", Hex}, {"hst", hst}, {"hyphen", Hyphen}, {"idc", IDC},
135        {"idcontinue", IDC}, {"ideo", Ideo}, {"ideographic", Ideo},
136        {"ids", IDS}, {"idsb", IDSB}, {"idsbinaryoperator", IDSB},
137        {"idst", IDST}, {"idstart", IDS}, {"idstrinaryoperator", IDST},
138        {"indicpositionalcategory", InPC}, {"indicsyllabiccategory", InSC},
139        {"inpc", InPC}, {"insc", InSC}, {"isc", isc}, {"isocomment", isc},
140        {"jamoshortname", JSN}, {"jg", jg}, {"joinc", Join_C},
141        {"joincontrol", Join_C}, {"joininggroup", jg}, {"joiningtype", jt},
142        {"jsn", JSN}, {"jt", jt},
143        {"kaccountingnumeric", cjkAccountingNumeric},
144        {"kcompatibilityvariant", cjkCompatibilityVariant},
145        {"kiicore", cjkIICore}, {"kirggsource", cjkIRG_GSource},
146        {"kirghsource", cjkIRG_HSource}, {"kirgjsource", cjkIRG_JSource},
147        {"kirgkpsource", cjkIRG_KPSource}, {"kirgksource", cjkIRG_KSource},
148        {"kirgmsource", cjkIRG_MSource}, {"kirgtsource", cjkIRG_TSource},
149        {"kirgusource", cjkIRG_USource}, {"kirgvsource", cjkIRG_VSource},
150        {"kothernumeric", cjkOtherNumeric},
151        {"kprimarynumeric", cjkPrimaryNumeric},
152        {"krsunicode", cjkRSUnicode}, {"lb", lb}, {"lc", lc},
153        {"linebreak", lb}, {"loe", LOE}, {"logicalorderexception", LOE},
154        {"lower", Lower}, {"lowercase", Lower}, {"lowercasemapping", lc},
155        {"math", Math}, {"na", na}, {"na1", na1}, {"name", na},
156        {"namealias", Name_Alias}, {"nchar", NChar}, {"nfcqc", NFC_QC},
157        {"nfcquickcheck", NFC_QC}, {"nfdqc", NFD_QC},
158        {"nfdquickcheck", NFD_QC}, {"nfkccasefold", NFKC_CF},
159        {"nfkccf", NFKC_CF}, {"nfkcqc", NFKC_QC},
160        {"nfkcquickcheck", NFKC_QC}, {"nfkdqc", NFKD_QC},
161        {"nfkdquickcheck", NFKD_QC}, {"noncharactercodepoint", NChar},
162        {"nt", nt}, {"numerictype", nt}, {"numericvalue", nv}, {"nv", nv},
163        {"oalpha", OAlpha}, {"odi", ODI}, {"ogrext", OGr_Ext},
164        {"oidc", OIDC}, {"oids", OIDS}, {"olower", OLower},
165        {"omath", OMath}, {"otheralphabetic", OAlpha},
166        {"otherdefaultignorablecodepoint", ODI},
167        {"othergraphemeextend", OGr_Ext}, {"otheridcontinue", OIDC},
168        {"otheridstart", OIDS}, {"otherlowercase", OLower},
169        {"othermath", OMath}, {"otheruppercase", OUpper},
170        {"oupper", OUpper}, {"patsyn", Pat_Syn}, {"patternsyntax", Pat_Syn},
171        {"patternwhitespace", Pat_WS}, {"patws", Pat_WS}, {"pcm", PCM},
172        {"prependedconcatenationmark", PCM}, {"qmark", QMark},
173        {"quotationmark", QMark}, {"radical", Radical},
174        {"regionalindicator", RI}, {"ri", RI}, {"sb", SB}, {"sc", sc},
175        {"scf", scf}, {"script", sc}, {"scriptextensions", scx},
176        {"scx", scx}, {"sd", SD}, {"sentencebreak", SB},
177        {"sentenceterminal", STerm}, {"sfc", scf},
178        {"simplecasefolding", scf}, {"simplelowercasemapping", slc},
179        {"simpletitlecasemapping", stc}, {"simpleuppercasemapping", suc},
180        {"slc", slc}, {"softdotted", SD}, {"space", WSpace}, {"stc", stc},
181        {"sterm", STerm}, {"suc", suc}, {"tc", tc}, {"term", Term},
182        {"terminalpunctuation", Term}, {"titlecasemapping", tc}, {"uc", uc},
183        {"uideo", UIdeo}, {"unicode1name", na1},
184        {"unicoderadicalstroke", cjkRSUnicode}, {"unifiedideograph", UIdeo},
185        {"upper", Upper}, {"uppercase", Upper}, {"uppercasemapping", uc},
186        {"urs", cjkRSUnicode}, {"variationselector", VS},
187        {"verticalorientation", vo}, {"vo", vo}, {"vs", VS}, {"wb", WB},
188        {"whitespace", WSpace}, {"wordbreak", WB}, {"wspace", WSpace},
189        {"xidc", XIDC}, {"xidcontinue", XIDC}, {"xids", XIDS},
190        {"xidstart", XIDS}, {"xonfc", XO_NFC}, {"xonfd", XO_NFD},
191        {"xonfkc", XO_NFKC}, {"xonfkd", XO_NFKD}}};
192}
193
194#endif
Note: See TracBrowser for help on using the repository browser.