Skip to content

Commit 4a00211

Browse files
author
Piotr Zolnierek
committed
std::unicode: remove unused category tables
1 parent 6cbba7c commit 4a00211

File tree

2 files changed

+4
-1341
lines changed

2 files changed

+4
-1341
lines changed

src/etc/unicode.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ def emit_property_module(f, mod, tbl):
165165
keys.sort()
166166
emit_bsearch_range_table(f);
167167
for cat in keys:
168-
if cat == "Cs": continue
168+
if cat not in ["Nd", "Nl", "No", "Cc",
169+
"XID_Start", "XID_Continue", "Alphabetic",
170+
"Lowercase", "Uppercase", "White_Space"]:
171+
continue
169172
f.write(" static %s_table : &'static [(char,char)] = &[\n" % cat)
170173
ix = 0
171174
for pair in tbl[cat]:

0 commit comments

Comments
 (0)