Index: src/OFStream.h ================================================================== --- src/OFStream.h +++ src/OFStream.h @@ -8,11 +8,11 @@ * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ /** - * The OFStream protocol provides functions to read and write streams. + * The OFStream protocol provides functions to read from and write to streams. */ @protocol OFStream /** * Reads from the stream into a buffer. * Index: src/OFString.h ================================================================== --- src/OFString.h +++ src/OFString.h @@ -103,11 +103,11 @@ * Compares the OFString to another OFString. * * \param str An OFString to compare with * \return An integer which is the result of the comparison, see wcscmp */ -- (int)compare: (OFString*)str; +- (int)compareTo: (OFString*)str; /** * Append another OFString to the OFString. * * \param str An OFString to append Index: src/OFString.m ================================================================== --- src/OFString.m +++ src/OFString.m @@ -128,11 +128,11 @@ { [self free]; return (self = [str clone]); } -- (int)compare: (OFString*)str +- (int)compareTo: (OFString*)str { return wcscmp(string, [str wideCString]); } - append: (OFString*)str Index: tests/OFString/OFString.m ================================================================== --- tests/OFString/OFString.m +++ tests/OFString/OFString.m @@ -26,21 +26,21 @@ OFString *s3; OFString *s4 = [OFString new]; s3 = [s1 clone]; - if (![s1 compare: s3]) + if (![s1 compareTo: s3]) puts("s1 and s3 match! GOOD!"); else { puts("s1 and s3 don't match!"); return 1; } [s2 appendCString: "123"]; [s4 setTo: s2]; - if (![s2 compare: s4]) + if (![s2 compareTo: s4]) puts("s2 and s4 match! GOOD!"); else { puts("s2 and s4 don't match!"); return 1; }