@@ -63,11 +63,11 @@ typedef OFChar32 OFUnichar; /** * @brief The encoding of a string. */ -typedef enum OFStringEncoding { +typedef enum { /* * UTF-8 *has* to be 0, so that if the current @ref OFLocale is * `nil`, `[OFLocale encoding]` returns UTF-8. */ /** UTF-8 */ @@ -105,21 +105,21 @@ /** * @brief Options for searching in strings. * * This is a bit mask. */ -typedef enum OFStringSearchOptions { +typedef enum { /** Search backwards in the string */ OFStringSearchBackwards = 1 } OFStringSearchOptions; /** * @brief Options for separating strings. * * This is a bit mask. */ -typedef enum OFStringSeparationOptions { +typedef enum { /** Skip empty components */ OFStringSkipEmptyComponents = 1 } OFStringSeparationOptions; #ifdef OF_HAVE_BLOCKS @@ -324,12 +324,12 @@ /** * @brief Creates a new OFString from a UTF-8 encoded C string without copying * the string, if possible. * - * If initialization fails for whatever reason, the passed C string is free'd - * if `freeWhenDone` is true. + * If initialization fails for whatever reason, the passed C string is *not* + * free'd if `freeWhenDone` is true. * * @note OFMutableString always creates a copy! * * @param UTF8String A UTF-8 encoded C string to initialize the OFString with * @param freeWhenDone Whether to free the C string when the OFString gets @@ -341,12 +341,12 @@ /** * @brief Creates a new OFString from a UTF-8 encoded C string with the * specified length without copying the string, if possible. * - * If initialization fails for whatever reason, the passed C string is free'd - * if `freeWhenDone` is true. + * If initialization fails for whatever reason, the passed C string is *not* + * free'd if `freeWhenDone` is true. * * @note OFMutableString always creates a copy! * * @param UTF8String A UTF-8 encoded C string to initialize the OFString with * @param UTF8StringLength The length of the UTF-8 encoded C string @@ -579,12 +579,12 @@ /** * @brief Initializes an already allocated OFString from an UTF-8 encoded C * string without copying the string, if possible. * - * If initialization fails for whatever reason, the passed C string is free'd - * if `freeWhenDone` is true. + * If initialization fails for whatever reason, the passed C string is *not* + * free'd if `freeWhenDone` is true. * * @note OFMutableString always creates a copy! * * @param UTF8String A UTF-8 encoded C string to initialize the OFString with * @param freeWhenDone Whether to free the C string when it is not needed @@ -597,12 +597,12 @@ /** * @brief Initializes an already allocated OFString from an UTF-8 encoded C * string with the specified length without copying the string, if * possible. * - * If initialization fails for whatever reason, the passed C string is free'd - * if `freeWhenDone` is true. + * If initialization fails for whatever reason, the passed C string is *not* + * free'd if `freeWhenDone` is true. * * @note OFMutableString always creates a copy! * * @param UTF8String A UTF-8 encoded C string to initialize the OFString with * @param UTF8StringLength The length of the UTF-8 encoded C string