Chromium Code Reviews| Index: fusl/src/ctype/towctrans.c |
| diff --git a/fusl/src/ctype/towctrans.c b/fusl/src/ctype/towctrans.c |
| index 6af618758bcb853096fa74b8a54d820cd1626ec2..8f9b1d66dd29ff90fb794e91c1f008e72a9d2900 100644 |
| --- a/fusl/src/ctype/towctrans.c |
| +++ b/fusl/src/ctype/towctrans.c |
| @@ -232,12 +232,14 @@ static wchar_t __towcase(wchar_t wc, int lower) |
| || (unsigned)wc - 0xa800 <= 0xfeff-0xa800) |
| return wc; |
| /* special case because the diff between upper/lower is too big */ |
| - if (lower && (unsigned)wc - 0x10a0 < 0x2e) |
| + if (lower && (unsigned)wc - 0x10a0 < 0x2e) { |
| if (wc>0x10c5 && wc != 0x10c7 && wc != 0x10cd) return wc; |
| else return wc + 0x2d00 - 0x10a0; |
| - if (!lower && (unsigned)wc - 0x2d00 < 0x26) |
| + } |
| + if (!lower && (unsigned)wc - 0x2d00 < 0x26) { |
| if (wc>0x2d25 && wc != 0x2d27 && wc != 0x2d2d) return wc; |
| else return wc + 0x10a0 - 0x2d00; |
| + } |
|
viettrungluu
2016/01/12 16:47:50
"Should" this be a hard tab? (Or is this just a ri
|
| for (i=0; casemaps[i].len; i++) { |
| int base = casemaps[i].upper + (lmask & casemaps[i].lower); |
| if ((unsigned)wc-base < casemaps[i].len) { |