Differences From Artifact [35d6df4f4a]:
- File src/OFString_UTF8.m — part of check-in [d36cf257fe] at 2013-08-12 10:00:11 on branch trunk — Don't store the first 128 chars of an encoding. (user: js, size: 30285) [annotate] [blame] [check-ins using]
To Artifact [48ca6830d9]:
- File
src/OFString_UTF8.m
— part of check-in
[3912669d91]
at
2013-08-12 10:09:07
on branch trunk
— Add codepage 437.
This is required for ZIP files, which can use either codepage 437 or
Unicode. (user: js, size: 30410) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #import "autorelease.h" #import "macros.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]; static inline int memcasecmp(const char *first, const char *second, size_t length) { size_t i; for (i = 0; i < length; i++) { | > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | #import "autorelease.h" #import "macros.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]; static inline int memcasecmp(const char *first, const char *second, size_t length) { size_t i; for (i = 0; i < length; i++) { |
︙ | ︙ | |||
283 284 285 286 287 288 289 290 291 292 293 294 295 296 | 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; default: @throw [OFInvalidEncodingException exception]; } for (i = j = 0; i < cStringLength; i++) { char buffer[4]; | > > > | 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | 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; default: @throw [OFInvalidEncodingException exception]; } for (i = j = 0; i < cStringLength; i++) { char buffer[4]; |
︙ | ︙ |