/** Fetch the next token from the stream
* @return The next token is returned, or an empty string if none remain
*/
- const std::string GetToken();
+ bool GetToken(std::string &token);
};
/** irc::sepstream allows for splitting token seperated lists.
*/
std::string operator+ (std::string& leftval, irc::string& rightval);
irc::string operator+ (irc::string& leftval, std::string& rightval);
-bool operator== (std::string& leftval, irc::string& rightval);
-bool operator== (irc::string& leftval, std::string& rightval);
+bool operator== (const std::string& leftval, const irc::string& rightval);
+bool operator== (const irc::string& leftval, const std::string& rightval);
std::string assign(const irc::string &other);
irc::string assign(const std::string &other);
+std::string& trim(std::string &str);
namespace nspace
{