Documentation
¶
Overview ¶
Package ucs2 provides conversions between UCS-2 and UTF-8.
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 []byte
ErrDanglingSurrogate indicates only half of a surrogate pair is provided at the end of the byte array being decoded.
func (ErrDanglingSurrogate) Error ¶
func (e ErrDanglingSurrogate) Error() string
Click to show internal directories.
Click to hide internal directories.