v2
Added:
head(_string, _char, _include)
string from first char until input, if it exists, or itself, with option to cut off char
Parameters:
_string: String to process
_char: string
_include
Returns: string up until/including the dsired character
tail(_string, _char, _include)
string from last input char until end, if it exists, or itself with option to cut off char
Parameters:
_string: String to process
_char: string
_include
Returns: string up until/including the dsired character
Updated:
last(_string)
last char of a string
Parameters:
_string: String to process
Returns: last char of a string
shift(_string)
string without first char
Parameters:
_string: String to process
Returns: string without first char
pop(_string)
string without last char
Parameters:
_string: String to process
Returns: string without last char
get(_string, _position)
get specific char of a string
Parameters:
_string: String to process
_position: int
Returns: string _string
push(_string, _char)
push to end of a string
Parameters:
_string: String to process
_char: string
Returns: string _string
unshift(_string, _char)
unshift char to prepend string
Parameters:
_string: String to process
_char: string
Returns: string _string