string

std

A character string.

Extension Functions

native fun contains(comparing) on string link

Checks if the string contains the given string.

Params
comparing ( string )

The needle

Returns boolean

If the current string contains the given string

native fun format(formatList) on string link

Performs typical C-style string formatting. Only strings, doubles, and integers are supported.

Params
formatList

The list of items to format with

Returns string

The formatted string

native fun length() on string link

Gets the length of a string.

Returns int

The length of the string

native fun substring(beginIndex) on string link

Returns a substring of the current string from the given index.

Params
beginIndex ( int )

The index to start the substring

Returns string

The substring

native fun substring(beginIndex, endIndex) on string link

Returns a substring of the current string from and to specified indices

Params
beginIndex ( int )

The index to start the substring

endIndex ( int )

The index to end the substring

Returns string

The substring

native fun toInt() on string link

Converts the string to an integer.

Returns int

The integer value of the string

native fun toLower() on string link

Returns the string in all lowercase.

Returns string

The string in all lowercase

native fun toUpper() on string link

Returns the string in all uppercase.

Returns string

The string in all uppercase