diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 05:36:35 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 05:36:35 +0000 |
commit | 890ce36b797fe3e91d039f5fafcba3681f342557 (patch) | |
tree | eeffb9eae6cf829dff6a9cd0314afb4110c4a8e3 /enc/unicode.c | |
parent | 1582093c776af309314c4cf1598e81af46bf2117 (diff) | |
download | ruby-890ce36b797fe3e91d039f5fafcba3681f342557.tar.gz |
* enc/unicode.c: Minor refactoring for I WITH DOT ABOVE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index 0e5d29b913..e51c2a1363 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -696,10 +696,9 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, if (code==I_WITH_DOT_ABOVE) { if (flags&ONIGENC_CASE_DOWNCASE) { MODIFIED; - if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI) - code = 'i'; - else { /* make dot above explicit */ - to += ONIGENC_CODE_TO_MBC(enc, 'i', to); + code = 'i'; + if (!(flags&ONIGENC_CASE_FOLD_TURKISH_AZERI)) { /* make dot above explicit */ + to += ONIGENC_CODE_TO_MBC(enc, code, to); code = DOT_ABOVE; } } |