Module:StringUtils: Revision history

From TwogPedia

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 August 2022

  • curprev 20:5320:53, 19 August 2022Couchor talk contribs 1,891 bytes +1,891 Created page with "local String = {} function String.startsWith(str, start) return str:sub(1, #start) == start --str:find('^' .. start) ~= nil end function String.endsWith(str, ending) return ending == '' or str:sub(-#ending) == ending end function String.split(inputstr, sep) if inputstr ~= nil then if sep == nil then sep = '%s' end inputstr = inputstr:gsub(sep, '&') local t = {} local i = 1 for str in string.gmatch(inputstr, '([^&]+)') do t[i] = str i = i + 1..."