Differences From Artifact [7793b455ee]:
- File src/OFString_UTF8.m — part of check-in [e2f4c1283c] at 2012-12-15 23:31:17 on branch trunk — OFString: Improved API for getting C strings. (user: js, size: 30547) [annotate] [blame] [check-ins using]
To Artifact [75ce5faed6]:
- File
src/OFString_UTF8.m
— part of check-in
[556234e290]
at
2012-12-16 01:15:31
on branch trunk
— Add encodings for -[cStringUsingEncoding:].
This adds ISO 8859-1 and ASCII, ISO 8859-15 and Windows-1252 will
follow. (user: js, size: 30422) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
805 806 807 808 809 810 811 | return s->length; } - (size_t)lengthOfBytesUsingEncoding: (of_string_encoding_t)encoding { switch (encoding) { case OF_STRING_ENCODING_UTF_8: | < < < < < | 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 | return s->length; } - (size_t)lengthOfBytesUsingEncoding: (of_string_encoding_t)encoding { switch (encoding) { case OF_STRING_ENCODING_UTF_8: case OF_STRING_ENCODING_ASCII: return s->cStringLength; default: return [super lengthOfBytesUsingEncoding: encoding]; } } - (size_t)UTF8StringLength |
︙ | ︙ |