Standard Library: String functions

lines


[%lines: str]

list

Splits string str by line feed characters (0x0A, \n) and returns a list of the results.

Parameters

strstring
The input string.

lower


[%lower: str]

string

Converts string str to lowercase and returns the result.

Parameters

strstring
The input string.

split


[%split: str; sep?]

list

Splits the input text by sep into a list of strings. If sep is omitted, splits into characters.

Parameters

strstring
The input string.

sepstring (optional)
The delimiter to split on. If omitted, the string will be split into individual characters.

seg


[%seg: str; size]

list

Segments the input text into a list of strings of size length.

Parameters

strstring
The input string.

sizeint
The size of the segments to produce.

upper


[%upper: str]

string

Converts string str to uppercase and returns the result.