1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Integrate PUC Lua's utf8 library into Luanti

This commit is contained in:
Lars Mueller 2025-05-31 23:00:57 +02:00
parent 20548b3b82
commit 048ae3ae9a
9 changed files with 87 additions and 22 deletions

View file

@ -11972,6 +11972,23 @@ Functions: bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshi
See http://bitop.luajit.org/ for advanced information.
UTF-8 Library
-------------
Constants:
* `utf8.charpattern`
Functions:
* `utf8.char(...)`
* `utf8.codes(s [, lax])`
* `utf8.codepoint(s [, i [, j [, lax]]])`
* `utf8.len(s [, i [, j [, lax]]])`
* `utf8.offset(s, n [, i])`
See [the Lua 5.4 reference manual](https://www.lua.org/manual/5.4/manual.html#6.5) for more information.
Tracy Profiler
--------------