Skip to content

Commit b5d6ba6

Browse files
committedDec 23, 2017
use SHARP_s
1 parent fb25693 commit b5d6ba6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/org/jcodings/specific/ISO8859_1Encoding.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void applyAllCaseFold(int flag, ApplyAllCaseFoldFunction fun, Object arg)
4848

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

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

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.