compile:修正linux编译通过。
This commit is contained in:
@@ -77,6 +77,14 @@ std::string CUtil::utf8_to_gbk(const std::string& utf8_str)
|
||||
|
||||
return gbk_str;
|
||||
}
|
||||
#else
|
||||
std::string CUtil::utf8_to_gbk(const std::string& utf8_str)
|
||||
{
|
||||
return utf8_str;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
std::vector<std::string> CUtil::splitString(const std::string& input, const std::string& delimiter)
|
||||
{
|
||||
std::vector<std::string> tokens;
|
||||
@@ -94,9 +102,4 @@ std::vector<std::string> CUtil::splitString(const std::string& input, const std:
|
||||
|
||||
return tokens;
|
||||
}
|
||||
#else
|
||||
std::string CUtil::utf8_to_gbk(const std::string& utf8_str)
|
||||
{
|
||||
return utf8_str;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user