Differences From Artifact [37713bd91c]:
- File src/OFString.m — part of check-in [dcf50eb53a] at 2011-10-31 21:20:10 on branch trunk — Don't prepend a BOM when using -[unicodeString]. (user: js, size: 43204) [annotate] [blame] [check-ins using]
To Artifact [1d69719094]:
- File
src/OFString.m
— 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: 43212) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
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 { |
︙ | ︙ |