v0.13.8

strsplittable

functionimplementedavailable in: camelot

Splits a string at a delimiter and returns the pieces in a table. The optional last argument limits the number of pieces. · description by wowlua

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
delimiterstringCharacters (bytes) that will be interpreted as delimiter characters (bytes) in the string.
strstringString to split.
piecesnumber?Maximum number of pieces to make (the "last" piece would contain the rest of the string); by default, an unbounded number of pieces is returned.

Returns

chunks · string[] · Returns an array of strings.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: written by wowlua where no documentation describes the entry. Parameter and result notes: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.