string

Functions for common string operations.

Summary
stringFunctions for common string operations.
Functions
findFind the index of a string within another.
formatFormat a string based on the formatting mini-language.
hasPrefixReturn TRUE if a string has a specific prefix.
hasSuffixReturn TRUE if a string has a specific suffix.
isBlankReturn TRUE if a string is empty or contains only whitespace.
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.
replaceAllReturn a string with all instances of a given string replaced by another string.
replaceOneReturn a string the first instacne of a given string replaced by another string.
splitSplit a string into parts using the given delimiter.
splitLinesSplit a string into lines using any of CRLF or CR or LF line endings.
trimCharactersTrim given characters from the start and end of a string.
trimTrim spaces 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.

format

FUNCTION format(s: String,
fmt: String): String

Format a string based on the formatting mini-language.

TODO

hasPrefix

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

Return TRUE if a string has a specific prefix.

hasSuffix

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

Return TRUE if a string has a specific suffix.

isBlank

FUNCTION isBlank(s: String): Boolean

Return TRUE if a string is empty or contains only whitespace.

join

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.

replaceAll

FUNCTION replaceAll(s: String,
target: String,
replacement: String): String

Return a string with all instances of a given string replaced by another string.

replaceOne

FUNCTION replaceOne(s: String,
target: String,
replacement: String): String

Return a string the first instacne of a given string replaced by another string.

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.

trimCharacters

DECLARE NATIVE FUNCTION trimCharacters(s: String,
 trimLeadingChars,
trimTrailingChars: String): String

Trim given characters from the start and end of a string.

trim

FUNCTION trim(s: String): String

Trim spaces 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.
FUNCTION format(s: String,
fmt: String): String
Format a string based on the formatting mini-language.
FUNCTION hasPrefix(s: String,
prefix: String): Boolean
Return TRUE if a string has a specific prefix.
FUNCTION hasSuffix(s: String,
suffix: String): Boolean
Return TRUE if a string has a specific suffix.
FUNCTION isBlank(s: String): Boolean
Return TRUE if a string is empty or contains only whitespace.
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.
FUNCTION replaceAll(s: String,
target: String,
replacement: String): String
Return a string with all instances of a given string replaced by another string.
FUNCTION replaceOne(s: String,
target: String,
replacement: String): String
Return a string the first instacne of a given string replaced by another string.
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 trimCharacters(s: String,
 trimLeadingChars,
trimTrailingChars: String): String
Trim given characters from the start and end of a string.
FUNCTION trim(s: String): String
Trim spaces 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