Expand description
UTF-8 standard library for Lua 5.4.
Port of lutf8lib.c (291 lines, 9 functions).
Provides the utf8 module with char, codepoint, codes, len,
offset, and charpattern. Supports both strict (Unicode-conformant)
and lax (extended UTF-8, up to MAX_UTF = 0x7FFFFFFF) decoding modes.
Strict mode rejects surrogates (U+D800..U+DFFF) and values above U+10FFFF. Lax mode accepts any well-formed byte sequence with a value ≤ MAX_UTF.
Constants§
- FUNCS
- Function registration table for the
utf8library.
Functions§
- open_
utf8 - Open the
utf8library.