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.
fromCodePointReturn a string containing the single code point.
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.
quotedReturn a string that is a quoted version of the passed string, with enclosing quotes.
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.
toCodePointReturn the Unicode code point of a given character.
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

fromCodePoint

DECLARE NATIVE FUNCTION fromCodePoint(code: Number): String

Return a string containing the single code point.

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.

quoted

DECLARE NATIVE FUNCTION quoted(s: String): String

Return a string that is a quoted version of the passed string, with enclosing quotes.

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.

toCodePoint

DECLARE NATIVE FUNCTION toCodePoint(s: String): Number

Return the Unicode code point of a given character.  The input string must be a single character.

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.
DECLARE NATIVE FUNCTION fromCodePoint(code: Number): String
Return a string containing the single code point.
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.
DECLARE NATIVE FUNCTION quoted(s: String): String
Return a string that is a quoted version of the passed string, with enclosing quotes.
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 toCodePoint(s: String): Number
Return the Unicode code point of a given character.
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