Functions for common string operations.
string | Functions for common string operations. |
Functions | |
find | Find the index of a string within another. |
format | Format a string based on the formatting mini-language. |
fromCodePoint | Return a string containing the single code point. |
hasPrefix | Return TRUE if a string has a specific prefix. |
hasSuffix | Return TRUE if a string has a specific suffix. |
isBlank | Return TRUE if a string is empty or contains only whitespace. |
join | Join an array of strings together using the given delimiter. |
lower | Return a string with all alphabetic characters converted to lower case. |
quoted | Return a string that is a quoted version of the passed string, with enclosing quotes. |
repeat | Return a string with a given string repeated the specified number of times. |
replaceAll | Return a string with all instances of a given string replaced by another string. |
replaceOne | Return a string the first instacne of a given string replaced by another string. |
split | Split a string into parts using the given delimiter. |
splitLines | Split a string into lines using any of CRLF or CR or LF line endings. |
toCodePoint | Return the Unicode code point of a given character. |
trimCharacters | Trim given characters from the start and end of a string. |
trim | Trim spaces from the start and end of a string. |
upper | Return a string with all alphabetic characters converted to upper case. |
Find the index of a string within another.
DECLARE NATIVE FUNCTION find( s: String, t: String ): Number
Format a string based on the formatting mini-language.
FUNCTION format( s: String, fmt: String ): String
Return a string containing the single code point.
DECLARE NATIVE FUNCTION fromCodePoint( code: Number ): String
Return TRUE if a string has a specific prefix.
FUNCTION hasPrefix( s: String, prefix: String ): Boolean
Return TRUE if a string has a specific suffix.
FUNCTION hasSuffix( s: String, suffix: String ): Boolean
Return TRUE if a string is empty or contains only whitespace.
FUNCTION isBlank( s: String ): Boolean
Join an array of strings together using the given delimiter.
FUNCTION join( a: Array<String>, d: String ): String
Return a string with all alphabetic characters converted to lower case.
DECLARE NATIVE FUNCTION lower( s: String ): String
Return a string that is a quoted version of the passed string, with enclosing quotes.
DECLARE NATIVE FUNCTION quoted( s: String ): String
Return a string with a given string repeated the specified number of times.
FUNCTION repeat( s: String, n: Number ): String
Return a string with all instances of a given string replaced by another string.
FUNCTION replaceAll( s: String, target: String, replacement: String ): String
Return a string the first instacne of a given string replaced by another string.
FUNCTION replaceOne( s: String, target: String, replacement: String ): String
Split a string into parts using the given delimiter.
DECLARE NATIVE FUNCTION split( s: String, d: String ): Array<String>
Split a string into lines using any of CRLF or CR or LF line endings.
DECLARE NATIVE FUNCTION splitLines( s: String ): Array<String>
Return the Unicode code point of a given character.
DECLARE NATIVE FUNCTION toCodePoint( s: String ): Number
Trim given characters from the start and end of a string.
DECLARE NATIVE FUNCTION trimCharacters( s: String, trimLeadingChars, trimTrailingChars: String ): String
Trim spaces from the start and end of a string.
FUNCTION trim( s: String ): String
Return a string with all alphabetic characters converted to upper case.
DECLARE NATIVE FUNCTION upper( s: String ): String