string (Standard Lua) |
string.lower(s)
Description: Converts all letters in a string to lowercase. Useful for case-insensitive matching or comparisons. Input: s (string) Returns: lowercase version of s Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.sub(s, i [, j])
Description: Extracts a portion of a string between the given start and end positions. Input: s (string), i (start index), optional j (end index) Returns: substring from i to j Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.upper(s)
Description: Converts all letters in a string to uppercase. Input: s (string) Returns: uppercase version of s Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.len(s)
Description: Gets the length of the string in bytes. Input: s (string) Returns: integer length of the string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.format(fmt, ...)
Description: Formats text using printf-style syntax. Commonly used for building dynamic strings. Input: fmt (format string), additional arguments Returns: formatted string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.rep(s, n [, sep])
Description: Repeats the given string n times, optionally separated by sep. Input: s (string), n (repeat count), optional sep (separator) Returns: repeated string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.dump(f [, strip])
Description: Serializes a Lua function into bytecode form. Used for saving or transferring functions. Input: f (function), strip (boolean) Returns: binary string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.char(...)
Description: Creates a string from ASCII byte values. Input: integers (0–255) Returns: string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.find(s, pattern [, init [, plain]])
Description: Finds the first occurrence of a substring or pattern in a string. Input: s (string), pattern (string), optional start index, optional plain flag Returns: start and end positions, or nil if not found Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.byte(s [, i [, j]])
Description: Returns the numeric codes of characters in a string. Input: string, optional index range Returns: integer(s) representing byte values Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.gmatch(s, pattern)
Description: Returns an iterator that produces all pattern matches one by one. Input: s (string), pattern (string) Returns: iterator function Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.unpack(fmt, s [, pos])
Description: Reads data from a binary string according to a specified format. Input: fmt (format string), s (binary string), pos (start position) Returns: unpacked values, next position Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.packsize(fmt)
Description: Returns how many bytes a format string will use when packing data. Input: fmt (format string) Returns: integer size Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.pack(fmt, v1, v2, ...)
Description: Converts values into a packed binary string based on format rules. Input: fmt (format string), values Returns: binary string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.reverse(s)
Description: Returns a new string with characters in reverse order. Input: s (string) Returns: reversed string Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.match(s, pattern [, init])
Description: Finds the first substring that matches the pattern and returns captures. Input: s (string), pattern (string), optional start index Returns: captures or full match Supported in MASSO software v5.13 & API Version: 1.0.0 |
string.gsub(s, pattern, repl [, n])
Description: Performs global substitution in a string, replacing matches with the specified value. Input: s (string), pattern, repl (string/table/function), n (limit) Returns: modified string, replacements count Supported in MASSO software v5.13 & API Version: 1.0.0 |