Function; strsub - HWRM/KarosGraveyard GitHub Wiki
strsub(<sString>, <iStart> [, <iEnd>])
(from LUA 4 Manual: 6.2 String Manipulation)
"Returns another string, which is a substring of <sString>, starting at <iStart> and running until <iEnd>; <iStart> and <iEnd> may be negative, If <iEnd> is absent, then it is assumed to be equal to -1 (which is the same as the string length). In particular, the call strsub(s,1,j)
returns a prefix of s with length j, and the call strsub(s, -i)
returns a suffix of s with length i."
<sString>: the string to return the substring of.
<iStart>: the position in <sString> to start the substring.
<iEnd>: the position in <sString> to end the substring.
LUA 4 Manual: 6.2 String Manipulation
Updated Formatting? Initial
Updated for HWRM? Initial