Apache Log4cxx  Version 1.8.0
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. More...
 
 ~StringTokenizer ()
 
bool hasMoreTokens () const
 Will nextToken() return a string? More...
 
LogString nextToken ()
 Step past the current token which is returned. More...
 

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: