runs as written · runs with Bentrix's own convention, said in its note · refused by name, the note says what Bentrix lacks · not yet built.
Functions
str.contains#
str.contains(source: string, str: string) → boolWhether it contains the text
source | string | required |
str | string | required |
str.endswith#
str.endswith(source: string, str: string) → boolWhether it ends with the text
source | string | required |
str | string | required |
str.format#
str.format(formatString: string, args: any...) → string{n} replaced by the n-th argument; {n,number,pattern} formats it
formatString | string | required |
args | any... | required |
str.format_time#
str.format_time(time: int, format: string?, timezone: string?) → stringA time on the bench's clock by yyyy MM dd HH mm ss patterns; ISO by default
time | int | required |
format | string | optional |
timezone | string | optional |
str.length#
str.length(string: string) → intThe count of characters
string | string | required |
str.lower#
str.lower(source: string) → stringLower case
source | string | required |
str.match#
str.match(source: string, regex: string) → stringThe first part the expression matches, or an empty string; a regular expression that runs in time linear in the text, so a look-around or a back-reference is refused
source | string | required |
regex | string | required |
str.pos#
str.pos(source: string, str: string) → intThe first position of the text; na where absent
source | string | required |
str | string | required |
str.repeat#
str.repeat(source: string, repeat: int, separator: string?) → stringThe text repeated
source | string | required |
repeat | int | required |
separator | string | optional |
str.replace#
str.replace(source: string, target: string, replacement: string, occurrence: int?) → stringThe occurrence-th instance replaced, counted from 0
source | string | required |
target | string | required |
replacement | string | required |
occurrence | int | optional |
str.replace_all#
str.replace_all(source: string, target: string, replacement: string) → stringEvery instance replaced
source | string | required |
target | string | required |
replacement | string | required |
str.split#
str.split(string: string, separator: string) → arr<string>The parts between the separators; an empty separator splits into characters
string | string | required |
separator | string | required |
str.startswith#
str.startswith(source: string, str: string) → boolWhether it begins with the text
source | string | required |
str | string | required |
str.substring#
str.substring(source: string, begin_pos: int, end_pos: int?) → stringThe characters from begin up to end
source | string | required |
begin_pos | int | required |
end_pos | int | optional |
str.tonumber#
str.tonumber(string: string) → floatA number from text; na where the text is not one
string | string | required |
str.tostring#
str.tostring(value: any, format: any?) → stringA number's shortest exact form, or by a format: #, 0 and. Patterns, format.mintick, format.percent, format.volume
value | any | required |
format | any | optional |
str.trim#
str.trim(source: string) → stringWithout the white space at either end
source | string | required |
str.upper#
str.upper(source: string) → stringUpper case
source | string | required |