3.2.1.9 System.string
Implements: see System_object
Represents a string value.
Supported operators:
+- Concatenate two strings together.
*- Repeats the given string
n times, where n is an integer.
<- Return true if the string on the left is less than the string on the right.
<=- Return true if the string on the left is less than or equal to the string on the right.
==- Tests two strings for equality.
>=- Return true if the string on the left is greater than or equal to the string on the right.
>- Return true if the string on the left is greater than the string on the right.
[]- Returns the character at the given string index (beginning from 0) as a string
Supported methods:
str()- Returns a string representation of the object (overridden; see System_object).
int()- Returns an integer representation of the object (overridden; see System_object).
float()- Returns a floating-point representation of the object (overridden; see System_object).
bool()- Returns a Boolean representation of the object (overridden; see System_object).
length()- Returns the length of the string.
lower()- Returns a lowercased version of the string.
upper()- Returns an uppercased version of the string.
append(value)- Concatenate
value to the end of the string.
repeat(value)- Repeat the string
value times.
charAt(index)- Return the character at index
index, beginning from 0, as a string.
substring(from[, to])- Return a string containing all the characters from index
from to
the (optional) index to. If to is not provided, return up
to the end of the string.
format(list)- Return a string with everything beginning with % replaced with an element from
list (similar to what printf()/sprintf() do).