765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
|
if ((character & 0xFC00) == 0xDC00)
@throw [OFInvalidEncodingException
newWithClass: isa];
if ((character & 0xFC00) == 0xD800) {
uint16_t nextCharacter;
if (length <= i + 1)
@throw [OFInvalidEncodingException
newWithClass: isa];
nextCharacter = (swap
? of_bswap16(string_[i + 1])
: string_[i + 1]);
character = (((character & 0x3FF) << 10) |
|
|
|
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
|
if ((character & 0xFC00) == 0xDC00)
@throw [OFInvalidEncodingException
newWithClass: isa];
if ((character & 0xFC00) == 0xD800) {
uint16_t nextCharacter;
if (length_ <= i + 1)
@throw [OFInvalidEncodingException
newWithClass: isa];
nextCharacter = (swap
? of_bswap16(string_[i + 1])
: string_[i + 1]);
character = (((character & 0x3FF) << 10) |
|