Overview
Comment: | Only get UTF-8 position if the string is using UTF-8. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
92c42bbe328ff4e2120023ccabbb0272 |
User & Date: | js on 2009-10-18 19:24:25 |
Other Links: | manifest | tags |
Context
2009-10-18
| ||
19:25 | Fix missing retains in OFList. check-in: 5c006e80bb user: js tags: trunk | |
19:24 | Only get UTF-8 position if the string is using UTF-8. check-in: 92c42bbe32 user: js tags: trunk | |
14:22 | Use the new, smaller Unicode tables. check-in: 257fc27253 user: js tags: trunk | |
Changes
Modified src/OFMutableString.m from [3d29c4b702] to [858fa47b24].
︙ | ︙ | |||
388 389 390 391 392 393 394 | return self; } - removeCharactersFromIndex: (size_t)start toIndex: (size_t)end { | > | | > | 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | return self; } - removeCharactersFromIndex: (size_t)start toIndex: (size_t)end { if (is_utf8) { start = of_string_index_to_position(string, start, length); end = of_string_index_to_position(string, end, length); } if (start > end) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; if (end > length) @throw [OFOutOfRangeException newWithClass: isa]; |
︙ | ︙ |