diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-11 07:11:27 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-11 07:11:27 +0000 |
commit | 59766643db17f8dbfe518cafa20f6ba36a9b8d9b (patch) | |
tree | 07f615f30e64f8db066d53cdf7b03a18949bdb1d /enc/unicode.c | |
parent | a2b88f53257500c6a7d08094b821e8e4fb19369a (diff) | |
download | ruby-59766643db17f8dbfe518cafa20f6ba36a9b8d9b.tar.gz |
* enc/unicode/case-folding.rb, casefold.h: Streamlining approach to
case mapping data not available from case folding by unifying all
three cases (special title, special upper, special lower).
* enc/unicode.c: Adjust macro names for above (macros are currently inactive).
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index e9c2803cab..f5a7d9b984 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -140,14 +140,22 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y) #define U ONIGENC_CASE_UPCASE #define D ONIGENC_CASE_DOWNCASE #define F ONIGENC_CASE_FOLD -#define T(n) (ONIGENC_CASE_TITLECASE|OnigTitlecaseEncode(n)) +#define ST 0 +#define SU 0 +#define SL 0 +#define I(n) 0 +#define L(n) 0 #include "enc/unicode/casefold.h" #undef U #undef D #undef F -#undef T +#undef ST +#undef SU +#undef SL +#undef I +#undef L #include "enc/unicode/name2ctype.h" |