IBM InfoSphere Streams Version 4.1.1
Namespace spl.string
SPL standard and specialized toolkits > spl 1.2.1 > 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 rstrings, 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 rstrings, returning an rstring.
- convertFromBlob(blob): Convert a blob to an rstring.
- convertFromUtf8(rstring, rstring): Convert UTF-8 encoded string into data as raw bytes with a specified encoding.
- convertFromUtf8ToString(rstring, rstring): Convert 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): CSV tokenize string.
- csvTokenize(ustring): CSV tokenize string.
- findFirst(T, T): Find a substring in a string, starting at index 0.
- 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.
- 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.
- 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 an SPL rstring literal stored in a utf8 encoded string.
- interpretUStringLiteral(rstring): Interpret an SPL ustring literal stored in a utf8 encoded string.
- length(T): Get the length of a string (the number of raw bytes).
- lower(T): Convert string to lowercase.
- ltrim(T, T): Remove leading characters from a string.
- makeRStringLiteral(rstring): Make an SPL rstring literal.
- makeUStringLiteral(ustring): Make an SPL ustring literal.
- 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 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 string.
- tokenize(rstring, rstring, boolean, boolean, list<rstring>): Tokenize string.
- tokenize(ustring, ustring, boolean): Tokenize string.
- tokenize(ustring, ustring, boolean, boolean, list<ustring>): Tokenize string.
- trim(T, T): Remove leading and trailing characters from a string.
- upper(T): Convert string to uppercase.