Differences From Artifact [1a105f7a00]:
- File src/OFConstantString.m — part of check-in [e40729d406] at 2013-02-12 18:22:15 on branch trunk — Prefix all ivars with an underscore. (user: js, size: 11850) [annotate] [blame] [check-ins using]
To Artifact [9960343709]:
- File
src/OFConstantString.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 11851) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
155 156 157 158 159 160 161 | ivars->cString = _cString; ivars->cStringLength = _cStringLength; switch (of_string_utf8_check(ivars->cString, ivars->cStringLength, &ivars->length)) { case 1: | | | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | ivars->cString = _cString; ivars->cStringLength = _cStringLength; switch (of_string_utf8_check(ivars->cString, ivars->cStringLength, &ivars->length)) { case 1: ivars->isUTF8 = true; break; case -1: free(ivars); @throw [OFInvalidEncodingException exceptionWithClass: [self class]]; } |
︙ | ︙ | |||
265 266 267 268 269 270 271 | { [self finishInitialization]; return [self compare: object]; } /* From OFObject, but reimplemented in OFString */ | | | 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | { [self finishInitialization]; return [self compare: object]; } /* From OFObject, but reimplemented in OFString */ - (bool)isEqual: (id)object { [self finishInitialization]; return [self isEqual: object]; } - (uint32_t)hash |
︙ | ︙ | |||
383 384 385 386 387 388 389 | [self finishInitialization]; return [self rangeOfString: string options: options range: range]; } | | | 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | [self finishInitialization]; return [self rangeOfString: string options: options range: range]; } - (bool)containsString: (OFString*)string { [self finishInitialization]; return [self containsString: string]; } - (OFString*)substringWithRange: (of_range_t)range |
︙ | ︙ | |||
491 492 493 494 495 496 497 | - (OFString*)stringByDeletingEnclosingWhitespaces { [self finishInitialization]; return [self stringByDeletingEnclosingWhitespaces]; } | | | | 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 | - (OFString*)stringByDeletingEnclosingWhitespaces { [self finishInitialization]; return [self stringByDeletingEnclosingWhitespaces]; } - (bool)hasPrefix: (OFString*)prefix { [self finishInitialization]; return [self hasPrefix: prefix]; } - (bool)hasSuffix: (OFString*)suffix { [self finishInitialization]; return [self hasSuffix: suffix]; } - (OFArray*)componentsSeparatedByString: (OFString*)delimiter |
︙ | ︙ |