diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-18 21:10:39 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-18 21:10:39 +0000 |
commit | 0d3ec454de486da5cbc292f7e694ee8ab7e4fae0 (patch) | |
tree | bf71bfec70f2f6d3b4110d38d0c2557edbe0908e /include/hashcomp.h | |
parent | 12ac162d9e025827339f68bdefa8c4d27b1051e7 (diff) |
Fix a few things that bugged me when I was working on one of my own modules.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2573 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index e8cc488e0..4fb7e5a20 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -425,6 +425,8 @@ class CoreExport sepstream /** Create a sepstream and fill it with the provided data */ sepstream(const std::string &source, char seperator); + sepstream(const ci::string &source, char seperator); + sepstream(const char *source, char seperator); virtual ~sepstream() { } /** Fetch the next token from the stream @@ -432,6 +434,7 @@ class CoreExport sepstream * @return True if tokens still remain, false if there are none left */ virtual bool GetToken(std::string &token); + virtual bool GetToken(ci::string &token); /** Fetch the entire remaining stream, without tokenizing * @return The remaining part of the stream @@ -452,6 +455,8 @@ class CoreExport commasepstream : public sepstream /** Initialize with comma seperator */ commasepstream(const std::string &source) : sepstream(source, ',') { } + commasepstream(const ci::string &source) : sepstream(source, ',') { } + commasepstream(const char *source) : sepstream(source, ',') { } }; /** A derived form of sepstream, which seperates on spaces @@ -462,6 +467,8 @@ class CoreExport spacesepstream : public sepstream /** Initialize with space seperator */ spacesepstream(const std::string &source) : sepstream(source, ' ') { } + spacesepstream(const ci::string &source) : sepstream(source, ' ') { } + spacesepstream(const char *source) : sepstream(source, ' ') { } }; #endif |