From 49ca434bcf64f115bf1915f5287fbb61598ed773 Mon Sep 17 00:00:00 2001 From: duerst Date: Sun, 7 Feb 2016 13:10:20 +0000 Subject: * 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 --- enc/unicode.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'enc/unicode.c') 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) -- cgit v1.2.3