@@ -270,18 +270,10 @@ * @param format A string used as format to initialize the OFString * @return A new autoreleased OFString */ + (instancetype)stringWithFormat: (OFConstantString*)format, ...; -/*! - * @brief Creates a new OFString containing the constructed specified path. - * - * @param firstComponent The first component of the path - * @return A new autoreleased OFString - */ -+ (instancetype)stringWithPath: (OFString*)firstComponent, ... OF_SENTINEL; - /*! * @brief Creates a new OFString with the contents of the specified UTF-8 * encoded file. * * @param path The path to the file @@ -323,10 +315,18 @@ * @return A new autoreleased OFString */ + (instancetype)stringWithContentsOfURL: (OFURL*)URL encoding: (of_string_encoding_t)encoding; +/*! + * @brief Creates a path from the specified path components. + * + * @param components An array of components for the path + * @return A new autoreleased OFString + */ ++ (instancetype)pathWithComponents: (OFArray*)components; + /*! * @brief Initializes an already allocated OFString from a UTF-8 encoded C * string. * * @param UTF8String A UTF-8 encoded C string to initialize the OFString with @@ -512,30 +512,10 @@ * @return An initialized OFString */ - initWithFormat: (OFConstantString*)format arguments: (va_list)arguments; -/*! - * @brief Initializes an already allocated OFString with the constructed - * specified path. - * - * @param firstComponent The first component of the path - * @return A new autoreleased OFString - */ -- initWithPath: (OFString*)firstComponent, ... OF_SENTINEL; - -/*! - * @brief Initializes an already allocated OFString with the constructed - * specified path. - * - * @param firstComponent The first component of the path - * @param arguments A va_list with the other components of the path - * @return A new autoreleased OFString - */ -- initWithPath: (OFString*)firstComponent - arguments: (va_list)arguments; - /*! * @brief Initializes an already allocated OFString with the contents of the * specified file in the specified encoding. * * @param path The path to the file