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

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

UCD property resolution initial check in

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