casa
$Rev:20696$
|
The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util pacakge. More...
#include <StringTokenizer.h>
Public Member Functions | |
StringTokenizer (const string &s, const string &delim=" \t\n\r\f", bool returnDelims=false) throw (InvalidArgumentException) | |
virtual | ~StringTokenizer () |
bool | hasMoreTokens () |
string | nextToken () throw (OutOfBoundsException) |
string | nextToken (const string delim) throw (OutOfBoundsException) |
int | countTokens () |
StringTokenizer (const string &s, const string &delim=" \t\n\r\f", bool returnDelims=false) throw (InvalidArgumentException) | |
virtual | ~StringTokenizer () |
bool | hasMoreTokens () |
string | nextToken () throw (OutOfBoundsException) |
string | nextToken (const string delim) throw (OutOfBoundsException) |
int | countTokens () |
Private Member Functions | |
void | setMaxDelimChar () throw (InvalidArgumentException) |
int | skipDelimiters (int startPos) throw (InvalidArgumentException) |
int | scanToken (int startPos) |
int | indexOfDelimiters (char c) |
void | setMaxDelimChar () throw (InvalidArgumentException) |
int | skipDelimiters (int startPos) throw (InvalidArgumentException) |
int | scanToken (int startPos) |
int | indexOfDelimiters (char c) |
Private Attributes | |
int | currentPosition |
int | newPosition |
int | maxPosition |
char * | str |
string * | ostr |
string | strDelimiter |
const char * | delimiter |
int | numDelimiters |
bool | retDelims |
bool | delimsChanged |
char | maxDelimChar |
The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util pacakge.
See the Java class documentation.
Definition at line 43 of file StringTokenizer.h.
asdm::StringTokenizer::StringTokenizer | ( | const string & | s, |
const string & | delim = " \t\n\r\f" , |
||
bool | returnDelims = false |
||
) | throw (InvalidArgumentException) |
virtual asdm::StringTokenizer::~StringTokenizer | ( | ) | [virtual] |
asdm::StringTokenizer::StringTokenizer | ( | const string & | s, |
const string & | delim = " \t\n\r\f" , |
||
bool | returnDelims = false |
||
) | throw (InvalidArgumentException) |
virtual asdm::StringTokenizer::~StringTokenizer | ( | ) | [virtual] |
bool asdm::StringTokenizer::hasMoreTokens | ( | ) |
bool asdm::StringTokenizer::hasMoreTokens | ( | ) |
int asdm::StringTokenizer::indexOfDelimiters | ( | char | c | ) | [private] |
int asdm::StringTokenizer::indexOfDelimiters | ( | char | c | ) | [private] |
string asdm::StringTokenizer::nextToken | ( | ) | throw (OutOfBoundsException) |
string asdm::StringTokenizer::nextToken | ( | ) | throw (OutOfBoundsException) |
string asdm::StringTokenizer::nextToken | ( | const string | delim | ) | throw (OutOfBoundsException) |
string asdm::StringTokenizer::nextToken | ( | const string | delim | ) | throw (OutOfBoundsException) |
int asdm::StringTokenizer::scanToken | ( | int | startPos | ) | [private] |
int asdm::StringTokenizer::scanToken | ( | int | startPos | ) | [private] |
void asdm::StringTokenizer::setMaxDelimChar | ( | ) | throw (InvalidArgumentException) [private] |
void asdm::StringTokenizer::setMaxDelimChar | ( | ) | throw (InvalidArgumentException) [private] |
int asdm::StringTokenizer::skipDelimiters | ( | int | startPos | ) | throw (InvalidArgumentException) [private] |
int asdm::StringTokenizer::skipDelimiters | ( | int | startPos | ) | throw (InvalidArgumentException) [private] |
int asdm::StringTokenizer::currentPosition [private] |
Definition at line 60 of file StringTokenizer.h.
const char * asdm::StringTokenizer::delimiter [private] |
Definition at line 66 of file StringTokenizer.h.
bool asdm::StringTokenizer::delimsChanged [private] |
Definition at line 69 of file StringTokenizer.h.
char asdm::StringTokenizer::maxDelimChar [private] |
Definition at line 71 of file StringTokenizer.h.
int asdm::StringTokenizer::maxPosition [private] |
Definition at line 62 of file StringTokenizer.h.
int asdm::StringTokenizer::newPosition [private] |
Definition at line 61 of file StringTokenizer.h.
int asdm::StringTokenizer::numDelimiters [private] |
Definition at line 67 of file StringTokenizer.h.
string * asdm::StringTokenizer::ostr [private] |
Definition at line 64 of file StringTokenizer.h.
bool asdm::StringTokenizer::retDelims [private] |
Definition at line 68 of file StringTokenizer.h.
char * asdm::StringTokenizer::str [private] |
Definition at line 63 of file StringTokenizer.h.
string asdm::StringTokenizer::strDelimiter [private] |
Definition at line 65 of file StringTokenizer.h.