class String
Base class: Object
Inherited classes: Empty
Description: represents a string of chars
- Fields:
- Empty
- Methods:
- ends_sith(): Returns true if the string ends with the given substring, and false otherwise
- eval(): Parses, evaluates and returns the value inside this string
- find_RE(): Searches for the given regular expression inside the string and returns its position, -1 if not found. If an index is given as parameter, the search starts at this index.
- get_RE(): Searches for the given regular expression inside the string and returns it. If an index is given as parameter, the search starts at this index.
- isalnum(): Returns true if the string contains only letters and digits, and false otherwise
- isalpha(): Returns true if the string contains only letters, and false otherwise
- isdigit(): Returns true if the string contains only digits, and false otherwise
- islower(): Returns true if the string contains no capital letters, and false otherwise
- isnumeric(): Returns true if the string contains a number, and false otherwise
- isspace(): Returns true if the string contains white spaces only (I.e. spaces, tabs and end-of-lines), and false otherwise
- isupper(): Returns true if the string contains only capital letters, and false otherwise
- join(): Join the given list elements into a string and concatenate it to this string
- lstrip(): Returns a new string as a copy of this string, deleting the leading spaces at the head
- rfind(): Searches for the last instance of the given parameter substring in the current string, and returns its index if found, -1 otherwise. If and index is given as the second parameter, search starts from that index
- rstrip(): Returns a new string as a copy of this string, deleting the spaces at the end
- split(): Split the current string into a list of strings according to the given separator string, and return that list
- starts_with(): Returns true if the string starts with the given substring, and false otherwise
- null(): Searches for the given substring inside the string and returns its position, -1 if not found. If an index is given as parameter, the search starts at this index.
- null(): Returns a new string as a copy of this string, replacing the substring given as the first parameter with the substring given as the second parameter
- strip(): Returns a new string as a copy of this string, deleting the leading and the trailing spaces
- to_lower(): Returns a new string as a copy of this string, replacing each capital letter with the corresponding lower case letter
- to_upper(): Returns a new string as a copy of this string, replacing each lower case letter with the corresponding upper case letter
- Events:
- Empty
Back to Mama reference
|