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

Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
zhangdd_ewan 2024-04-09 10:54:47 +08:00
parent 38b747f08b
commit 1c189ddd71

View File

@ -156,8 +156,8 @@ std::string StrReplaceAll(std::string& str, const std::string target, const std:
if (replace.empty() || target.compare(replace) == 0) {
return result;
}
while ((pos = str.find(target)) != std::string::npos) {
str.replace(pos, target.length(), replace);
while ((pos = result.find(target)) != std::string::npos) {
result.replace(pos, target.length(), replace);
}
return result;
}