Lines Matching refs:Taboo

29 const char* Taboo::ROOT_TAG = "taboo";
30 const char* Taboo::ITEM_TAG = "item";
31 const char* Taboo::NAME_TAG = "name";
32 const char* Taboo::VALUE_TAG = "value";
33 std::set<std::string> Taboo::supportedRegions;
34 std::set<std::string> Taboo::supportedLanguages;
35 std::map<std::string, std::string> Taboo::RESOURCES = {};
36 std::mutex Taboo::TABOO_MUTEX;
38 Taboo::Taboo()
42 Taboo::Taboo(const std::string& path) : tabooDataPath(path)
61 Taboo::~Taboo()
65 std::string Taboo::ReplaceCountryName(const std::string& region, const std::string& displayLanguage,
69 HILOG_INFO_I18N("Taboo::ReplaceCountryName Taboo data not exist.");
73 HILOG_INFO_I18N("Taboo::ReplaceCountryName taboo data don't support region %{public}s", region.c_str());
82 HILOG_INFO_I18N("Taboo::ReplaceCountryName language %{public}s fallback failed", displayLanguage.c_str());
96 HILOG_INFO_I18N("Taboo::ReplaceCountryName not find taboo data correspond to region %{public}s",
101 std::string Taboo::ReplaceLanguageName(const std::string& language, const std::string& displayLanguage,
105 HILOG_INFO_I18N("Taboo::ReplaceLanguageName Taboo data not exist.");
109 HILOG_ERROR_I18N("Taboo::ReplaceLanguageName taboo data don't support language %{public}s",
119 HILOG_ERROR_I18N("Taboo::ReplaceLanguageName language %{public}s fallback failed", displayLanguage.c_str());
133 HILOG_ERROR_I18N("Taboo::ReplaceLanguageName not find taboo data correspond to language %{public}s",
138 void Taboo::ParseTabooData(const std::string& path, DataFileType fileType, const std::string& locale)
143 HILOG_ERROR_I18N("Taboo parse taboo data file failed: %{public}s", path.c_str());
149 HILOG_ERROR_I18N("Taboo get root tag from taboo data file failed: %{public}s", path.c_str());
159 HILOG_ERROR_I18N("Taboo get name and value property failed: %{public}s", path.c_str());
180 void Taboo::ProcessTabooConfigData(const std::string& name, const std::string& value)
189 void Taboo::ProcessTabooLocaleData(const std::string& locale, const std::string& name, const std::string& value)
200 void Taboo::SplitValue(const std::string& value, std::set<std::string>& collation)
215 std::vector<std::string> Taboo::QueryKeyFallBack(const std::string& key)
222 std::tuple<std::string, std::string> Taboo::LanguageFallBack(const std::string& language)
243 void Taboo::ReadResourceList()
261 std::string Taboo::GetLanguageFromFileName(const std::string& fileName)