Class hierarchy Compound list Compound Members

# StringTokenizer Class Reference

This class separates a string to separate tokens. More...

List of all members.

## Public Members

- StringTokenizer (const String& Text, const String& Delim, const DS_BOOL IncludeEmpty=0)
    Construct a StringTokenizer.

- virtual ~StringTokenizer ()
    Destructor.

- String& nextToken ()
    Returns the next token available.

- int hasMoreTokens () const
    Returns non-zero if there are more tokens.

## Detailed Description

This class separates a string to separate tokens.

It contains local storage, which solves the problem with the global strtok Delim can have any number of delimiters It also supplies an empty string capability: example: "AA|B||C" breaks down with "|" delimiter to: "AA" "B" "" "C"

## Member Function Documentation

### StringTokenizer::StringTokenizer(const String& Text, const String& Delim, const DS_BOOL IncludeEmpty=0)

Construct a StringTokenizer.

### virtual StringTokenizer::~StringTokenizer()`[virtual]`

Destructor.

### String& StringTokenizer::nextToken()

Returns the next token available.

Throws IndexOutOfBounds if there are no more tokens.

### int StringTokenizer::hasMoreTokens() const

Returns non-zero if there are more tokens.

The documentation for this class was generated from the following file:

- DS_StringTokenizer.h