Searched refs:g_resConfig (Results 1 – 1 of 1) sorted by relevance
28 static ResConfigImpl *g_resConfig = nullptr; variable43 if (g_resConfig == nullptr) { in InitResConfig()44 g_resConfig = new (std::nothrow) ResConfigImpl; in InitResConfig()45 if (g_resConfig == nullptr) { in InitResConfig()78 g_resConfig->SetLocaleInfo(language.c_str(), script.c_str(), region.c_str()); in GLOBAL_ConfigLanguage()82 g_resConfig->SetLocaleInfo(language.c_str(), nullptr, region.c_str()); in GLOBAL_ConfigLanguage()85 g_resConfig->SetLocaleInfo(appLanguage, nullptr, nullptr); in GLOBAL_ConfigLanguage()91 if (g_resConfig == nullptr || g_resConfig->GetLocaleInfo() == nullptr in GLOBAL_GetLanguage()92 || g_resConfig->GetLocaleInfo()->GetLanguage() == nullptr) { in GLOBAL_GetLanguage()98 if (strncpy_s(language, len, g_resConfig->GetLocaleInfo()->GetLanguage(), in GLOBAL_GetLanguage()[all …]