From aab4f1ae35c3cf3e0e71ebaa150cc5e43a0ab1ef Mon Sep 17 00:00:00 2001 From: tapple Date: Wed, 21 Jan 2026 05:53:16 -0800 Subject: Added missing functions to string --- .../newview/app_settings/keywords_lua_default.xml | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/indra/newview/app_settings/keywords_lua_default.xml b/indra/newview/app_settings/keywords_lua_default.xml index fabfd829f0..c994661dc8 100644 --- a/indra/newview/app_settings/keywords_lua_default.xml +++ b/indra/newview/app_settings/keywords_lua_default.xml @@ -14748,6 +14748,38 @@ Returns true if result is non-zero. tooltip Formats input values into a string using printf-style format specifiers. + string.gmatch + + arguments + + + s + + tooltip + Input string. + type + string + + + + pattern + + tooltip + Pattern to search for. + type + string + + + + energy + 10 + return + () -> ...string + sleep + 0 + tooltip + Returns an iterator function for pattern matches + string.gsub arguments @@ -14917,6 +14949,29 @@ Returns true if result is non-zero. tooltip Packs values into a binary string. + string.packsize + + arguments + + + fmt + + tooltip + Pack format string. + type + string + + + + energy + 10 + return + number + sleep + 0 + tooltip + Returns the size of a packed string for the given format. + string.rep arguments @@ -14972,6 +15027,38 @@ Returns true if result is non-zero. tooltip Returns the input string with bytes in reverse order. + string.split + + arguments + + + s + + tooltip + Input string. + type + string + + + + separator + + tooltip + Seperator to split on. Default is "," + type + string? + + + + energy + 10 + return + {string} + sleep + 0 + tooltip + Splits a string by separator. Returns a list of substrings. + string.sub arguments -- cgit v1.3