@@ -103,10 +103,18 @@ * \return A new autoreleased OFString */ + stringWithCString: (const char*)string length: (size_t)length; +/** + * Creates a new OFString from another string. + * + * \param string A string to initialize the OFString with + * \return A new autoreleased OFString + */ ++ stringWithString: (OFString*)string; + /** * Creates a new OFString from a format string. * See printf for the format syntax. * * \param format A string used as format to initialize the OFString @@ -120,18 +128,10 @@ * \param firstComponent The first component of the path * \return A new autoreleased OFString */ + stringWithPath: (OFString*)firstComponent, ...; -/** - * Creates a new OFString from another string. - * - * \param string A string to initialize the OFString with - * \return A new autoreleased OFString - */ -+ stringWithString: (OFString*)string; - /** * Creates a new OFString with the contents of the specified UTF-8 encoded file. * * \param path The path to the file * \return A new autoreleased OFString @@ -215,10 +215,18 @@ * \return An initialized OFString */ - initWithCString: (const char*)string length: (size_t)length; +/** + * Initializes an already allocated OFString with another string. + * + * \param string A string to initialize the OFString with + * \return An initialized OFString + */ +- initWithString: (OFString*)string; + /** * Initializes an already allocated OFString with a format string. * See printf for the format syntax. * * \param format A string used as format to initialize the OFString @@ -255,18 +263,10 @@ * \return A new autoreleased OFString */ - initWithPath: (OFString*)firstComponent arguments: (va_list)arguments; -/** - * Initializes an already allocated OFString with another string. - * - * \param string A string to initialize the OFString with - * \return An initialized OFString - */ -- initWithString: (OFString*)string; - /** * Initializes an already allocated OFString with the contents of the specified * file in the specified encoding. * * \param path The path to the file