rename utf8.encode to utf8.tobytes, utf8.decode to utf8.tostring

This commit is contained in:
MihailRis 2024-10-26 10:54:33 +03:00
parent 3dc334e778
commit ce7698e9ee

View File

@ -54,8 +54,8 @@ static int l_codepoint(lua::State* L) {
}
const luaL_Reg utf8lib[] = {
{"encode", lua::wrap<l_encode>},
{"decode", lua::wrap<l_decode>},
{"tobytes", lua::wrap<l_encode>},
{"tostring", lua::wrap<l_decode>},
{"length", lua::wrap<l_length>},
{"codepoint", lua::wrap<l_codepoint>},
{NULL, NULL}