Differences From Artifact [2bb04bd0ef]:
- File
src/OFString.h
— part of check-in
[f412995e6a]
at
2011-10-31 22:01:49
on branch trunk
— Assume big endian encoding for UTF16 if none is specified and no BOM.
This was changed from native to big endian because UCS-2 is defined to
be big endian. (user: js, size: 24100) [annotate] [blame] [check-ins using]
To Artifact [bf385a3e5c]:
- File src/OFString.h — part of check-in [a51b3cb390] at 2011-10-31 22:02:09 on branch trunk — Add -[UTF16String] to OFString. (user: js, size: 24430) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
793 794 795 796 797 798 799 800 801 802 803 804 805 806 | * 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 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; | > > > > > > > > > > > | 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 | * 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; |
︙ | ︙ |