Differences From Artifact [df7ab28870]:
- File src/OFMutableString_UTF8.m — part of check-in [06251136e5] at 2012-10-15 11:08:15 on branch trunk — Fix some forgotten renames. (user: js, size: 18748) [annotate] [blame] [check-ins using]
To Artifact [3b96c919ea]:
- File
src/OFMutableString_UTF8.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: 18776) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
591 592 593 594 595 596 597 | s->cStringLength = newCStringLength; s->length = newLength; } - (void)replaceOccurrencesOfString: (OFString*)string withString: (OFString*)replacement | > | | 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 | s->cStringLength = newCStringLength; s->length = newLength; } - (void)replaceOccurrencesOfString: (OFString*)string withString: (OFString*)replacement options: (int)options range: (of_range_t)range { const char *searchString = [string UTF8String]; const char *replacementString = [replacement UTF8String]; size_t searchLength = [string UTF8StringLength]; size_t replacementLength = [replacement UTF8StringLength]; size_t i, last, newCStringLength, newLength; char *newCString; |
︙ | ︙ |