SubString

Parameters
source string
start integer
end integer
note

This function does bound-checking on the upper bound, e.g. SubString("test", 0, 9999) == "test" but not on the lower bound:

SubString("", -3, 0) == null
SubString(null, -3, 0) == null
SubString("non-empty/not-null", -3, 0) != ""
SubString("non-empty/not-null", -3, 0) != null

http://www.wc3c.net/showthread.php?p=1090749#post1090749

pure
This function is pure. For the same values passed to it, it will always return the same value.
return type
string
Source code
native SubString takes string source, integer start, integer end returns string
Source
string.j
wc3modding.com
SubString