mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3ab0ea8027
commit
84cd51919b
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon May 16 20:00:30 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
|
* enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch
|
||||||
|
|
||||||
Mon May 16 19:46:33 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
Mon May 16 19:46:33 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* include/ruby/oniguruma.h: Introducing ONIG_CASE_MAPPING compilation
|
* include/ruby/oniguruma.h: Introducing ONIG_CASE_MAPPING compilation
|
||||||
|
|
|
@ -137,6 +137,7 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ONIG_CASE_MAPPING
|
||||||
/* macros related to ONIGENC_CASE flags */
|
/* macros related to ONIGENC_CASE flags */
|
||||||
/* defined here because not used in other files */
|
/* defined here because not used in other files */
|
||||||
#define ONIGENC_CASE_SPECIALS (ONIGENC_CASE_TITLECASE|ONIGENC_CASE_IS_TITLECASE|ONIGENC_CASE_UP_SPECIAL|ONIGENC_CASE_DOWN_SPECIAL)
|
#define ONIGENC_CASE_SPECIALS (ONIGENC_CASE_TITLECASE|ONIGENC_CASE_IS_TITLECASE|ONIGENC_CASE_UP_SPECIAL|ONIGENC_CASE_DOWN_SPECIAL)
|
||||||
|
@ -161,9 +162,11 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
|
||||||
#define IT ONIGENC_CASE_IS_TITLECASE
|
#define IT ONIGENC_CASE_IS_TITLECASE
|
||||||
#define I(n) OnigSpecialIndexEncode(n)
|
#define I(n) OnigSpecialIndexEncode(n)
|
||||||
#define L(n) SpecialsLengthEncode(n)
|
#define L(n) SpecialsLengthEncode(n)
|
||||||
|
#endif /* ONIG_CASE_MAPPING */
|
||||||
|
|
||||||
#include "enc/unicode/casefold.h"
|
#include "enc/unicode/casefold.h"
|
||||||
|
|
||||||
|
#ifdef ONIG_CASE_MAPPING
|
||||||
#undef U
|
#undef U
|
||||||
#undef D
|
#undef D
|
||||||
#undef F
|
#undef F
|
||||||
|
@ -173,6 +176,7 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
|
||||||
#undef IT
|
#undef IT
|
||||||
#undef I
|
#undef I
|
||||||
#undef L
|
#undef L
|
||||||
|
#endif /* ONIG_CASE_MAPPING */
|
||||||
|
|
||||||
#include "enc/unicode/name2ctype.h"
|
#include "enc/unicode/name2ctype.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue