Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnevenNumber = errors.New("decode ucs2: uneven number of octets")
ErrUnevenNumber happens when the number of octets (bytes) in the input is uneven.
Functions ¶
func DecodeUcs2 ¶
DecodeUcs2 decodes the given UCS2 (UTF-16) octet data into a UTF-8 encoded string.
func EncodeUcs2 ¶
EncodeUcs2 encodes the given UTF-8 text into UCS2 (UTF-16) encoding and returns the produced octets.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.