Standard.String
Last updated
Last updated
Standard.String is a library of functions for working with strings.
Description
Returns the character at the specified index in a string.
Syntax
CharAt(string, index)
Parameters
string - The string to return a character from. index - The index of the character to return.
Return Value
The character at the specified index in the string.
Description
Returns the Unicode value of the character at the specified index in a string.
Syntax
CharCodeAt(string, index)
Parameters
string - The string to return a character from. index - The index of the character to return.
Return Value
The Unicode value of the character at the specified index in the string.
Description
Combines two or more strings into one string.
Syntax
Concat(string1, string2, ...)
Parameters
string1 - The first string to combine. string2 - The second string to combine. ... - Additional strings to combine.
Return Value
A string that is the result of combining the specified strings.
Description
Returns the index of the first occurrence of a specified value in a string.
Syntax
IndexOf(string, value)
Parameters
string - The string to search. value - The value to search for.
Return Value
The index of the first occurrence of the specified value in the string.
#### Example
Description
Returns the index of the last occurrence of a specified value in a string.
Syntax
LastIndexOf(string, value)
Parameters
string - The string to search. value - The value to search for.
Return Value
The index of the last occurrence of the specified value in the string.
Description
Returns the length of a string.
Syntax
Length(string)
Parameters
string - The string to return the length of.
Return Value
The length of the string.
Description
Splits a string into an array of substrings.
Syntax
Split(string, separator)
Parameters
string - The string to split. separator - The character or characters to use to split the string.
Return Value
A list of strings that are the substrings of the specified string.