@@ -187,10 +187,25 @@ * \param repl The string with which it should be replaced */ - replaceOccurrencesOfString: (OFString*)str withString: (OFString*)repl; +/** + * Removes all whitespaces at the beginning of a string. + */ +- removeLeadingWhitespaces; + +/** + * Removes all whitespaces at the end of a string. + */ +- removeTrailingWhitespaces; + +/** + * Removes all whitespaces at the beginning and the end of a string. + */ +- removeLeadingAndTrailingWhitespaces; + /** * Splits an OFString into an OFArray of OFStrings. * * \param delimiter The delimiter for splitting * \return An autoreleased OFArray with the splitted string