зеркало из https://github.com/github/ruby.git
* 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:
Родитель
1582093c77
Коммит
890ce36b79
|
@ -1,3 +1,7 @@
|
|||
Mon Mar 28 14:36:36 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* enc/unicode.c: Minor refactoring for I WITH DOT ABOVE.
|
||||
|
||||
Mon Mar 28 14:26:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* enc/unicode.c: Removed code now covered by data from table.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче