Differences From Artifact [2ae4fee8c1]:
- File src/OFString.m — part of check-in [9cfefe9c30] at 2012-10-13 20:50:09 on branch trunk — Move UTF-8 functions to OFString_UTF8.m. (user: js, size: 43092) [annotate] [blame] [check-ins using]
To Artifact [3d2b1f904a]:
- File
src/OFString.m
— part of check-in
[1cb8fee5c3]
at
2012-10-13 21:06:59
on branch trunk
— of_bswap* -> OF_BSWAP*.
This makes it clear that multiple evaluation of parameters is possible. (user: js, size: 43092) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1849 1850 1851 1852 1853 1854 1855 | if (c > 0x10FFFF) @throw [OFInvalidEncodingException exceptionWithClass: [self class]]; if (c > 0xFFFF) { c -= 0x10000; | | | | | 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 | if (c > 0x10FFFF) @throw [OFInvalidEncodingException exceptionWithClass: [self class]]; if (c > 0xFFFF) { c -= 0x10000; ret[j++] = OF_BSWAP16_IF_LE(0xD800 | (c >> 10)); ret[j++] = OF_BSWAP16_IF_LE(0xDC00 | (c & 0x3FF)); } else ret[j++] = OF_BSWAP16_IF_LE(c); } ret[j] = 0; @try { ret = [object resizeMemory: ret size: sizeof(uint16_t) |
︙ | ︙ |