Description
The 'strings' package includes functions that are related to manipulating strings.
'strlen' function
The 'strlen' function returns the length of its string import.
strlen [string]
[variable] & strlen [string]
'getchar' function
The 'getchar' function imports a string and exports the param1-th letter of the param2 string.
getchar [integer] [string]
[variable] & getchar [integer] [string]
'substring' function
The 'substring' function imports two strings and checks whether the second string is contained within the first string (i.e. is string 2 a substring of string 1?)
substring [string] [string]
[variable] & substring [string] [string]
if substring [string] [string]
[...]
endif
while substring [string] [string]
[...]
endwhile
'stringcrop' function
The 'stringcrop' function takes in a string (param1) and exports a substring from value2 to value3 (value 2 and 3 represent the character position within the string).
stringcrop [string] [integer] [integer]
[variable] & stringcrop [string] [integer] [integer]