Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidLength indicates the binary provided has an invalid (odd) length. ErrInvalidLength = errors.New("ucs2: length must be even") )
Functions ¶
Types ¶
type ErrDanglingSurrogate ¶
type ErrDanglingSurrogate uint16
ErrDanglingSurrogate indicates only half of a suggorate pair is provided at the end of the byte array being decoded.
func (ErrDanglingSurrogate) Error ¶
func (e ErrDanglingSurrogate) Error() string
func (ErrDanglingSurrogate) Surrogate ¶
func (e ErrDanglingSurrogate) Surrogate() uint16
Surrogate returns the dangling surrogate.
Click to show internal directories.
Click to hide internal directories.