Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/jcodings/unicode/UnicodeEncoding.java
Original file line number Diff line number Diff line change
@@ -477,17 +477,17 @@ public final int caseMap(IntHolder flagP, byte[] bytes, IntHolder pp, int end, b
if ((flags & (Config.CASE_UPCASE | Config.CASE_DOWNCASE)) == (Config.CASE_UPCASE | Config.CASE_DOWNCASE))
specialCopy = true;
else
specialStart += CaseMappingSpecials.Values.get(specialStart).length;
specialStart++;
}
if (!specialCopy && (folded.flags & Config.CASE_TITLECASE) != 0) {
if ((flags & Config.CASE_TITLECASE) != 0)
specialCopy = true;
else
specialStart += CaseMappingSpecials.Values.get(specialStart).length;
specialStart++;
}
if (!specialCopy && (folded.flags & Config.CASE_DOWN_SPECIAL) != 0) {
if ((flags & Config.CASE_DOWN_SPECIAL) == 0)
specialStart += CaseMappingSpecials.Values.get(specialStart).length;
specialStart++;
}
codes = CaseMappingSpecials.Values.get(specialStart);
} else {

0 comments on commit f8f7077

Please sign in to comment.