• Home
  • Raw
  • Download

Lines Matching refs:xmlPath

719 bool I18nTimeZone::ReadTimeZoneData(const char *xmlPath)  in ReadTimeZoneData()  argument
722 if (xmlPath == nullptr) { in ReadTimeZoneData()
725 xmlDocPtr doc = xmlParseFile(xmlPath); in ReadTimeZoneData()
826 std::string xmlPath; in FindCityDisplayNameFromXml() local
828 xmlPath = DEVICE_CITY_DISPLAYNAME_PATH + locale + ".xml"; in FindCityDisplayNameFromXml()
830 xmlPath = CITY_DISPLAYNAME_PATH + locale + ".xml"; in FindCityDisplayNameFromXml()
832 xmlDocPtr doc = xmlParseFile(xmlPath.c_str()); in FindCityDisplayNameFromXml()
834 HiLog::Error(LABEL, "can't parse city displayname file %{public}s", xmlPath.c_str()); in FindCityDisplayNameFromXml()
840 … HiLog::Error(LABEL, "city displayname file %{public}s has wrong root tag.", xmlPath.c_str()); in FindCityDisplayNameFromXml()
878 std::string xmlPath; in FindCityDisplayNameMap() local
880 xmlPath = DEVICE_CITY_DISPLAYNAME_PATH + locale + ".xml"; in FindCityDisplayNameMap()
882 xmlPath = CITY_DISPLAYNAME_PATH + locale + ".xml"; in FindCityDisplayNameMap()
884 xmlDocPtr doc = xmlParseFile(xmlPath.c_str()); in FindCityDisplayNameMap()
886 HiLog::Error(LABEL, "can't parse city displayname file %{public}s", xmlPath.c_str()); in FindCityDisplayNameMap()
892 … HiLog::Error(LABEL, "city displayname file %{public}s has wrong root tag.", xmlPath.c_str()); in FindCityDisplayNameMap()
935 std::string xmlPath = dirEntry.path(); in GetSupportedLocales() local
936 if (stat(xmlPath.c_str(), &s) != 0) { in GetSupportedLocales()
937 HiLog::Error(LABEL, "city displayname file %{public}s not exist.", xmlPath.c_str()); in GetSupportedLocales()
940 int32_t localeStrLen = static_cast<int32_t>(xmlPath.length()) - static_cast<int32_t>( in GetSupportedLocales()
942 std::string localeStr = xmlPath.substr(displayNamePath.length(), localeStrLen); in GetSupportedLocales()