528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
|
*
* 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;;
/**
* \brief Returns the length of the string in Unicode characters.
*
* \return The length of the string in Unicode characters
*/
- (size_t)length;
|
|
|
>
|
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
|
*
* 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 OF_RETURNS_INNER_POINTER;
/**
* \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
OF_RETURNS_INNER_POINTER;
/**
* \brief Returns the length of the string in Unicode characters.
*
* \return The length of the string in Unicode characters
*/
- (size_t)length;
|
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
|
*
* 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 string as an array of Unicode characters
*/
- (const of_unichar_t*)unicodeString;
/**
* \brief Returns the string in big endian UTF-16 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.
*
* \return The string in big endian UTF-16 encoding
*/
- (const uint16_t*)UTF16String;
/**
* \brief Writes the string into the specified file using UTF-8 encoding.
*
* \param path The path of the file to write to
*/
- (void)writeToFile: (OFString*)path;
|
|
|
|
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
|
*
* 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 string as an array of Unicode characters
*/
- (const of_unichar_t*)unicodeString OF_RETURNS_INNER_POINTER;
/**
* \brief Returns the string in big endian UTF-16 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.
*
* \return The string in big endian UTF-16 encoding
*/
- (const uint16_t*)UTF16String OF_RETURNS_INNER_POINTER;
/**
* \brief Writes the string into the specified file using UTF-8 encoding.
*
* \param path The path of the file to write to
*/
- (void)writeToFile: (OFString*)path;
|