@@ -98,10 +98,18 @@ * \param fmt A string used as format to initialize the OFString * \return A new autoreleased OFString */ + stringWithFormat: (OFString*)fmt, ...; +/** + * Creates a new OFString containing the constructed specified path. + * + * \param first The first component of the path + * \return A new autoreleased OFString + */ ++ stringWithPath: (OFString*)first, ...; + /** * Creates a new OFString from another string. * * \param str A string to initialize the OFString with * \return A new autoreleased OFString @@ -176,10 +184,30 @@ * \return An initialized OFString */ - initWithFormat: (OFString*)fmt arguments: (va_list)args; +/** + * Initializes an already allocated OFString with the constructed specified + * path. + * + * \param first The first component of the path + * \return A new autoreleased OFString + */ +- initWithPath: (OFString*)first, ...; + +/** + * Initializes an already allocated OFString with the constructed specified + * path. + * + * \param first The first component of the path + * \param args A va_list with the other components of the path + * \return A new autoreleased OFString + */ +- initWithPath: (OFString*)first + arguments: (va_list)args; + /** * Initializes an already allocated OFString with another string. * * \param str A string to initialize the OFString with * \return An initialized OFString