#ifndef WEBCC_STRING_H_ #define WEBCC_STRING_H_ #include #include #include #include namespace webcc { namespace string { // Get a randomly generated string with the given length. std::string RandomString(std::size_t length); // TODO: What about std::wstring? bool EqualsNoCase(const std::string& str1, const std::string& str2); template void Split(const std::string& str, Container& cont) { std::istringstream iss(str); std::copy(std::istream_iterator(iss), std::istream_iterator(), std::back_inserter(cont)); } } // namespace string } // namespace webcc #endif // WEBCC_STRING_H_