mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Round out the WoW string globals alongside strsplit. These are FrameXML Lua in 3.3.5 (no C original — no name strings in the binary), so they're implemented from standard semantics rather than disassembled: - strjoin(delimiter, ...) — inverse of strsplit; concatenate varargs with the delimiter. nil/non-coercible pieces become "" so delimiters stay aligned. - strtrim(str [, chars]) — trim a literal character set (default whitespace) from both ends via a two-ended scan; no allocation, embedded NULs preserved. - strreplace(str, find, replace) -> (result, count) — plain-text (non-pattern) substring replace; empty find returns str unchanged. Not a stock WoW global (that build's compat script added it); documented as a ClassicAPI convenience complementing gsub. Registered as globals on both Lua states. Verified in-game: join, empty delimiter, trim (default + custom set), plain replace with count, and a strsplit->strjoin round-trip.