//////////////////////////////////////////////////////////////////// #ifndef __RAT_StringUtil__ #define __RAT_StringUtil__ #include #include namespace RAT { // strips leading and trailing characters from s. This function by // Glenn Horton-Smith. std::string strip(const std::string &s, const std::string &stripchars); // strip spaces, tabs, and quotation marks std::string strip_default(const std::string &s); void pop_first_word(std::string in, std::string &first, std::string &rest); std::string xor_encdec(const std::string &toEncrypt, const std::string &key = "SNO+"); } // namespace RAT #endif