v0.13.6

string.trim

functionimplementedavailable in: camelot

Trim characters (*chars*), off the left and right of *str*

signaturewowlua
function string.trim(    str: stringView,    characters: stringView): stringView

Parameters

nametypedescription
strstringViewThe input string.
charactersstringViewThe set of bytes to remove. Default: " \\r\\n\\t".

Returns

trimmed · stringView · The trimmed string.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaStringExtensions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗. Parameter and result notes: Blizzard's API documentation (Blizzard_APIDocumentationGenerated).