rename utf8.encode to utf8.tobytes, utf8.decode to utf8.tostring
This commit is contained in:
parent
3dc334e778
commit
ce7698e9ee
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user