Differences From Artifact [d7680287a6]:
- File src/OFString.m — part of check-in [13f4c6c678] at 2016-09-12 00:27:14 on branch trunk — Add OF_DEALLOC_UNSUPPORTED macro (user: js, size: 58050) [annotate] [blame] [check-ins using]
To Artifact [4bcce6446e]:
- File
src/OFString.m
— part of check-in
[d9eb7b50b3]
at
2017-01-07 00:37:26
on branch trunk
— Add of_ascii_{to{upper,lower},is{alpha,alnum}}
These are independent of the locale and work on the ASCII character set.
Unlike the C ones, these are 8-bit safe, meaning if a character > 0x7F
is passed, is{alpha,alnum} returns false and to{upper,lower} returns the
original character. (user: js, size: 58031) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1369 1370 1371 1372 1373 1374 1375 | of_unichar_t tc = of_unicode_casefolding_table[oc >> 8][oc & 0xFF]; if (tc) oc = tc; } #else | < | < | | 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 | of_unichar_t tc = of_unicode_casefolding_table[oc >> 8][oc & 0xFF]; if (tc) oc = tc; } #else c = of_ascii_toupper(c); oc = of_ascii_toupper(oc); #endif if (c > oc) { objc_autoreleasePoolPop(pool); return OF_ORDERED_DESCENDING; } if (c < oc) { |
︙ | ︙ |