diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-24 13:32:01 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-24 13:32:01 +0000 |
commit | f1f48e610311d812eaf408d0947e8a3686ed3364 (patch) | |
tree | 81d3fe56ff75679c57bc42b629ca5f86fd973c39 /enc/unicode.c | |
parent | 169b867fbf039ccb7f990449b898b2f9870a5269 (diff) | |
download | ruby-f1f48e610311d812eaf408d0947e8a3686ed3364.tar.gz |
* include/ruby/oniguruma.h: Rearranging flag assignments and making
space for titlecase indices; adding additional macros to add or
extract titlecase index; adding comments for better documentation.
* enc/unicode.c: Moving some macros to include/ruby/oniguruma.h;
activating use of titlecase indices.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index d26497fc9c..e9c2803cab 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -71,10 +71,6 @@ static const unsigned short EncUNICODE_ISO_8859_1_CtypeTable[256] = { 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2 }; -/* use bottom bytes for actual code point count; 3 bits is more than enough */ -#define OnigCodePointCount(n) ((n)&0x7) -#define OnigCaseFoldFlags(n) ((n)&~0x7) - typedef struct { int n; OnigCodePoint code[3]; @@ -144,7 +140,7 @@ 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 +#define T(n) (ONIGENC_CASE_TITLECASE|OnigTitlecaseEncode(n)) #include "enc/unicode/casefold.h" |