Documentation
¶
Overview ¶
Package luautf8 is Lua's UTF-8, which differs from Go's: it encodes and, lax, decodes values up to 2^31-1 in up to six bytes, as the original UTF-8 did, for \u{...} escapes and the utf8 library.
Index ¶
Constants ¶
View Source
const ( MaxUnicode = 0x10FFFF // the largest code point, strictly MaxUTF = 0x7FFFFFFF // the largest value Lua encodes )
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode decodes the sequence at the start of s, as lutf8lib.c's utf8_decode, returning its value and length, or ok false if it is invalid: overlong, too large, cut short, or, if strict, a surrogate or past MaxUnicode.
func IsContinuation ¶
IsContinuation reports whether c continues a UTF-8 sequence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.