summaryrefslogtreecommitdiff
path: root/enc/unicode.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-07 13:10:20 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-07 13:10:20 +0000
commit49ca434bcf64f115bf1915f5287fbb61598ed773 (patch)
tree85636539b1cd2efbe18f905b9602ce5e9416e15b /enc/unicode.c
parent2c9274eff2e2c0451145116f68ac3be371ebd66e (diff)
* common.mk: Added two more precondition files for enc/unicode/casefold.h
* enc/unicode.c: Added shortening macros for enc/unicode/casefold.h * enc/unicode/case-folding.rb: Fixed file encoding for CaseFolding.txt to ASCII-8BIT (should fix some ci errors). Clarified usage. Created class MapItem. Partially implemented class CaseMapping. (with Kimihito Matsui) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r--enc/unicode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/enc/unicode.c b/enc/unicode.c
index 99dc6dc0d3..b0ecc1bc50 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -140,8 +140,18 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
return 1;
}
+#define UP ONIGENC_CASE_UPCASE
+#define DOWN ONIGENC_CASE_DOWNCASE
+#define TITLE ONIGENC_CASE_TITLECASE
+#define FOLD ONIGENC_CASE_FOLD
+
#include "enc/unicode/casefold.h"
+#undef UP
+#undef DOWN
+#undef TITLE
+#undef FOLD
+
#include "enc/unicode/name2ctype.h"
#define CODE_RANGES_NUM numberof(CodeRanges)