String

String

Supertype: Object

Table 3. Properties

Type Name Description
Integer length the length of this string


Table 4. Operations

Return type Name Description
String toLowerCase () Converts all of the characters in this String to lower case using the rules of the default locale (from Java)
String + ( Object ) concatenates two strings
List toCharList () splits this String into a List[String] containing Strings of length 1
String toFirstUpper () Converts the first character in this String to upper case using the rules of the default locale (from Java)
String subString ( Integer , Integer ) Returns a new string that is a substring of this string.
String trim () Returns a copy of the string, with leading and trailing whitespace omitted. (from Java 1.4)
String toFirstLower () Converts the first character in this String to lower case using the rules of the default locale (from Java)
String toUpperCase () Converts all of the characters in this String to upper case using the rules of the default locale (from Java)
List split ( String ) Splits this string around matches of the given regular expression (from Java 1.4)
Boolean startsWith ( String ) Tests if this string starts with the specified prefix.
Boolean matches ( String ) Tells whether or not this string matches the given regular expression. (from Java 1.4)
Integer asInteger () Returns an Integer object holding the value of the specified String (from Java 1.5)
Boolean contains ( String ) Tests if this string contains substring.
Boolean endsWith ( String ) Tests if this string ends with the specified prefix.
String replaceFirst ( String , String ) Replaces the first substring of this string that matches the given regular expression with the given replacement.
String replaceAll ( String , String ) Replaces each substring of this string that matches the given regular expression with the given replacement.