RAD Studio VCL Reference
|
A string tokenizer breaks a string into tokens.
IStringTokenizer = interface;
__interface IStringTokenizer;
IStringTokenizer is implemented by string tokenizers, objects which iterate through the tokens in a string. To obtain a simple string tokenizer, call StringTokenizer.
A tokenizer is created from two strings: a source string and a delimiter string. In the source string, any characters in the delimiter string separate tokens, while any other characters are part of the tokens themselves. Thus in the following calls:
StringTokenizer('This is a token/So+is+this', '/'); // Delphi example
StringTokenizer("This is a token/So+is+this', '/'); // C++ example
StringTokenizer creates a tokenizer that produces two tokens, consisting of the strings "This is a token" and "So+is+this".
Use the nextToken method to iterate through the tokens.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|