Docs

String


Class methods

capitalize

Converts a string to start case (first letter of every word is uppercase).

String.capitalize()



charAt

Returns the character at the given index.

String.charAt(int index)



charCodeAt

Returns the character at the given position as ASCII number.

String.charCodeAt(var index)



concat

Joins two or more strings, and returns a new joined strings.

String.concat(var stringlist)



contains

Checks if the string contains the given substring.

String.contains(String otherString)



decrypt

Decrypt a string from Blowfish encryption.

String.decrypt(var key)



encrypt

Encrypt a string using Blowfish encryption.

String.encrypt(var key)



indexOf

Returns the position of the first found occurrence of a specified value in a string.

String.indexOf(var substring)



lastIndexOf

Returns the position of the last found occurrence of a specified value in a string.

String.lastIndexOf(var substring)



replace

Returns a copy of the string and replaces all occurences of a with b .

String.replace(var substringToLookFor, var replacement)



split

Splits the string into an array with the given separator.

String.split(var separatorString)



splitCamelCase

Splits the string at uppercase characters (so MyValue becomes ["My", "Value"].

String.splitCamelCase()



substring

Returns the substring in the given range.

String.substring(int startIndex, int endIndex)



toLowerCase

Converts a string to lowercase letters.

String.toLowerCase()



toUpperCase

Converts a string to uppercase letters.

String.toUpperCase()



trim

Returns a copy of this string with any whitespace characters removed from the start and end.

String.trim()