@@ -124,10 +124,19 @@ * \return An integer which is the result of the comparison, see for example * strcmp */ - (int)compare: (id)obj; +/** + * \param start The index where the substring starts + * \param end The index where the substring ends. + * This points BEHIND the last character! + * \return The substring as a new autoreleased OFString + */ +- (OFString*)substringFromIndex: (size_t)start + toIndex: (size_t)end; + /** * Splits an OFString into an OFArray of OFStrings. * * \param delimiter The delimiter for splitting * \return An autoreleased OFArray with the splitted string