mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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:
parent
a2b88f5325
commit
59766643db
4 changed files with 307 additions and 199 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue