String
ATON
aton(Charstring s
) -> Number n
STABLE
Convert string s
to number
CAPITALIZE
capitalize(Charstring s
) -> Charstring
STABLE
Capitalize string s
CHARACTER
character(Integer i
) -> Charstring
STABLE
Return UTF-8 character represented by i
CHARSTRING
charstring(Object x
) -> Charstring
STABLE
Cast x
to string
CONCAT
concat(Charstring x
, Charstring y
) -> Charstring
STABLE
Concatenate strings y
and y
. Same as x+y
DIM
dim(Charstring str
) -> Integer
STABLE
Number of characters in string str
LIKE
like(Charstring str
, Charstring pat
) -> Boolean
STABLE
Match string str
against regualar expression pat
LIKE_I
like_i(Charstring str
, Charstring pat
) -> Boolean
STABLE
Match string str
against regualar expression pat
ignoring case
LOCATE
locate(Charstring substr
, Charstring str
) -> Integer
STABLE
The position of the first occurrence of substring substr
in str
LOCATE_RIGHT
locate_right(Charstring substr
, Charstring str
) -> Integer
STABLE
The position of the last occurrence of substring substr
in str
LOWER
lower(Charstring s
) -> Charstring
STABLE
Lower case string s
LTRIM
ltrim(Charstring chars
, Charstring str
) -> Charstring
STABLE
Remove characters in chars
from beginning of str
NOT_EMPTY
not_empty(Charstring s
) -> Boolean
STABLE
Is string s
empty or all whitespaced?
The characters space, tab, or new line are counted as whitespace
NTOA
ntoa(Number x
) -> Charstring
STABLE
Convert number x
to string
PLUS
plus(Charstring x
, Object y
) -> Charstring r
STABLE
Concatenate strings x
and y
. Inverses produce prefix or suffix
REPLACE
replace(Charstring str
, Vector of Charstring from_str
, Vector of Charstring to_str
) -> Charstring
STABLE
The string str
with all occurrences of the first matching
strings in from_str
replaced by the correspondig strings in to_str
RTRIM
rtrim(Charstring chars
, Charstring str
) -> Charstring
STABLE
Remove characters in chars
from end of str
SECTION
section(Charstring str
, Number l
, Number u
) -> Charstring
STABLE
The substring of str
starting at position l
and ending at u
SKIP
skip(Charstring str
, Number l
) -> Charstring
STABLE
Skip l
characters in the beginning of string str
SPLIT
split(Charstring str
, Charstring delim
) -> Vector of Charstring
STABLE
Create a vector of substrings in str
delimited by delim
Example: `split('a bc d', ' ') -> ['a', 'bc','d']
split(Charstring str
) -> Vector of Charstring
STABLE
Unoack str
into a vector of characters
Example: `split('abc') -> ['a', 'b', 'c']
STRINGIFY
stringify(Object o
) -> Charstring
STABLE
Convert object o
to string.
The elements are stringified if o
is bag or stream
TRIM
trim(Charstring chars
, Charstring str
) -> Charstring
STABLE
Remove characters in chars
from beginning and end of str
UNSTRINGIFY
unstringify(Charstring s
) -> Object o
STABLE
Parse string s
to object
UPPER
upper(Charstring str
) -> Charstring uppr
STABLE
Upper case string str
VREF
vref(Charstring str
, Number i
) -> Charstring
STABLE
Same as str[i]
to access character i
in str