mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-23 15:10:32 +00:00
时区城市列表不显示繁体中文
Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
parent
38b747f08b
commit
1c189ddd71
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user