summaryrefslogtreecommitdiff
path: root/enc/unicode
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-29 16:29:06 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-29 16:29:06 +0000
commit291fa223cfb2349c5e7fc5bb0e7729a2cfcc52cf (patch)
tree575b9cf8fa53adeedd5cc53b801da706c1598069 /enc/unicode
parent31eb29fe975bdf1d1e7ed5f3eb991430b381bc06 (diff)
* regparse.c (is_onechar_cclass): optimize character class
Merge Onigmo 27278c12e6674043cc8affca6507e20e119a86ee. * regparse.c (is_onechar_cclass): [bug] unexpected match occurs when a char class contains no char * enc/unicode.c (init_case_fold_table): define the sizes of case folding tables in casefold.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode')
-rw-r--r--enc/unicode/casefold.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/enc/unicode/casefold.h b/enc/unicode/casefold.h
index b4f2ee3..b9559de 100644
--- a/enc/unicode/casefold.h
+++ b/enc/unicode/casefold.h
@@ -1,3 +1,6 @@
+/* DO NOT EDIT THIS FILE. */
+/* Generated by tool/CaseFolding.py */
+
static const CaseFold_11_Type CaseFold[] = {
{ 0x0041, {1, {0x0061}}},
{ 0x0042, {1, {0x0062}}},
@@ -2228,3 +2231,8 @@ static const CaseUnfold_13_Type CaseUnfold_13[] = {
{ {0x03c5, 0x0313, 0x0342}, {1, {0x1f56 }}},
{ {0x03c9, 0x0342, 0x03b9}, {1, {0x1ff7 }}},
};
+
+#define FOLD_TABLE_SIZE 1357
+#define UNFOLD1_TABLE_SIZE 1207
+#define UNFOLD2_TABLE_SIZE 88
+#define UNFOLD3_TABLE_SIZE 23