* enc/unicode.c: Adding comments. [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2016-03-28 02:49:20 +00:00
Родитель 64ce7711c0
Коммит 663fb4dd44
2 изменённых файлов: 11 добавлений и 7 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Mon Mar 28 11:49:21 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
* enc/unicode.c: Adding comments. [ci skip]
Mon Mar 28 11:30:23 2016 Shinichi Maeshima <netwillnet@gmail.com>
* 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) {
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;