Index: src/OFString.h ================================================================== --- src/OFString.h +++ src/OFString.h @@ -517,17 +517,25 @@ - initWithContentsOfURL: (OFURL*)URL encoding: (of_string_encoding_t)encoding; /** * \brief Returns the OFString as a UTF-8 encoded C string. + * + * The result is valid until the autorelease pool is released. If you want to + * use the result outside the scope of the current autorelease pool, you have to + * copy it. * * \return The OFString as a UTF-8 encoded C string */ - (const char*)UTF8String; /** * \brief Returns the OFString as a C string in the specified encoding. + * + * The result is valid until the autorelease pool is released. If you want to + * use the result outside the scope of the current autorelease pool, you have to + * copy it. * * \param encoding The encoding for the C string * \return The OFString as a C string in the specified encoding */ - (const char*)cStringWithEncoding: (of_string_encoding_t)encoding;;