Differences From Artifact [0176c8e382]:
- File src/OFString.m — part of check-in [1ba08eebc5] at 2015-10-19 22:15:13 on branch trunk — Add platform.h & make platform defines consistent (user: js, size: 56232) [annotate] [blame] [check-ins using]
To Artifact [01f9bb127a]:
- File
src/OFString.m
— part of check-in
[6b13727ce0]
at
2015-11-29 14:02:11
on branch trunk
— Make use of fast enumeration
Now that we require GCC >= 4.6 anyway, there's no more reason to not use
it anymore. (user: js, size: 56033) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
652 653 654 655 656 657 658 | encoding: encoding] autorelease]; } #endif + (OFString*)pathWithComponents: (OFArray*)components { OFMutableString *ret = [OFMutableString string]; | | | | | < | | < | > | < | 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 | encoding: encoding] autorelease]; } #endif + (OFString*)pathWithComponents: (OFArray*)components { OFMutableString *ret = [OFMutableString string]; bool first = true; for (OFString *component in components) { if (!first) [ret appendString: OF_PATH_DELIMITER_STRING]; [ret appendString: component]; first = false; } return ret; } - init { if (object_getClass(self) == [OFString class]) { |
︙ | ︙ |