@@ -11,16 +11,15 @@ #include #include #import "OFObject.h" -#import "OFComparable.h" /** * A class for storing and modifying strings. */ -@interface OFString: OFObject +@interface OFString: OFObject { char *string; size_t length; BOOL is_utf8; } @@ -108,10 +107,19 @@ * * \return A new autoreleased copy of the OFString */ - (id)copy; +/** + * Compares the OFString to another object. + * + * \param obj An object to compare with + * \return An integer which is the result of the comparison, see for example + * strcmp + */ +- (int)compare: (id)obj; + /** * Sets the OFString to the specified OFString. * * \param str An OFString to set the OFString to. */