Differences From Artifact [38f6296657]:
- File
src/OFString_UTF8.m
— part of check-in
[a9f85ba3b1]
at
2017-01-11 03:49:27
on branch trunk
— Use U+FFFF for invalid characters
This used to be U+FFFD, but if a character is not assigned in an
encoding, U+FFFF is a better match. (user: js, size: 28786) [annotate] [blame] [check-ins using]
To Artifact [fe504fcb59]:
- File src/OFString_UTF8.m — part of check-in [0f88ccfb04] at 2017-01-11 04:22:31 on branch trunk — Add Windows-1251 encoding (user: js, size: 28911) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #import "OFOutOfMemoryException.h" #import "OFOutOfRangeException.h" #import "of_asprintf.h" #import "unicode.h" extern const of_char16_t of_iso_8859_15[128]; extern const of_char16_t of_windows_1252[128]; extern const of_char16_t of_codepage_437[128]; extern const of_char16_t of_codepage_850[128]; extern const of_char16_t of_mac_roman[128]; static inline int memcasecmp(const char *first, const char *second, size_t length) | > | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #import "OFOutOfMemoryException.h" #import "OFOutOfRangeException.h" #import "of_asprintf.h" #import "unicode.h" extern const of_char16_t of_iso_8859_15[128]; extern const of_char16_t of_windows_1251[128]; extern const of_char16_t of_windows_1252[128]; extern const of_char16_t of_codepage_437[128]; extern const of_char16_t of_codepage_850[128]; extern const of_char16_t of_mac_roman[128]; static inline int memcasecmp(const char *first, const char *second, size_t length) |
︙ | ︙ | |||
286 287 288 289 290 291 292 293 294 295 296 297 298 299 | return self; } switch (encoding) { case OF_STRING_ENCODING_ISO_8859_15: table = of_iso_8859_15; break; case OF_STRING_ENCODING_WINDOWS_1252: table = of_windows_1252; break; case OF_STRING_ENCODING_CODEPAGE_437: table = of_codepage_437; break; | > > > | 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | return self; } switch (encoding) { case OF_STRING_ENCODING_ISO_8859_15: table = of_iso_8859_15; break; case OF_STRING_ENCODING_WINDOWS_1251: table = of_windows_1251; break; case OF_STRING_ENCODING_WINDOWS_1252: table = of_windows_1252; break; case OF_STRING_ENCODING_CODEPAGE_437: table = of_codepage_437; break; |
︙ | ︙ |