string
represents an immutable string
Methods
| integer len() |
returns the length of the string |
| integer tointeger() |
returns the value as an integer |
| float tofloat() |
returns the value as a float |
| string slice(start, end) |
returns a substring as a new string |
| integer find(substring, index) |
returns the first index of the given substring, starting from parameter index if given |
| string tolower() |
returns a copy of the string converted to lower case |
| string toupper() |
returns a copy of the string converted to upper case |
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.