string.ql

string.ql
Contents of the file.

Function Overview

Function Description
native fun length() on string Gets the length of a string.
native fun contains(comparing) on string Checks if the string contains the given string.
native fun substring(beginIndex) on string Returns a substring of the current string from the given index.
native fun substring(beginIndex, endIndex) on string Returns a substring of the current string from and to specified indices
native fun toUpper() on string Returns the string in all uppercase.
native fun toLower() on string Returns the string in all lowercase.
native fun format(formatList) on string Performs typical C-style string formatting. Only strings, doubles, and integers are supported.
native fun toInt() on string Converts the string to an integer.

Functions

native fun length() on string link

Gets the length of a string.

Returns int

The length of the string

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 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 toUpper() on string link

Returns the string in all uppercase.

Returns string

The string in all uppercase

native fun toLower() on string link

Returns the string in all lowercase.

Returns string

The string in all lowercase

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 toInt() on string link

Converts the string to an integer.

Returns int

The integer value of the string