diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-17 09:03:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-17 09:03:11 +0000 |
commit | 39f44f0113d3051f7d589414d0877d8dfda669b8 (patch) | |
tree | a369042696aa40a6495cffc4740c598babafbd9b /enc/unicode.c | |
parent | 959bbb6f7202676f2da1ef5e134e6152e8613b54 (diff) |
get rid of non-ascii chars
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index e61611801c..9fd3fe10ba 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -625,7 +625,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, if (code<='z') { /* ASCII comes first */ if (code>='a' && code<='z') { if (flags&ONIGENC_CASE_UPCASE) { - if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI && code==0x0069) /* i → İ */ + if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI && code==0x0069) /* i -> I WITH DOT ABOVE */ code = 0x0130; else code += 'A'-'a'; @@ -634,7 +634,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } else if (code>='A' && code<='Z') { if (flags&ONIGENC_CASE_DOWNCASE) { - if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI && code==0x0049) /* I → ı */ + if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI && code==0x0049) /* I -> DOTLESS i */ code = 0x0131; else code += 'a'-'A'; @@ -643,7 +643,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } } else if (code>=0x00C0) { /* deal with non-ASCII; nothing relevant below U+00C0 */ - if (code==0x0130) { /* İ → i */ + if (code==0x0130) { /* I WITH DOT ABOVE -> i */ if (flags&ONIGENC_CASE_UPCASE) { if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI) code = 0x0069; @@ -656,7 +656,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } /* the following case can be removed once we rely on data, * because the mapping is always the same */ - else if (code==0x0131 && flags&ONIGENC_CASE_UPCASE) { /* ı → I */ + else if (code==0x0131 && flags&ONIGENC_CASE_UPCASE) { /* DOTLESS i -> I */ code = 0x0049; MODIFIED; } } |