From 087361a32202e30ffac722e51928001ca604ef89 Mon Sep 17 00:00:00 2001 From: tapple Date: Tue, 20 Jan 2026 14:20:45 -0800 Subject: sorted some misplaced functions, and the coroutine module --- .../newview/app_settings/keywords_lua_default.xml | 794 +++++++-------------- 1 file changed, 250 insertions(+), 544 deletions(-) diff --git a/indra/newview/app_settings/keywords_lua_default.xml b/indra/newview/app_settings/keywords_lua_default.xml index 40e2a216f0..40c21c6910 100644 --- a/indra/newview/app_settings/keywords_lua_default.xml +++ b/indra/newview/app_settings/keywords_lua_default.xml @@ -11314,24 +11314,31 @@ vector position - position in local coordinates Converts a value to a vector, returns nil if invalid + bit32 + + energy + -1.0 + tooltip + bit32 library functions. + bit32.arshift arguments - x + n tooltip - + Number to shift. type number - disp + i tooltip - + Number of bits to shift. type number @@ -11344,19 +11351,19 @@ vector position - position in local coordinates sleep 0 tooltip - Arithmetic right shift + Shifts n by i bits to the right. If i is negative, a left shift is performed. bit32.band arguments - ... + args tooltip - + Numbers to perform bitwise AND on. type - ...number + array @@ -11367,17 +11374,17 @@ vector position - position in local coordinates sleep 0 tooltip - Bitwise AND of all arguments + Performs a bitwise AND operation on input numbers. bit32.bnot arguments - x + n tooltip - + Number to negate. type number @@ -11390,7 +11397,7 @@ vector position - position in local coordinates sleep 0 tooltip - Bitwise NOT + Returns the bitwise negation of the input number. bit32.bor @@ -12725,6 +12732,13 @@ vector position - position in local coordinates Writes an unsigned 8-bit integer to the buffer at the given offset. + coroutine + + energy + -1.0 + tooltip + coroutine namespace. + coroutine.close arguments @@ -12733,7 +12747,7 @@ vector position - position in local coordinates co tooltip - + The coroutine to close. type thread @@ -12742,11 +12756,11 @@ vector position - position in local coordinates energy 10 return - (boolean, string?) + (boolean, any?) sleep 0 tooltip - Closes a coroutine, returns success and optional error message + Closes a coroutine, returning true if successful or false and an error. coroutine.create @@ -12756,9 +12770,9 @@ vector position - position in local coordinates f tooltip - + A function to be executed by the new coroutine. type - (...any) -> ...any + function @@ -12769,12 +12783,12 @@ vector position - position in local coordinates sleep 0 tooltip - Creates a new coroutine from a function + Returns a new coroutine that, when resumed, will run function f. coroutine.isyieldable arguments - + energy 10 return @@ -12782,7 +12796,7 @@ vector position - position in local coordinates sleep 0 tooltip - Returns true if the coroutine can yield + Returns true if the coroutine can yield. coroutine.resume @@ -12792,34 +12806,34 @@ vector position - position in local coordinates co tooltip - + The coroutine to resume. type thread - ... + args tooltip - + Arguments to pass to the coroutine. type - ...any + variadic energy 10 return - (boolean, ...any) + (boolean, variadic) sleep 0 tooltip - Resumes a coroutine, returns success and results + Resumes a coroutine, returning true and results if successful, or false and an error. coroutine.running arguments - + energy 10 return @@ -12827,7 +12841,7 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the running coroutine, or nil if called from main thread + Returns the currently running coroutine, or nil if running in the main coroutine. coroutine.status @@ -12837,7 +12851,7 @@ vector position - position in local coordinates co tooltip - + The coroutine to check status of. type thread @@ -12846,11 +12860,11 @@ vector position - position in local coordinates energy 10 return - "running" | "suspended" | "normal" | "dead" + string sleep 0 tooltip - Returns the status of a coroutine + Returns the status of the coroutine: "running", "suspended", "normal", or "dead". coroutine.wrap @@ -12860,43 +12874,43 @@ vector position - position in local coordinates f tooltip - + A function to execute in a coroutine. type - (...any) -> ...any + function energy 10 return - (...any) -> ...any + function sleep 0 tooltip - Creates a coroutine and returns a function that resumes it + Creates a coroutine and returns a function that resumes it. coroutine.yield arguments - ... + args tooltip - + Values to pass to the resuming code. type - ...any + variadic energy 10 return - ...any + variadic sleep 0 tooltip - Suspends the coroutine and returns values to resume + Yields the current coroutine, passing arguments to the resuming code. debug @@ -13071,607 +13085,164 @@ vector position - position in local coordinates tooltip Stack level number. type - number - - - - index - - tooltip - Index of the local variable. - type - number - - - - value - - tooltip - New value for the local variable. - type - any - - - - energy - 10 - return - boolean - sleep - 0 - tooltip - Sets the value of a local variable at the specified stack level. - - debug.getupvalue - - arguments - - - function - - tooltip - Function whose upvalues are being retrieved. - type - function - - - - index - - tooltip - Index of the upvalue. - type - number - - - - energy - 10 - return - string|any - sleep - 0 - tooltip - Returns the name and value of an upvalue for a given function. - - debug.setupvalue - - arguments - - - function - - tooltip - Function whose upvalues are being modified. - type - function - - - - index - - tooltip - Index of the upvalue. - type - number - - - - value - - tooltip - New value for the upvalue. - type - any - - - - energy - 10 - return - string - sleep - 0 - tooltip - Sets the value of an upvalue for a given function. - - debug.getmetatable - - arguments - - - value - - tooltip - Value whose metatable is retrieved. - type - any - - - - energy - 10 - return - table|nil - sleep - 0 - tooltip - Returns the metatable of the given value, if any. - - debug.setmetatable - - arguments - - - value - - tooltip - Value whose metatable is to be set. - type - any - - - - metatable - - tooltip - Table to be set as the new metatable. - type - table|nil - - - - energy - 10 - return - any - sleep - 0 - tooltip - Sets the metatable for a given value. - - - coroutine - - energy - -1.0 - tooltip - coroutine namespace. - - coroutine.create - - arguments - - - f - - tooltip - A function to be executed by the new coroutine. - type - function - - - - energy - 10 - return - thread - sleep - 0 - tooltip - Returns a new coroutine that, when resumed, will run function f. - - coroutine.running - - arguments - - energy - 10 - return - thread? - sleep - 0 - tooltip - Returns the currently running coroutine, or nil if running in the main coroutine. - - coroutine.status - - arguments - - - co - - tooltip - The coroutine to check status of. - type - thread - - - - energy - 10 - return - string - sleep - 0 - tooltip - Returns the status of the coroutine: "running", "suspended", "normal", or "dead". - - coroutine.wrap - - arguments - - - f - - tooltip - A function to execute in a coroutine. - type - function - - - - energy - 10 - return - function - sleep - 0 - tooltip - Creates a coroutine and returns a function that resumes it. - - coroutine.yield - - arguments - - - args - - tooltip - Values to pass to the resuming code. - type - variadic - - - - energy - 10 - return - variadic - sleep - 0 - tooltip - Yields the current coroutine, passing arguments to the resuming code. - - coroutine.isyieldable - - arguments - - energy - 10 - return - boolean - sleep - 0 - tooltip - Returns true if the coroutine can yield. - - coroutine.resume - - arguments - - - co - - tooltip - The coroutine to resume. - type - thread - - - - args - - tooltip - Arguments to pass to the coroutine. - type - variadic - - - - energy - 10 - return - (boolean, variadic) - sleep - 0 - tooltip - Resumes a coroutine, returning true and results if successful, or false and an error. - - coroutine.close - - arguments - - - co - - tooltip - The coroutine to close. - type - thread - - - - energy - 10 - return - (boolean, any?) - sleep - 0 - tooltip - Closes a coroutine, returning true if successful or false and an error. - - - bit32 - - energy - -1.0 - tooltip - bit32 library functions. - - bit32.arshift - - arguments - - - n - - tooltip - Number to shift. - type - number - - - - i - - tooltip - Number of bits to shift. - type - number - - - - energy - 10 - return - number - sleep - 0 - tooltip - Shifts n by i bits to the right. If i is negative, a left shift is performed. - - bit32.band - - arguments - - - args - - tooltip - Numbers to perform bitwise AND on. - type - array - - - - energy - 10 - return - number - sleep - 0 - tooltip - Performs a bitwise AND operation on input numbers. - - bit32.bnot - - arguments - - - n - - tooltip - Number to negate. - type - number - - - - energy - 10 - return - number - sleep - 0 - tooltip - Returns the bitwise negation of the input number. - - utf8 - - energy - -1.0 - tooltip - UTF-8 library functions. - - utf8.offset - - arguments - - - s - - tooltip - Input string. - type - string + number - n + index tooltip - Character position. + Index of the local variable. type number - i + value tooltip - Starting position (optional). + New value for the local variable. type - number + any energy 10 return - number + boolean sleep 0 tooltip - Returns the byte offset of the nth Unicode codepoint in string s. + Sets the value of a local variable at the specified stack level. - utf8.char + debug.getupvalue arguments - args + function tooltip - Unicode codepoints. + Function whose upvalues are being retrieved. type - array + function + + + + index + + tooltip + Index of the upvalue. + type + number energy 10 return - string + string|any sleep 0 tooltip - Creates a string from Unicode codepoints. + Returns the name and value of an upvalue for a given function. - utf8.codepoint + debug.setupvalue arguments - s + function tooltip - Input string. + Function whose upvalues are being modified. type - string + function - i + index tooltip - Starting position (optional). + Index of the upvalue. type number - j + value tooltip - Ending position (optional). + New value for the upvalue. type - number + any energy 10 return - array + string sleep 0 tooltip - Returns the Unicode codepoints in the specified range of string s. + Sets the value of an upvalue for a given function. - utf8.len + debug.getmetatable arguments - s - - tooltip - Input string. - type - string - - - - i - - tooltip - Starting position (optional). - type - number - - - - j + value tooltip - Ending position (optional). + Value whose metatable is retrieved. type - number + any energy 10 return - number + table|nil sleep 0 tooltip - Returns the number of Unicode codepoints in the specified range of string s. + Returns the metatable of the given value, if any. - utf8.codes + debug.setmetatable arguments - s + value tooltip - Input string. + Value whose metatable is to be set. type - string + any + + + + metatable + + tooltip + Table to be set as the new metatable. + type + table|nil energy 10 return - iterator + any sleep 0 tooltip - Returns an iterator that produces the byte offset and Unicode codepoint for each character in string s. + Sets the metatable for a given value. llbase64.decode @@ -16121,6 +15692,13 @@ vector position - position in local coordinates Creates a shallow copy of a table. + utf8 + + energy + -1.0 + tooltip + UTF-8 library functions. + utf8.offset arguments @@ -16129,7 +15707,7 @@ vector position - position in local coordinates s tooltip - + Input string. type string @@ -16138,7 +15716,7 @@ vector position - position in local coordinates n tooltip - + Character position. type number @@ -16147,20 +15725,148 @@ vector position - position in local coordinates i tooltip - + Starting position (optional). type - number? + number energy 10 return - number? + number + sleep + 0 + tooltip + Returns the byte offset of the nth Unicode codepoint in string s. + + utf8.char + + arguments + + + args + + tooltip + Unicode codepoints. + type + array + + + + energy + 10 + return + string + sleep + 0 + tooltip + Creates a string from Unicode codepoints. + + utf8.codepoint + + arguments + + + s + + tooltip + Input string. + type + string + + + + i + + tooltip + Starting position (optional). + type + number + + + + j + + tooltip + Ending position (optional). + type + number + + + + energy + 10 + return + array + sleep + 0 + tooltip + Returns the Unicode codepoints in the specified range of string s. + + utf8.len + + arguments + + + s + + tooltip + Input string. + type + string + + + + i + + tooltip + Starting position (optional). + type + number + + + + j + + tooltip + Ending position (optional). + type + number + + + + energy + 10 + return + number + sleep + 0 + tooltip + Returns the number of Unicode codepoints in the specified range of string s. + + utf8.codes + + arguments + + + s + + tooltip + Input string. + type + string + + + + energy + 10 + return + iterator sleep 0 tooltip - Returns the byte position of the n-th character + Returns an iterator that produces the byte offset and Unicode codepoint for each character in string s. uuid -- cgit v1.3