summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-17 02:33:18 +0300
committerSaikari <[email protected]>2026-01-17 02:33:18 +0300
commit3cf298b854443e7bbb2a96d976e8d79ffc4ddf02 (patch)
tree6ba730d06b06b04136f536b5548278f8f42751a7 /core/src/xmake/engine.c
parent4d9a7aeaaf2732ee846ee452f46370a29b6de038 (diff)
add string case conversion functions: lower and upper
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 532be1adc..d81828f1f 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -286,6 +286,8 @@ tb_int_t xm_string_lastof(lua_State *lua);
tb_int_t xm_string_convert(lua_State *lua);
tb_int_t xm_string_endswith(lua_State *lua);
tb_int_t xm_string_startswith(lua_State *lua);
+tb_int_t xm_string_lower(lua_State *lua);
+tb_int_t xm_string_upper(lua_State *lua);
// the process functions
tb_int_t xm_process_open(lua_State *lua);
@@ -589,6 +591,8 @@ static luaL_Reg const g_string_functions[] = {
{ "convert", xm_string_convert },
{ "endswith", xm_string_endswith },
{ "startswith", xm_string_startswith },
+ { "lower", xm_string_lower },
+ { "upper", xm_string_upper },
{ tb_null, tb_null },
};