git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6608
e03df62e-2008-0410-955e-
edbf42e46eb7
*/
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
*/
return "";
}
+const std::string irc::sepstream::GetRemaining()
+{
+ return std::string(n, tokens.end());
+}
+
bool irc::sepstream::StreamEnd()
{
return ((n + 1) == tokens.end());