The StringTokenizer class / base.StringTokenizer methods |
Create a string tokenizer object with escape char and null handling.
base.StringTokenizer.createExt( source STRING, delims STRING, escape STRING, nulls BOOLEAN ) RETURNING result base.StringTokenizer
Use the base.StringTokenizer.createExt() class method to create a string tokenizer object, with escape character and null token handling.
The new created object must be assigned to a program variable defined with the base.StringTokenizer type.
The method can take a unique or multiple delimiters into account. A delimiter is always one character long.
When defining an escape character with the third parameter, the delimiters can be escaped in the source string.
When passing TRUE to the last parameter, the empty tokens are taken into account. The nextToken() method might return NULL strings. In the source string, leading and trailing delimiters or the amount of delimiters between two tokens affects the number of tokens.
DEFINE tok base.StringTokenizer LET tok = base.StringTokenizer.createExt("|aaa||b\\|bb|ccc","|","\\",TRUE)