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[] = {
|
const luaL_Reg utf8lib[] = {
|
||||||
{"encode", lua::wrap<l_encode>},
|
{"tobytes", lua::wrap<l_encode>},
|
||||||
{"decode", lua::wrap<l_decode>},
|
{"tostring", lua::wrap<l_decode>},
|
||||||
{"length", lua::wrap<l_length>},
|
{"length", lua::wrap<l_length>},
|
||||||
{"codepoint", lua::wrap<l_codepoint>},
|
{"codepoint", lua::wrap<l_codepoint>},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user