diff options
| author | ruki <[email protected]> | 2026-01-20 23:43:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-20 23:43:50 +0800 |
| commit | 23710584abfd0bb9c12c207066c145e6feee81e5 (patch) | |
| tree | b72b9db4d290534618687622fe281c2112de2b9d /core/src/xmake/engine.c | |
| parent | a9d5fe27bb69cc35022e9c8b80ac9d5f89f570c0 (diff) | |
fix utf8.find
Diffstat (limited to 'core/src/xmake/engine.c')
| -rw-r--r-- | core/src/xmake/engine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 098a808c8..9ef4ec68f 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -287,6 +287,7 @@ tb_int_t xm_utf8_offset(lua_State *lua); tb_int_t xm_utf8_codes(lua_State *lua); tb_int_t xm_utf8_sub(lua_State *lua); tb_int_t xm_utf8_lastof(lua_State *lua); +tb_int_t xm_utf8_find(lua_State *lua); // the string functions tb_int_t xm_string_trim(lua_State *lua); @@ -601,6 +602,7 @@ static luaL_Reg const g_utf8_functions[] = { {"offset", xm_utf8_offset}, {"sub", xm_utf8_sub}, {"lastof", xm_utf8_lastof}, + {"find", xm_utf8_find}, {tb_null, tb_null} }; |
