Documentation ¶
Overview ¶
Package utf16 implements encoding and decoding of UTF-16 sequences.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRune ¶
DecodeRune returns the UTF-16 decoding of a surrogate pair. If the pair is not a valid UTF-16 surrogate pair, DecodeRune returns the Unicode replacement code point U+FFFD.
func EncodeRune ¶
EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune. If the rune is not a valid Unicode code point or does not need encoding, EncodeRune returns U+FFFD, U+FFFD.
func IsSurrogate ¶
IsSurrogate returns true if the specified Unicode code point can appear in a surrogate pair.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.