* 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
This commit is contained in:
duerst 2016-03-11 07:11:27 +00:00
parent a2b88f5325
commit 59766643db
4 changed files with 307 additions and 199 deletions

View file

@ -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"