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
5cb9931996
commit
38b747f08b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user