Differences From Artifact [03beefc292]:
- File src/OFString_UTF8.m — part of check-in [0dafdc4730] at 2012-03-17 15:48:08 on branch trunk — One malloc less for creating an immutable UTF-8 string. (user: js, size: 25151) [annotate] [blame] [check-ins using] [more...]
To Artifact [5faa6d539b]:
- File
src/OFString_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: 25150) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
1090 1091 1092 1093 1094 1095 1096 | - (const of_unichar_t*)unicodeString { OFObject *object = [[[OFObject alloc] init] autorelease]; of_unichar_t *ret; size_t i, j; | | | | 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 | - (const of_unichar_t*)unicodeString { OFObject *object = [[[OFObject alloc] init] autorelease]; of_unichar_t *ret; size_t i, j; ret = [object allocMemoryWithItemSize: sizeof(of_unichar_t) count: s->length + 1]; i = 0; j = 0; while (i < s->cStringLength) { of_unichar_t c; size_t cLen; |
︙ | ︙ |