时区城市列表不显示繁体中文

Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
zhangdd_ewan 2024-04-09 10:30:49 +08:00
parent 5cb9931996
commit 38b747f08b

View File

@ -152,9 +152,9 @@ std::string PseudoLocalizationProcessor(const std::string &input, bool ifEnforce
std::string StrReplaceAll(std::string& str, const std::string target, const std::string replace)
{
std::string::size_type pos = 0;
std::string result = src;
std::string result = str;
if (replace.empty() || target.compare(replace) == 0) {
return;
return result;
}
while ((pos = str.find(target)) != std::string::npos) {
str.replace(pos, target.length(), replace);