Differences From Artifact [6763734ad5]:
- File src/OFMutableString_UTF8.m — part of check-in [e5fe02de61] at 2012-01-31 18:59:15 on branch trunk — Add -[OFMutableString replaceOccurrencesOfString:withString:inRange:]. (user: js, size: 17312) [annotate] [blame] [check-ins using]
To Artifact [3f21e1777e]:
- File
src/OFMutableString_UTF8.m
— part of check-in
[f7576a66ce]
at
2012-06-06 13:47:52
on branch trunk
— Slightly change the memory management API.
Also fix a bug where OFBigDataArray would waste memory. (user: js, size: 17311) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
65 66 67 68 69 70 71 | if ((t = table[0][*p]) != 0) *p = t; return; } unicodeLen = [self length]; | | | | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | if ((t = table[0][*p]) != 0) *p = t; return; } unicodeLen = [self length]; unicodeString = [self allocMemoryWithItemSize: sizeof(of_unichar_t) count: unicodeLen]; i = j = 0; newCStringLength = 0; while (i < s->cStringLength) { cLen = of_string_utf8_to_unicode(s->cString + i, s->cStringLength - i, &c); |
︙ | ︙ |