Lines Matching refs:xmlPath
749 bool I18nTimeZone::ReadTimeZoneData(const char *xmlPath)
752 if (xmlPath == nullptr) {
755 xmlDocPtr doc = xmlParseFile(xmlPath);
847 std::string xmlPath = GetCityDisplayNameXmlPath(locale);
848 xmlDocPtr doc = xmlParseFile(xmlPath.c_str());
850 HILOG_ERROR_I18N("FindCityDisplayNameFromXml: can't parse city displayname: %{public}s", xmlPath.c_str());
857 "FindCityDisplayNameFromXml: city displayname file %{public}s has wrong root tag.", xmlPath.c_str());
910 std::string xmlPath = GetCityDisplayNameXmlPath(locale);
911 xmlDocPtr doc = xmlParseFile(xmlPath.c_str());
913 HILOG_ERROR_I18N("FindCityDisplayNameMap: can't parse city displayname file %{public}s", xmlPath.c_str());
920 "FindCityDisplayNameMap: city displayname file %{public}s has wrong root tag.", xmlPath.c_str());
962 std::string xmlPath = dirEntry.path();
963 if (stat(xmlPath.c_str(), &s) != 0) {
964 HILOG_ERROR_I18N("city displayname file %{public}s not exist.", xmlPath.c_str());
967 int32_t localeStrLen = static_cast<int32_t>(xmlPath.length()) - static_cast<int32_t>(
969 std::string localeStr = xmlPath.substr(displayNamePath.length(), localeStrLen);