Documentation ¶
Overview ¶
Package cesu8 implements functions and constants to support text encoded in CESU-8. It implements functions comparable to the unicode/utf8 package for UTF-8 de- and encoding.
Index ¶
Constants ¶
View Source
const (
// CESUMax is the maximum amount of bytes used by an CESU-8 codepoint encoding.
CESUMax = 6
)
Variables ¶
This section is empty.
Functions ¶
func DecodeRune ¶
DecodeRune unpacks the first CESU-8 encoding in p and returns the rune and its width in bytes.
func EncodeRune ¶
EncodeRune writes into p (which must be large enough) the CESU-8 encoding of the rune. It returns the number of bytes written.
func FullRune ¶
FullRune reports whether the bytes in p begin with a full CESU-8 encoding of a rune.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.