string

Functions for common string operations.

Summary
stringFunctions for common string operations.
Functions
findFind the index of a string within another.
hasPrefixReturn TRUE if a string has a specific prefix.
hasSuffixReturn TRUE if a string has a specific suffix.
joinJoin an array of strings together using the given delimiter.
lowerReturn a string with all alphabetic characters converted to lower case.
repeatReturn a string with a given string repeated the specified number of times.
splitSplit a string into parts using the given delimiter.
splitLinesSplit a string into lines using any of CRLF or CR or LF line endings.
trimTrim whitespace from the start and end of a string.
upperReturn a string with all alphabetic characters converted to upper case.

Functions

find

DECLARE NATIVE FUNCTION find(s: String,
t: String): Number

Find the index of a string within another.

hasPrefix

DECLARE NATIVE FUNCTION hasPrefix(s: String,
prefix: String): Boolean

Return TRUE if a string has a specific prefix.

hasSuffix

DECLARE NATIVE FUNCTION hasSuffix(s: String,
suffix: String): Boolean

Return TRUE if a string has a specific suffix.

join

DECLARE NATIVE FUNCTION join(a: Array<String>,
d: String): String

Join an array of strings together using the given delimiter.

lower

DECLARE NATIVE FUNCTION lower(s: String): String

Return a string with all alphabetic characters converted to lower case.

repeat

FUNCTION repeat(s: String,
n: Number): String

Return a string with a given string repeated the specified number of times.

split

DECLARE NATIVE FUNCTION split(s: String,
d: String): Array<String>

Split a string into parts using the given delimiter.

splitLines

DECLARE NATIVE FUNCTION splitLines(s: String): Array<String>

Split a string into lines using any of CRLF or CR or LF line endings.

trim

DECLARE NATIVE FUNCTION trim(s: String): String

Trim whitespace from the start and end of a string.

upper

DECLARE NATIVE FUNCTION upper(s: String): String

Return a string with all alphabetic characters converted to upper case.

DECLARE NATIVE FUNCTION find(s: String,
t: String): Number
Find the index of a string within another.
DECLARE NATIVE FUNCTION hasPrefix(s: String,
prefix: String): Boolean
Return TRUE if a string has a specific prefix.
DECLARE NATIVE FUNCTION hasSuffix(s: String,
suffix: String): Boolean
Return TRUE if a string has a specific suffix.
DECLARE NATIVE FUNCTION join(a: Array<String>,
d: String): String
Join an array of strings together using the given delimiter.
DECLARE NATIVE FUNCTION lower(s: String): String
Return a string with all alphabetic characters converted to lower case.
FUNCTION repeat(s: String,
n: Number): String
Return a string with a given string repeated the specified number of times.
DECLARE NATIVE FUNCTION split(s: String,
d: String): Array<String>
Split a string into parts using the given delimiter.
DECLARE NATIVE FUNCTION splitLines(s: String): Array<String>
Split a string into lines using any of CRLF or CR or LF line endings.
DECLARE NATIVE FUNCTION trim(s: String): String
Trim whitespace from the start and end of a string.
DECLARE NATIVE FUNCTION upper(s: String): String
Return a string with all alphabetic characters converted to upper case.
Close