Differences From Artifact [fbeacc8bf8]:
- File src/OFMutableString.m — part of check-in [53af033b0e] at 2012-10-14 10:36:21 on branch trunk — More integer overflow checks. (user: js, size: 12657) [annotate] [blame] [check-ins using]
To Artifact [c4f091786b]:
- File
src/OFMutableString.m
— part of check-in
[fcaa549324]
at
2012-10-16 14:47:55
on branch trunk
— A few more API improvements.
This should make it more future-proof, as adding new options is easier
than adding new methods for each and every combination of options. (user: js, size: 12701) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
454 455 456 457 458 459 460 | } - (void)replaceOccurrencesOfString: (OFString*)string withString: (OFString*)replacement { [self replaceOccurrencesOfString: string withString: replacement | > | > | | 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 | } - (void)replaceOccurrencesOfString: (OFString*)string withString: (OFString*)replacement { [self replaceOccurrencesOfString: string withString: replacement options: 0 range: of_range(0, [self length])]; } - (void)replaceOccurrencesOfString: (OFString*)string withString: (OFString*)replacement options: (int)options range: (of_range_t)range { void *pool = objc_autoreleasePoolPush(), *pool2; const of_unichar_t *unicodeString; const of_unichar_t *searchString = [string unicodeString]; size_t searchLength = [string length]; size_t replacementLength = [replacement length]; size_t i; |
︙ | ︙ |