diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | enc/unicode.c | 14 |
2 files changed, 11 insertions, 7 deletions
@@ -1,3 +1,7 @@ Mon Mar 28 11:30:23 2016 Shinichi Maeshima <[email protected]> * lib/rubygems.rb: Fix `Gem.find_spec_for_exe` picks oldest gem. @@ -710,22 +710,22 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, else if (code==DOTLESS_i && (flags&ONIGENC_CASE_UPCASE)) { code = 'I'; MODIFIED; } - else if ((folded = onigenc_unicode_fold_lookup(code)) != 0) { if (flags&OnigCaseFoldFlags(folded->n)) { const OnigCodePoint *next; int count; MODIFIED; - if (flags&OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_SPECIALS) { OnigCodePoint *SpecialsStart = CaseMappingSpecials + OnigSpecialIndexDecode(folded->n); - if (OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_TITLECASE) { - if (flags&ONIGENC_CASE_TITLECASE) { - if (OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_IS_TITLECASE) flags ^= ONIGENC_CASE_MODIFIED; goto SpecialsCopy; } - else SpecialsStart += SpecialsLengthExtract(*SpecialsStart); } if (OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_DOWN_SPECIAL) { @@ -756,7 +756,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } } } - else if ((folded = onigenc_unicode_unfold1_lookup(code)) != 0) { if (flags&OnigCaseFoldFlags(folded->n)) { int count = OnigCodePointCount(folded->n); const OnigCodePoint *next = folded->code; |