17#ifndef _DECAF_UTIL_STRINGTOKENIZER_H_
18#define _DECAF_UTIL_STRINGTOKENIZER_H_
43 std::string::size_type pos;
67 StringTokenizer(
const std::string& str,
const std::string& delim =
" \t\n\r\f",
bool returnDelims =
false);
111 virtual std::string
nextToken(
const std::string& delim);
119 virtual unsigned int toArray(std::vector<std::string>& array);
141 virtual void reset(
const std::string& str =
"",
const std::string& delim =
"",
bool returnDelims =
false);
virtual bool hasMoreTokens() const
Tests if there are more tokens available from this tokenizer's string.
virtual int countTokens() const
Calculates the number of times that this tokenizer's nextToken method can be called before it generat...
StringTokenizer(const std::string &str, const std::string &delim=" \t\n\r\f", bool returnDelims=false)
Constructs a string tokenizer for the specified string.
virtual ~StringTokenizer()
virtual unsigned int toArray(std::vector< std::string > &array)
Grab all remaining tokens in the String and return them in the vector that is passed in by reference.
virtual std::string nextToken(const std::string &delim)
Returns the next token in this string tokenizer's string.
virtual void reset(const std::string &str="", const std::string &delim="", bool returnDelims=false)
Resets the Tokenizer's position in the String to the Beginning calls to countToken and nextToken now ...
virtual std::string nextToken()
Returns the next token from this string tokenizer.
#define DECAF_API
Definition Config.h:29
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25