Differences From Artifact [ec0d6fe6c1]:
- File src/OFUTF8String+Private.h — part of check-in [b829f3e798] at 2024-08-17 09:51:31 on branch trunk — Move private functions into private headers (user: js, size: 1276) [annotate] [blame] [check-ins using]
To Artifact [ccfb13bd6d]:
- File
src/OFUTF8String+Private.h
— part of check-in
[82c5846734]
at
2024-08-24 23:41:16
on branch trunk
— Don't assume all custom string classes use Unicode
Initially, isUTF8 was set to true for all custom string classes because
having isUTF8 set to false was merely an optimization. However,
-[OFUTF8String cStringWithEncoding: OFStringEncodingASCII] throws an
exception when isUTF8 is true. (user: js, size: 1285) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
27 28 29 30 31 32 33 | length: (size_t)UTF8StringLength storage: (char *)storage OF_METHOD_FAMILY(init); @end #ifdef __cplusplus extern "C" { #endif | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | length: (size_t)UTF8StringLength storage: (char *)storage OF_METHOD_FAMILY(init); @end #ifdef __cplusplus extern "C" { #endif extern int _OFUTF8StringCheck(const char *, size_t, size_t *_Nullable) OF_VISIBILITY_HIDDEN; extern size_t _OFUTF8StringIndexToPosition(const char *, size_t, size_t) OF_VISIBILITY_HIDDEN; #ifdef __cplusplus } #endif |
︙ | ︙ |