Namespace spl.string
This namespace contains components for handling strings.
By default this namespace is in scope for SPL programs, so no explicit use statement is required to use them.
Functions
- appendM(rstring[N], rstring): Append an rstring to a bounded rstring.
- appendM(rstring[N], rstring[M]): Append a bounded rstring to a bounded rstring.
- concat(rstring, rstring): Concatenate two rstring strings, returning an rstring.
- concat(rstring, rstring[N]): Concatenate an rstring with a bounded rstring, returning an rstring.
- concat(rstring[N], rstring): Concatenate a bounded rstring with an rstring, returning an rstring.
- concat(rstring[N], rstring[M]): Concatenate two bounded rstring strings, returning an rstring.
- convertFromBlob(blob): Convert a blob to an rstring.
- convertFromUtf8(rstring, rstring): Convert a UTF-8 encoded string into data as raw bytes with a specified encoding.
- convertFromUtf8ToString(rstring, rstring): Convert a UTF-8 encoded string into a string with a specified encoding.
- convertToBlob(rstring): Convert an rstring to a blob.
- convertToUtf8(list<uint8>, rstring): Convert data given as raw bytes with a specified encoding into a UTF-8 encoded string.
- convertToUtf8(list<uint8>[N], rstring): Convert data given as raw bytes with a specified encoding into a UTF-8 encoded string.
- convertToUtf8(rstring, rstring): Convert data given as raw bytes with a specified encoding into a UTF-8 encoded string.
- csvTokenize(rstring): Tokenize a string containing comma-separated values.
- csvTokenize(ustring): Tokenize a string containing comma-separated values.
- findFirst(T, T): Find a substring in a string, starting at index 0, where 0 is the first logical character in the input string.
- findFirst(T, T, int32): Find a substring in a string.
- findFirstNotOf(T, T): Find a non-matching character in a string, starting at index 0, where 0 is the first logical character in the input string.
- findFirstNotOf(T, T, int32): Find a non-matching character in a string.
- findFirstOf(T, T): Find a matching character in a string, starting at index 0, where 0 is the first logical character in the input string.
- findFirstOf(T, T, int32): Find a matching character in a string.
- findLast(T, T, int32): Find a substring in a string.
- findLastNotOf(T, T, int32): Find the last non-matching character in a string.
- findLastOf(T, T, int32): Find a matching character in a string.
- interpretRStringLiteral(rstring): Interpret a string literal stored in a UTF-8 encoded string as an rstring.
- interpretUStringLiteral(rstring): Interpret a string literal stored in a UTF-8 encoded string as a ustring.
- length(T): Get the length of a string (the number of raw bytes).
- lower(T): Convert a string to lowercase.
- ltrim(T, T): Remove the leading characters from a string.
- makeRStringLiteral(rstring): Make a string literal from an rstring.
- makeUStringLiteral(ustring): Make a string literal from a ustring.
- regexMatch(rstring, rstring): Match a string with a regular expression, using POSIX Extended Regular Expressions (ERE), including sub-expression (capture group) matching using parentheses "()".
- regexMatch(ustring, ustring): Match a string with a regular expression, using POSIX Extended Regular Expressions (ERE), including sub-expression (capture group) matching using parentheses "()".
- regexMatchPerl(rstring, rstring): Match a string with a regular expression, using a Perl regular expression, including sub-expression (capture group) matching using parentheses "()".
- regexMatchPerl(ustring, ustring): Match a string with a regular expression, using a Perl regular expression, including sub-expression (capture group) matching using parentheses "()".
- regexReplace(rstring, rstring, rstring, boolean): Match and replace a string with a regular expression, using POSIX Extended Regular Expressions (ERE), including sub-expression (capture group) matching using parentheses "()".
- regexReplace(ustring, ustring, ustring, boolean): Match and replace a string with a regular expression, using POSIX Extended Regular Expressions (ERE), including sub-expression (capture group) matching using parentheses "()".
- regexReplacePerl(rstring, rstring, rstring, boolean): Match and replace a string with a regular expression, using a Perl regular expression, including sub-expression (capture group) matching using parentheses "()".
- regexReplacePerl(ustring, ustring, ustring, boolean): Match and replace a string with a regular expression, using a Perl regular expression, including sub-expression (capture group) matching using parentheses "()".
- rtrim(T, T): Remove the trailing characters from a string.
- substring(T, int32, int32): Get a substring from a string.
- toCharacterCode(T): Convert the first character of a string to its corresponding ASCII code.
- tokenize(rstring, rstring, boolean): Tokenize a string.
- tokenize(rstring, rstring, boolean, boolean, list<rstring>): Tokenize a string.
- tokenize(ustring, ustring, boolean): Tokenize a string.
- tokenize(ustring, ustring, boolean, boolean, list<ustring>): Tokenize a string.
- trim(T, T): Remove the leading and trailing characters from a string.
- upper(T): Convert a string to uppercase.