diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 02:49:20 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 02:49:20 +0000 |
commit | 663fb4dd44cb55388ef647f533cdd2cd578319f3 (patch) | |
tree | f8b137e2ccb687c03c75fb55c854015e6d90944a /enc | |
parent | 64ce7711c0c428531ae09472c85df85cd3d1b603 (diff) | |
download | ruby-663fb4dd44cb55388ef647f533cdd2cd578319f3.tar.gz |
* enc/unicode.c: Adding comments. [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/unicode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index c6df689ef5..a7483468f9 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -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) { + else if ((folded = onigenc_unicode_fold_lookup(code)) != 0) { /* data about character found in CaseFold_11_Table */ if (flags&OnigCaseFoldFlags(folded->n)) { const OnigCodePoint *next; int count; MODIFIED; - if (flags&OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_SPECIALS) { + if (flags&OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_SPECIALS) { /* special */ 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) + if (OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_TITLECASE) { /* Titlecase available */ + if (flags&ONIGENC_CASE_TITLECASE) { /* titlecase needed */ + if (OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_IS_TITLECASE) /* alread titlecase */ flags ^= ONIGENC_CASE_MODIFIED; goto SpecialsCopy; } - else + else /* Titlecase not needed */ 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) { + else if ((folded = onigenc_unicode_unfold1_lookup(code)) != 0) { /* data about character found in CaseUnfold_11_Table */ if (flags&OnigCaseFoldFlags(folded->n)) { int count = OnigCodePointCount(folded->n); const OnigCodePoint *next = folded->code; |