Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/org/jcodings/specific/ISO8859_1Encoding.java
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ public void applyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)

if (b == 0x53 && end > p + 1 &&
(bytes[p+1] == (byte)0x53 || bytes[p+1] == (byte)0x73)) { /* ss */
CaseFoldCodeItem item1 = new CaseFoldCodeItem(2, 1, new int[]{0xdf});
CaseFoldCodeItem item1 = new CaseFoldCodeItem(2, 1, new int[]{SHARP_s});

return new CaseFoldCodeItem[]{item0, item1};
} else {
@@ -59,16 +59,16 @@ public void applyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)

if (b == 0x73 && end > p + 1 &&
(bytes[p+1] == (byte)0x73 || bytes[p+1] == (byte)0x53)) { /* ss */
CaseFoldCodeItem item1 = new CaseFoldCodeItem(2, 1, new int[]{0xdf});
CaseFoldCodeItem item1 = new CaseFoldCodeItem(2, 1, new int[]{SHARP_s});
return new CaseFoldCodeItem[]{item0, item1};
} else {
return new CaseFoldCodeItem[]{item0};
}

} else if (0xc0 <= b && b <= 0xcf) {
return new CaseFoldCodeItem[]{new CaseFoldCodeItem(1, 1, new int[]{b + 0x20})};
} else if (0xd0 <= b && b <= 0xdf) {
if (b == 0xdf) {
} else if (0xd0 <= b && b <= SHARP_s) {
if (b == SHARP_s) {
CaseFoldCodeItem item0 = new CaseFoldCodeItem(1, 2, new int[]{'s', 's'});
CaseFoldCodeItem item1 = new CaseFoldCodeItem(1, 2, new int[]{'S', 'S'});
CaseFoldCodeItem item2 = new CaseFoldCodeItem(1, 2, new int[]{'s', 'S'});

0 comments on commit b5d6ba6

Please sign in to comment.