package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.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 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.