Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions

StringTokenizer Class Reference

#include <StringTokenizer.hpp>

List of all members.

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions


Detailed Description

Definition at line 40 of file StringTokenizer.hpp.


Member Typedef Documentation

Definition at line 46 of file StringTokenizer.hpp.


Constructor & Destructor Documentation

StringTokenizer::StringTokenizer ( const XalanDOMString theString,
const XalanDOMString theTokens,
bool  fReturnTokens = false 
)

Constructs a tokenizer for the target string.

No copies of any input strings are made.

Parameters:
theString string to tokenize
theTokens string of delimiters used to parse target, default is " \t\n\r"
fReturnTokens if true, delimiter characters are also returned as tokens, default is false
StringTokenizer::StringTokenizer ( const XalanDOMString theString,
const XalanDOMChar *  theTokens = s_defaultTokens,
bool  fReturnTokens = false 
)

Constructs a tokenizer for the target string.

No copies of any input strings are made.

Parameters:
theString string to tokenize
theTokens string of delimiters used to parse target, default is " \t\n\r"
fReturnTokens if true, delimiter characters are also returned as tokens, default is false
StringTokenizer::StringTokenizer ( const XalanDOMChar *  theString,
const XalanDOMChar *  theTokens = s_defaultTokens,
bool  fReturnTokens = false 
)

Constructs a tokenizer for the target string.

No copies of any input strings are made.

Parameters:
theString string to tokenize
theTokens string of delimiters used to parse target.
fReturnTokens if true, delimiter characters are also returned as tokens, default is false
StringTokenizer::StringTokenizer ( const XalanDOMChar *  theString,
const XalanDOMString theTokens,
bool  fReturnTokens = false 
)

Constructs a tokenizer for the target string.

No copies of any input strings are made.

Parameters:
theString string to tokenize
theTokens string of delimiters used to parse target.
fReturnTokens if true, delimiter characters are also returned as tokens, default is false
StringTokenizer::~StringTokenizer (  ) 

Member Function Documentation

size_type StringTokenizer::countTokens (  )  const

Count the number of tokens yet to be parsed.

Returns:
number of remaining tokens
XalanDOMString::size_type StringTokenizer::FindNextDelimiterIndex ( XalanDOMString::size_type  theStartIndex  )  const [protected]
bool StringTokenizer::hasMoreTokens (  )  const

Determine if there are tokens remaining.

Returns:
true if there are more tokens
void StringTokenizer::nextToken ( XalanDOMString theToken  ) 

Retrieve the next token to be parsed; behavior is undefined if there are no more tokens.

Parameters:
theToken next token string
void StringTokenizer::reset (  )  [inline]

Definition at line 131 of file StringTokenizer.hpp.


Member Data Documentation

const XalanDOMChar StringTokenizer::s_defaultTokens[] [static]

Definition at line 44 of file StringTokenizer.hpp.


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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo