This method splits the wide string by a delimiter and returns an array of parts.
function WString:Split(delimiter: string) -> table
delimiter: string
: string separatorReturns an array of string parts.
If the delimiter is not found in the string, the entire string will be returned. If the delimiter is an empty string, all whitespace characters will be used to split the string.
local UltraEngine = require("UltraEngine")
local s = UltraEngine.WString("dog,cat,raccoon,fox,crow,snake,rabbit,deer")
local sarr = s:Split(",")
for i, s in ipairs(sarr) do
UltraEngine.Print(s)
end