52#ifndef UTIL_STRINGTOKENIZER_HPP
53#define UTIL_STRINGTOKENIZER_HPP
83 const std::string& delim =
" ;\t\n\r");
97 std::string::const_iterator& last,
98 const std::string& delim =
" ;\t\n\r");
210 bool isDelimiter(
const char c);
213 void convertFortranNumber(std::string& fortranNumber);
215 std::string tokenString_;
222 std::string::const_iterator currentPos_;
223 std::string::const_iterator end_;
The string tokenizer class allows an application to break a string into tokens The set of delimiters ...
std::vector< std::string > getAllTokens()
Returns all of the tokens.
std::string peekNextToken()
Returns the next token without advancing the position of the StringTokenizer.
const std::string & getDelimiters()
Returns the current delimiter set of this string tokenizer.
std::string nextToken()
Returns the next token from this string tokenizer.
void skipToken()
Skips the next token from this string tokenizer.
int countTokens()
Calculates the number of times that this tokenizer's nextToken method can be called before it generat...
int nextTokenAsInt()
Returns the next token from this string tokenizer as an integer.
float nextTokenAsFloat()
Returns the next token from this string tokenizer as a float.
bool hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string.
const std::string & getOriginal()
Returns the original string before tokenizing.
StringTokenizer(const std::string &str, const std::string &delim=" ;\t\n\r")
Constructs a string tokenizer for the specified string.
std::string getRemainingString()
Returns the remaining unparsed string.
bool nextTokenAsBool()
Returns the next token from this string tokenizer as a bool.
RealType nextTokenAsDouble()
Returns the next token from this string tokenizer as a RealType.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.