@@ -11,15 +11,16 @@ #import #import #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; } @@ -105,27 +106,19 @@ /** * Clones the OFString, creating a new one. * * \return A new autoreleased copy of the OFString */ -- (OFString*)clone; +- (id)copy; /** * Sets the OFString to the specified OFString. * * \param str An OFString to set the OFString to. */ - setTo: (OFString*)str; -/** - * 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)compareTo: (OFString*)str; - /** * Append another OFString to the OFString. * * \param str An OFString to append */