@@ -270,10 +270,11 @@ * @param format A string used as format to initialize the OFString * @return A new autoreleased OFString */ + (instancetype)stringWithFormat: (OFConstantString*)format, ...; +#ifdef OF_HAVE_FILES /*! * @brief Creates a new OFString with the contents of the specified UTF-8 * encoded file. * * @param path The path to the file @@ -289,10 +290,11 @@ * @param encoding The encoding of the file * @return A new autoreleased OFString */ + (instancetype)stringWithContentsOfFile: (OFString*)path encoding: (of_string_encoding_t)encoding; +#endif /*! * @brief Creates a new OFString with the contents of the specified URL. * * If the URL's scheme is file, it tries UTF-8 encoding. @@ -512,10 +514,11 @@ * @return An initialized OFString */ - initWithFormat: (OFConstantString*)format arguments: (va_list)arguments; +#ifdef OF_HAVE_FILES /*! * @brief Initializes an already allocated OFString with the contents of the * specified file in the specified encoding. * * @param path The path to the file @@ -531,10 +534,11 @@ * @param encoding The encoding of the file * @return An initialized OFString */ - initWithContentsOfFile: (OFString*)path encoding: (of_string_encoding_t)encoding; +#endif /*! * @brief Initializes an already allocated OFString with the contents of the * specified URL. * @@ -1027,10 +1031,11 @@ * @return The string in UTF-32 encoding with the specified byte order */ - (const of_char32_t*)UTF32StringWithByteOrder: (of_byte_order_t)byteOrder OF_RETURNS_INNER_POINTER; +#ifdef OF_HAVE_FILES /*! * @brief Writes the string into the specified file using UTF-8 encoding. * * @param path The path of the file to write to */ @@ -1043,10 +1048,11 @@ * @param path The path of the file to write to * @param encoding The encoding to use to write the string into the file */ - (void)writeToFile: (OFString*)path encoding: (of_string_encoding_t)encoding; +#endif #ifdef OF_HAVE_BLOCKS /*! * Enumerates all lines in the receiver using the specified block. *