These methods are used for parsing data strings into tokens according to the delimiters.
base.StringTokenizer methods are applied to the corresponding objects. To declare a base.StringTokenizer object, use the DEFINE statement:
DEFINE st_object base.StringTokenizer
base.StringTokenizer methods are invoked in the following way:
CALLbase.StringTokenizer.<Method>(<parameters>)
Available methods
|
creates a base.StringTokenizer object |
|
|
creates a base.StringTokenizer object from strings that contain empty tokens and escape characters |
|
|
base.StringTokenizer.countTokens() |
returns the number of tokens which are still to be returned by the string tokenizer |
|
base.StringTokenizer.hasMoreTokens() |
checks if there are more tokens to return (returns TRUE if there are such tokens, and FALSE if not) |
|
returns the next token from the source string |