Differences From Artifact [4db8f4cb59]:
- File src/OFConstantString.m — part of check-in [4fbdca698c] at 2020-11-07 20:23:04 on branch trunk — OFObject: Remove -[allocMemoryWithSize:] (user: js, size: 13140) [annotate] [blame] [check-ins using] [more...]
To Artifact [1a5c26a192]:
- File
src/OFConstantString.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 13146) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
109 110 111 112 113 114 115 | { @synchronized (self) { struct of_string_utf8_ivars *ivars; if ([self isMemberOfClass: [OFConstantUTF8String class]]) return; | | | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | { @synchronized (self) { struct of_string_utf8_ivars *ivars; if ([self isMemberOfClass: [OFConstantUTF8String class]]) return; ivars = of_alloc_zeroed(1, sizeof(*ivars)); ivars->cString = _cString; ivars->cStringLength = _cStringLength; switch (of_string_utf8_check(ivars->cString, ivars->cStringLength, &ivars->length)) { case 1: ivars->isUTF8 = true; |
︙ | ︙ |