ObjFW  Check-in [55bba95bce]

Overview
Comment:Add a note about the lifetime of the result of -[UTF8String].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 55bba95bceafd1e094a46b9399948896abb7e181b731ac97ac97b9812a479ea0
User & Date: js on 2011-12-26 16:38:06
Other Links: manifest | tags
Context
2011-12-26
16:57
Implement -[UTF8String] and -[UTF8StringLength] in OFString. check-in: ea76dec036 user: js tags: trunk
16:38
Add a note about the lifetime of the result of -[UTF8String]. check-in: 55bba95bce user: js tags: trunk
16:24
Fix exception handling in of_asprintf. check-in: fa81b2657c user: js tags: trunk
Changes

Modified src/OFString.h from [e5361dfca6] to [d207a1ff98].

515
516
517
518
519
520
521




522
523
524
525
526
527
528




529
530
531
532
533
534
535
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543







+
+
+
+







+
+
+
+







 * \return An initialized OFString
 */
- 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;;

/**