2012-06-29 00:23:19 +08:00
|
|
|
#ifndef __STRING_UTILS_H__
|
|
|
|
#define __STRING_UTILS_H__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
bool StripString(std::string& src);
|
2013-12-25 18:04:44 +08:00
|
|
|
std::set<std::string> SplitString(const std::string& src, const char separator);
|
2012-06-29 00:23:19 +08:00
|
|
|
bool ParseString(const std::string& src, std::string& key, std::string& value);
|
2013-12-25 18:04:44 +08:00
|
|
|
std::vector<std::string> SplitStringVector(const std::string& src, const char separator);
|
2012-06-29 00:23:19 +08:00
|
|
|
|
2013-08-21 21:26:54 +08:00
|
|
|
#endif
|