Differences From Artifact [c2a52dd320]:
- File src/OFString.m — part of check-in [1df0de873b] at 2008-09-14 20:30:20 on branch trunk — Same again. (user: js, size: 1602) [annotate] [blame] [check-ins using]
To Artifact [b274f069db]:
- File src/OFString.m — part of check-in [24ce530f56] at 2008-09-15 10:23:39 on branch trunk — Add compare: for strings. (user: js, size: 1677) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
99 100 101 102 103 104 105 106 | memcpy(newstr + length, str, strlength + 1); length = newlen; string = newstr; return self; } @end | > > > > > | 99 100 101 102 103 104 105 106 107 108 109 110 111 | memcpy(newstr + length, str, strlength + 1); length = newlen; string = newstr; return self; } - (int)compare: (OFString*)str { return strcmp(string, [str cString]); } @end |