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

Last change on this file since 5685 was 5656, checked in by cameron, 2 years ago

UCD_Config.h, add Indic and CompositionExclusion? properties

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