Namespace: go.std.unicode.utf16
v1.0Contents
Summary
Provides a low-level interface to the unicode/utf16 package.
Package utf16 implements encoding and decoding of UTF-16 sequences.
Index
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
Decode
Function v1.0(Decode s)
Decode returns the Unicode code point sequence represented
by the UTF-16 encoding s.
Go input arguments: (s []uint16)
Go returns: []rune
Joker input arguments: [^arrayOfInt s]
Joker returns: ^arrayOfChar -
DecodeRune
Function v1.0(DecodeRune r1 r2)
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.
Go input arguments: (r1 rune, r2 rune)
Go returns: rune
Joker input arguments: [^Char r1, ^Char r2]
Joker returns: ^Char -
Encode
Function v1.0(Encode s)
Encode returns the UTF-16 encoding of the Unicode code point sequence s.
Go input arguments: (s []rune)
Go returns: []uint16
Joker input arguments: [^arrayOfChar s]
Joker returns: ^arrayOfInt -
EncodeRune
Function v1.0(EncodeRune r)
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.
Go input arguments: (r rune)
Go returns: (r1 rune, r2 rune)
Joker input arguments: [^Char r]
Joker returns: [^Char r1, ^Char r2] -
IsSurrogate
Function v1.0(IsSurrogate r)
IsSurrogate reports whether the specified Unicode code point
can appear in a surrogate pair.
Go input arguments: (r rune)
Go returns: bool
Joker input arguments: [^Char r]
Joker returns: ^Boolean
Types
-
(None.)