Differences From Artifact [879030fae2]:
- File
src/OFString_UTF8.m
— part of check-in
[11f24addd7]
at
2017-11-19 12:05:42
on branch trunk
— Fix warnings introduced by OFComparing change
Since OFComparing no longer conforms to OFObject, OFObject needed to be
added at a few places. (user: js, size: 30490) [annotate] [blame] [check-ins using]
To Artifact [ec9ecd6e22]:
- File src/OFString_UTF8.m — part of check-in [615a9f2eba] at 2017-11-19 12:56:14 on branch trunk — Fix compilation with GCC (user: js, size: 30484) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
804 805 806 807 808 809 810 | if (strcmp(_s->cString, [otherString UTF8String]) != 0) return false; return true; } | | | | 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 | if (strcmp(_s->cString, [otherString UTF8String]) != 0) return false; return true; } - (of_comparison_result_t)compare: (id <OFComparing>)object { OFString *otherString; size_t otherCStringLength, minimumCStringLength; int compare; if (object == self) return OF_ORDERED_SAME; if (![(id)object isKindOfClass: [OFString class]]) @throw [OFInvalidArgumentException exception]; otherString = (OFString *)object; otherCStringLength = [otherString UTF8StringLength]; minimumCStringLength = (_s->cStringLength > otherCStringLength ? otherCStringLength : _s->cStringLength); |
︙ | ︙ |