Differences From Artifact [2b9f485fcd]:
- File src/OFString.m — part of check-in [257fc27253] at 2009-10-18 14:22:57 on branch trunk — Use the new, smaller Unicode tables. (user: js, size: 17497) [annotate] [blame] [check-ins using]
To Artifact [07267760cd]:
- File
src/OFString.m
— part of check-in
[16ec7469b8]
at
2009-11-01 19:46:22
on branch trunk
— Don't call strlen() in -[initWithCString:encoding:length:].
This can cause trouble when we try to create a string from a buffer
which is not \0-terminated. In these cases, we would need to
\0-terminate it, which would be quite inconvenient. (user: js, size: 17387) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
280 281 282 283 284 285 286 | length: (size_t)len { Class c; size_t i, j; self = [super init]; | < < < < < < | 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | length: (size_t)len { Class c; size_t i, j; self = [super init]; length = len; @try { string = [self allocMemoryWithSize: length + 1]; } @catch (OFException *e) { /* * We can't use [super dealloc] on OS X here. |
︙ | ︙ |