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

Last change on this file since 4819 was 4636, checked in by cameron, 4 years ago

Update to Unicode 8.0

File size: 11.2 KB
Line 
1#ifndef PROPERTYALIASES_H
2#define PROPERTYALIASES_H
3/*
4 *  Copyright (c) 2015 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, 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, QMark, Radical, SD, STerm,
29        Term, UIdeo, Upper, VS, WSpace, XIDC, XIDS, XO_NFC, XO_NFD, XO_NFKC,
30        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", "WB", "AHex", "Alpha", "Bidi_C",
42        "Bidi_M", "Cased", "CE", "CI", "Comp_Ex", "CWCF", "CWCM", "CWKCF",
43        "CWL", "CWT", "CWU", "Dash", "Dep", "DI", "Dia", "Ext", "Gr_Base",
44        "Gr_Ext", "Gr_Link", "Hex", "Hyphen", "IDC", "Ideo", "IDS", "IDSB",
45        "IDST", "Join_C", "LOE", "Lower", "Math", "NChar", "OAlpha", "ODI",
46        "OGr_Ext", "OIDC", "OIDS", "OLower", "OMath", "OUpper", "Pat_Syn",
47        "Pat_WS", "QMark", "Radical", "SD", "STerm", "Term", "UIdeo",
48        "Upper", "VS", "WSpace", "XIDC", "XIDS", "XO_NFC", "XO_NFD",
49        "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", "Word_Break", "ASCII_Hex_Digit", "Alphabetic",
70        "Bidi_Control", "Bidi_Mirrored", "Cased", "Composition_Exclusion",
71        "Case_Ignorable", "Full_Composition_Exclusion",
72        "Changes_When_Casefolded", "Changes_When_Casemapped",
73        "Changes_When_NFKC_Casefolded", "Changes_When_Lowercased",
74        "Changes_When_Titlecased", "Changes_When_Uppercased", "Dash",
75        "Deprecated", "Default_Ignorable_Code_Point", "Diacritic",
76        "Extender", "Grapheme_Base", "Grapheme_Extend", "Grapheme_Link",
77        "Hex_Digit", "Hyphen", "ID_Continue", "Ideographic", "ID_Start",
78        "IDS_Binary_Operator", "IDS_Trinary_Operator", "Join_Control",
79        "Logical_Order_Exception", "Lowercase", "Math",
80        "Noncharacter_Code_Point", "Other_Alphabetic",
81        "Other_Default_Ignorable_Code_Point", "Other_Grapheme_Extend",
82        "Other_ID_Continue", "Other_ID_Start", "Other_Lowercase",
83        "Other_Math", "Other_Uppercase", "Pattern_Syntax",
84        "Pattern_White_Space", "Quotation_Mark", "Radical", "Soft_Dotted",
85        "STerm", "Terminal_Punctuation", "Unified_Ideograph", "Uppercase",
86        "Variation_Selector", "White_Space", "XID_Continue", "XID_Start",
87        "Expands_On_NFC", "Expands_On_NFD", "Expands_On_NFKC",
88        "Expands_On_NFKD"};
89    static std::unordered_map<std::string, int> alias_map {{
90        {"age", age}, {"ahex", AHex}, {"alpha", Alpha},
91        {"alphabetic", Alpha}, {"asciihexdigit", AHex}, {"bc", bc},
92        {"bidic", Bidi_C}, {"bidiclass", bc}, {"bidicontrol", Bidi_C},
93        {"bidim", Bidi_M}, {"bidimirrored", Bidi_M},
94        {"bidimirroringglyph", bmg}, {"bidipairedbracket", bpb},
95        {"bidipairedbrackettype", bpt}, {"blk", blk}, {"block", blk},
96        {"bmg", bmg}, {"bpb", bpb}, {"bpt", bpt},
97        {"canonicalcombiningclass", ccc}, {"cased", Cased},
98        {"casefolding", cf}, {"caseignorable", CI}, {"ccc", ccc},
99        {"ce", CE}, {"cf", cf}, {"changeswhencasefolded", CWCF},
100        {"changeswhencasemapped", CWCM}, {"changeswhenlowercased", CWL},
101        {"changeswhennfkccasefolded", CWKCF},
102        {"changeswhentitlecased", CWT}, {"changeswhenuppercased", CWU},
103        {"ci", CI}, {"cjkaccountingnumeric", cjkAccountingNumeric},
104        {"cjkcompatibilityvariant", cjkCompatibilityVariant},
105        {"cjkiicore", cjkIICore}, {"cjkirggsource", cjkIRG_GSource},
106        {"cjkirghsource", cjkIRG_HSource},
107        {"cjkirgjsource", cjkIRG_JSource},
108        {"cjkirgkpsource", cjkIRG_KPSource},
109        {"cjkirgksource", cjkIRG_KSource},
110        {"cjkirgmsource", cjkIRG_MSource},
111        {"cjkirgtsource", cjkIRG_TSource},
112        {"cjkirgusource", cjkIRG_USource},
113        {"cjkirgvsource", cjkIRG_VSource},
114        {"cjkothernumeric", cjkOtherNumeric},
115        {"cjkprimarynumeric", cjkPrimaryNumeric},
116        {"cjkrsunicode", cjkRSUnicode}, {"compex", Comp_Ex},
117        {"compositionexclusion", CE}, {"cwcf", CWCF}, {"cwcm", CWCM},
118        {"cwkcf", CWKCF}, {"cwl", CWL}, {"cwt", CWT}, {"cwu", CWU},
119        {"dash", Dash}, {"decompositionmapping", dm},
120        {"decompositiontype", dt}, {"defaultignorablecodepoint", DI},
121        {"dep", Dep}, {"deprecated", Dep}, {"di", DI}, {"dia", Dia},
122        {"diacritic", Dia}, {"dm", dm}, {"dt", dt}, {"ea", ea},
123        {"eastasianwidth", ea}, {"expandsonnfc", XO_NFC},
124        {"expandsonnfd", XO_NFD}, {"expandsonnfkc", XO_NFKC},
125        {"expandsonnfkd", XO_NFKD}, {"ext", Ext}, {"extender", Ext},
126        {"fcnfkc", FC_NFKC}, {"fcnfkcclosure", FC_NFKC},
127        {"fullcompositionexclusion", Comp_Ex}, {"gc", gc}, {"gcb", GCB},
128        {"generalcategory", gc}, {"graphemebase", Gr_Base},
129        {"graphemeclusterbreak", GCB}, {"graphemeextend", Gr_Ext},
130        {"graphemelink", Gr_Link}, {"grbase", Gr_Base}, {"grext", Gr_Ext},
131        {"grlink", Gr_Link}, {"hangulsyllabletype", hst}, {"hex", Hex},
132        {"hexdigit", Hex}, {"hst", hst}, {"hyphen", Hyphen}, {"idc", IDC},
133        {"idcontinue", IDC}, {"ideo", Ideo}, {"ideographic", Ideo},
134        {"ids", IDS}, {"idsb", IDSB}, {"idsbinaryoperator", IDSB},
135        {"idst", IDST}, {"idstart", IDS}, {"idstrinaryoperator", IDST},
136        {"indicpositionalcategory", InPC}, {"indicsyllabiccategory", InSC},
137        {"inpc", InPC}, {"insc", InSC}, {"isc", isc}, {"isocomment", isc},
138        {"jamoshortname", JSN}, {"jg", jg}, {"joinc", Join_C},
139        {"joincontrol", Join_C}, {"joininggroup", jg}, {"joiningtype", jt},
140        {"jsn", JSN}, {"jt", jt},
141        {"kaccountingnumeric", cjkAccountingNumeric},
142        {"kcompatibilityvariant", cjkCompatibilityVariant},
143        {"kiicore", cjkIICore}, {"kirggsource", cjkIRG_GSource},
144        {"kirghsource", cjkIRG_HSource}, {"kirgjsource", cjkIRG_JSource},
145        {"kirgkpsource", cjkIRG_KPSource}, {"kirgksource", cjkIRG_KSource},
146        {"kirgmsource", cjkIRG_MSource}, {"kirgtsource", cjkIRG_TSource},
147        {"kirgusource", cjkIRG_USource}, {"kirgvsource", cjkIRG_VSource},
148        {"kothernumeric", cjkOtherNumeric},
149        {"kprimarynumeric", cjkPrimaryNumeric},
150        {"krsunicode", cjkRSUnicode}, {"lb", lb}, {"lc", lc},
151        {"linebreak", lb}, {"loe", LOE}, {"logicalorderexception", LOE},
152        {"lower", Lower}, {"lowercase", Lower}, {"lowercasemapping", lc},
153        {"math", Math}, {"na", na}, {"na1", na1}, {"name", na},
154        {"namealias", Name_Alias}, {"nchar", NChar}, {"nfcqc", NFC_QC},
155        {"nfcquickcheck", NFC_QC}, {"nfdqc", NFD_QC},
156        {"nfdquickcheck", NFD_QC}, {"nfkccasefold", NFKC_CF},
157        {"nfkccf", NFKC_CF}, {"nfkcqc", NFKC_QC},
158        {"nfkcquickcheck", NFKC_QC}, {"nfkdqc", NFKD_QC},
159        {"nfkdquickcheck", NFKD_QC}, {"noncharactercodepoint", NChar},
160        {"nt", nt}, {"numerictype", nt}, {"numericvalue", nv}, {"nv", nv},
161        {"oalpha", OAlpha}, {"odi", ODI}, {"ogrext", OGr_Ext},
162        {"oidc", OIDC}, {"oids", OIDS}, {"olower", OLower},
163        {"omath", OMath}, {"otheralphabetic", OAlpha},
164        {"otherdefaultignorablecodepoint", ODI},
165        {"othergraphemeextend", OGr_Ext}, {"otheridcontinue", OIDC},
166        {"otheridstart", OIDS}, {"otherlowercase", OLower},
167        {"othermath", OMath}, {"otheruppercase", OUpper},
168        {"oupper", OUpper}, {"patsyn", Pat_Syn}, {"patternsyntax", Pat_Syn},
169        {"patternwhitespace", Pat_WS}, {"patws", Pat_WS}, {"qmark", QMark},
170        {"quotationmark", QMark}, {"radical", Radical}, {"sb", SB},
171        {"sc", sc}, {"scf", scf}, {"script", sc}, {"scriptextensions", scx},
172        {"scx", scx}, {"sd", SD}, {"sentencebreak", SB}, {"sfc", scf},
173        {"simplecasefolding", scf}, {"simplelowercasemapping", slc},
174        {"simpletitlecasemapping", stc}, {"simpleuppercasemapping", suc},
175        {"slc", slc}, {"softdotted", SD}, {"space", WSpace}, {"stc", stc},
176        {"sterm", STerm}, {"suc", suc}, {"tc", tc}, {"term", Term},
177        {"terminalpunctuation", Term}, {"titlecasemapping", tc}, {"uc", uc},
178        {"uideo", UIdeo}, {"unicode1name", na1},
179        {"unicoderadicalstroke", cjkRSUnicode}, {"unifiedideograph", UIdeo},
180        {"upper", Upper}, {"uppercase", Upper}, {"uppercasemapping", uc},
181        {"urs", cjkRSUnicode}, {"variationselector", VS}, {"vs", VS},
182        {"wb", WB}, {"whitespace", WSpace}, {"wordbreak", WB},
183        {"wspace", WSpace}, {"xidc", XIDC}, {"xidcontinue", XIDC},
184        {"xids", XIDS}, {"xidstart", XIDS}, {"xonfc", XO_NFC},
185        {"xonfd", XO_NFD}, {"xonfkc", XO_NFKC}, {"xonfkd", XO_NFKD}}};
186}
187
188#endif
Note: See TracBrowser for help on using the repository browser.