Apache Log4cxx  Version 1.8.0
Loading...
Searching...
No Matches
log4cxx::helpers::StringTokenizer Class Reference

An iterator over substrings. More...

#include <stringtokenizer.h>

Public Member Functions

 StringTokenizer (const LogString &str, const LogString &delim)
 The substrings of str between one of the characters in delim.
 ~StringTokenizer ()
bool hasMoreTokens () const
 Will nextToken() return a string?
LogString nextToken ()
 Step past the current token which is returned.

Detailed Description

An iterator over substrings.

Constructor & Destructor Documentation

◆ StringTokenizer()

log4cxx::helpers::StringTokenizer::StringTokenizer ( const LogString & str,
const LogString & delim )

The substrings of str between one of the characters in delim.

◆ ~StringTokenizer()

log4cxx::helpers::StringTokenizer::~StringTokenizer ( )

Member Function Documentation

◆ hasMoreTokens()

bool log4cxx::helpers::StringTokenizer::hasMoreTokens ( ) const

Will nextToken() return a string?

◆ nextToken()

LogString log4cxx::helpers::StringTokenizer::nextToken ( )

Step past the current token which is returned.

Exceptions
NoSuchElementExceptionNo substring is available.

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