package utf16
Import Path
unicode/utf16 (on go.dev)
Dependency Relation
imports 0 packages, and imported by 4 packages
Involved Source Files
Package utf16 implements encoding and decoding of UTF-16 sequences.
Package-Level Functions (total 7, in which 6 are exported)
AppendRune appends the UTF-16 encoding of the Unicode code point r
to the end of p and returns the extended buffer. If the rune is not
a valid Unicode code point, it appends the encoding of U+FFFD.
Decode returns the Unicode code point sequence represented
by the UTF-16 encoding s.
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.
Encode returns the UTF-16 encoding of the Unicode code point sequence s.
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.
IsSurrogate reports whether the specified Unicode code point
can appear in a surrogate pair.
Package-Level Constants (total 6, none are exported)
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |