@@ -65,13 +65,10 @@ enum { OF_STRING_SEARCH_BACKWARDS = 1, OF_STRING_SKIP_EMPTY = 2 }; -/* FIXME */ -#define OF_STRING_ENCODING_NATIVE OF_STRING_ENCODING_UTF_8 - #ifdef OF_HAVE_BLOCKS /*! * @brief A block for enumerating the lines of a string. * * @param line The current line @@ -325,10 +322,20 @@ * @param components An array of components for the path * @return A new autoreleased OFString */ + (OFString*)pathWithComponents: (OFArray*)components; +/*! + * @brief Returns the string encoding native to the operating system. + * + * This is useful to encode strings correctly for passing them to operating + * system calls. + * + * @return The string encoding native to the operating system + */ ++ (of_string_encoding_t)nativeOSEncoding; + /*! * @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