diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-11 02:24:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-11 02:24:38 +0000 |
commit | 2d2b6460f48f82bdf7bee6a396293e2dc942e1a9 (patch) | |
tree | e6f0a380dc82137befc25919aef78ddf6a66c127 /enc/iso_8859_15.c | |
parent | 9fa8b80550d2af9309d2f493138c21969711bf60 (diff) |
iso_8859.h: SHARP_s
* enc/iso_8859.h (SHARP_s): name frequently used codepoint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/iso_8859_15.c')
-rw-r--r-- | enc/iso_8859_15.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/enc/iso_8859_15.c b/enc/iso_8859_15.c index c36429c4be..75adcafbd2 100644 --- a/enc/iso_8859_15.c +++ b/enc/iso_8859_15.c @@ -28,6 +28,7 @@ */ #include "regenc.h" +#include "iso_8859.h" #define ENC_ISO_8859_15_TO_LOWER_CASE(c) EncISO_8859_15_ToLowerCaseTable[c] #define ENC_IS_ISO_8859_15_CTYPE(code,ctype) \ @@ -110,7 +111,7 @@ mbc_case_fold(OnigCaseFoldType flag, { const UChar* p = *pp; - if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { + if (*p == SHARP_s && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { *lower++ = 's'; *lower = 's'; (*pp)++; @@ -130,7 +131,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, int v; const UChar* p = *pp; - if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { + if (*p == SHARP_s && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { (*pp)++; return TRUE; } |