]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added sepstream::GetRemaining()
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 22 Feb 2007 11:50:19 +0000 (11:50 +0000)
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 22 Feb 2007 11:50:19 +0000 (11:50 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6608 e03df62e-2008-0410-955e-edbf42e46eb7

include/hashcomp.h
src/hashcomp.cpp

index 445c4c4ea2319c1997b63ee4ba0baa6487c235b0..b7f8d95389533af87118baa622fbd4c5198e4dad 100644 (file)
@@ -263,6 +263,11 @@ namespace irc
                 */
                virtual const std::string GetToken();
                
+               /** Fetch the entire remaining stream, without tokenizing
+                * @return The remaining part of the stream
+                */
+               virtual const std::string GetRemaining();
+               
                /** Returns true if the end of the stream has been reached
                 * @return True if the end of the stream has been reached, otherwise false
                 */
index f8d13167585d17a84c3fb81bc09aa5e4533b7c8d..060d78fe2f8a389db2c1d862cac674692021fddb 100644 (file)
@@ -261,6 +261,11 @@ const std::string irc::sepstream::GetToken()
        return "";
 }
 
+const std::string irc::sepstream::GetRemaining()
+{
+       return std::string(n, tokens.end());
+}
+
 bool irc::sepstream::StreamEnd()
 {
        return ((n + 1) == tokens.end());