Overview
Comment: | 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 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f412995e6adb8193ce81efec3e9b4642 |
User & Date: | js on 2011-10-31 22:01:49 |
Other Links: | manifest | tags |
Context
2011-10-31
| ||
22:02 | Add -[UTF16String] to OFString. check-in: a51b3cb390 user: js tags: trunk | |
22:01 | Assume big endian encoding for UTF16 if none is specified and no BOM. check-in: f412995e6a user: js tags: trunk | |
21:20 | Don't prepend a BOM when using -[unicodeString]. check-in: dcf50eb53a user: js tags: trunk | |
Changes
Modified src/OFString.h from [af13422bcb] to [2bb04bd0ef].
︙ | ︙ | |||
783 784 785 786 787 788 789 | * OFInvalidEncodingException is thrown. * * \return A double with the value of the string */ - (double)doubleValue; /** | | | 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 | * OFInvalidEncodingException is thrown. * * \return A double with the value of the string */ - (double)doubleValue; /** * \brief Returns the string as an array of Unicode characters. * * 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 */ |
︙ | ︙ |
Modified src/OFString.m from [37713bd91c] to [1d69719094].
︙ | ︙ | |||
711 712 713 714 715 716 717 | return self; } - initWithUTF16String: (const uint16_t*)string { return [self initWithUTF16String: string | | | | 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 | return self; } - initWithUTF16String: (const uint16_t*)string { return [self initWithUTF16String: string byteOrder: OF_ENDIANESS_BIG_ENDIAN length: of_utf16_string_length(string)]; } - initWithUTF16String: (const uint16_t*)string byteOrder: (of_endianess_t)byteOrder { return [self initWithUTF16String: string byteOrder: byteOrder length: of_utf16_string_length(string)]; } - initWithUTF16String: (const uint16_t*)string length: (size_t)length { return [self initWithUTF16String: string byteOrder: OF_ENDIANESS_BIG_ENDIAN length: length]; } - initWithUTF16String: (const uint16_t*)string byteOrder: (of_endianess_t)byteOrder length: (size_t)length { |
︙ | ︙ |