Soap.HTTPUtil.IStringTokenizer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

IStringTokenizer = interface

C++

__interface  INTERFACE_UUID("{8C216E9D-984E-4E38-893F-0A222AC547DA}") IStringTokenizer  : public System::IInterface

Properties

Type Visibility Source Unit Parent
interface
class
public
Soap.HTTPUtil.pas
Soap.HTTPUtil.hpp
Soap.HTTPUtil Soap.HTTPUtil

Description

A string tokenizer breaks a string into tokens.

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.

See Also