mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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
This commit is contained in:
parent
1582093c77
commit
890ce36b79
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue