package
0.0.0-20241115082555-91616abce05b
Repository: https://github.com/tencentcodedog/linux-go-1.12.6.git
Documentation: pkg.go.dev

# Functions

DecodeLastRune unpacks the last UTF-8 encoding in p and returns the rune and its width in bytes.
DecodeLastRuneInString is like DecodeLastRune but its input is a string.
DecodeRune unpacks the first UTF-8 encoding in p and returns the rune and its width in bytes.
DecodeRuneInString is like DecodeRune but its input is a string.
EncodeRune writes into p (which must be large enough) the UTF-8 encoding of the rune.
FullRune reports whether the bytes in p begin with a full UTF-8 encoding of a rune.
FullRuneInString is like FullRune but its input is a string.
RuneCount returns the number of runes in p.
RuneCountInString is like RuneCount but its input is a string.
RuneLen returns the number of bytes required to encode the rune.
RuneStart reports whether the byte could be the first byte of an encoded, possibly invalid rune.
Valid reports whether p consists entirely of valid UTF-8-encoded runes.
ValidRune reports whether r can be legally encoded as UTF-8.
ValidString reports whether s consists entirely of valid UTF-8-encoded runes.

# Constants

Maximum valid Unicode code point.
the "error" Rune or "Unicode replacement character".
characters below Runeself are represented as themselves in a single byte.
maximum number of bytes of a UTF-8 encoded Unicode character.