summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hashcomp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index 36e5dd0c3..ad6a2133e 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -79,6 +79,19 @@ namespace irc
bool operator()(const in_addr &s1, const in_addr &s2) const;
};
+ class tokenstream
+ {
+ private:
+ std::string tokenbuffer;
+ std::vector<std::string> tokens;
+ public:
+ tokenstream(std::string &source);
+ ~tokenstream();
+
+ unsigned int GetNumTokens();
+ const std::string& GetToken(unsigned int index);
+ };
+
/** The irc_char_traits class is used for RFC-style comparison of strings.
* This class is used to implement irc::string, a case-insensitive, RFC-