Home
last modified time | relevance | path

Searched refs:resLocale (Results 1 - 8 of 8) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
H A Dres_locale.cpp200 ResLocale *resLocale = new(std::nothrow) ResLocale; in CreateResLocale() local
201 if (resLocale == nullptr) { in CreateResLocale()
205 rState = resLocale->Init(r.tempLanguage, r.languageTagLen, r.tempScript, r.scriptTagLen, in CreateResLocale()
208 return resLocale; in CreateResLocale()
210 delete resLocale; in CreateResLocale()
314 ResLocale *resLocale = new(std::nothrow) ResLocale; in BuildFromParts() local
315 if (resLocale == nullptr) { in BuildFromParts()
319 rState = resLocale->Init(tempLanguage, languageTagLen, tempScript, scriptTagLen, tempRegion, regionTagLen); in BuildFromParts()
321 return resLocale; in BuildFromParts()
323 delete resLocale; in BuildFromParts()
369 ResLocale *resLocale = ResLocale::BuildFromString(str, sep, rState); BuildFromString() local
446 ResLocale *resLocale = ResLocale::BuildFromString(iter->c_str(), DASH_SEP, state); FindAndSort() local
[all...]
H A Dres_config_impl.cpp89 const char *region, ResLocale **resLocale) in BuildResLocale()
103 delete *resLocale; in BuildResLocale()
104 *resLocale = temp; in BuildResLocale()
108 RState ResConfigImpl::BuildLocaleInfo(const ResLocale *resLocale, Locale **localeInfo) in BuildLocaleInfo() argument
111 Locale temp = icu::LocaleBuilder().setLanguage(resLocale->GetLanguage()) in BuildLocaleInfo()
112 .setRegion(resLocale->GetRegion()).setScript(resLocale->GetScript()).build(errCode); in BuildLocaleInfo()
88 BuildResLocale(const char *language, const char *script, const char *region, ResLocale **resLocale) BuildResLocale() argument
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_locale.cpp195 ResLocale *resLocale = new(std::nothrow) ResLocale; in CreateResLocale() local
196 if (resLocale == nullptr) { in CreateResLocale()
200 rState = resLocale->Init(r.tempLanguage, r.languageTagLen, r.tempScript, r.scriptTagLen, in CreateResLocale()
203 return resLocale; in CreateResLocale()
205 delete resLocale; in CreateResLocale()
315 ResLocale *resLocale = new(std::nothrow) ResLocale; in BuildFromParts() local
316 if (resLocale == nullptr) { in BuildFromParts()
320 rState = resLocale->Init(tempLanguage, languageTagLen, tempScript, scriptTagLen, tempRegion, regionTagLen); in BuildFromParts()
322 return resLocale; in BuildFromParts()
324 delete resLocale; in BuildFromParts()
367 ResLocale *resLocale = ResLocale::BuildFromString(str, sep, rState); BuildFromString() local
437 ResLocale *resLocale = ResLocale::BuildFromString(iter->c_str(), DASH_SEP, state); FindAndSort() local
[all...]
H A Dres_config_impl.cpp50 ResLocale *resLocale = in SetLocaleInfo() local
55 if (LocaleMatcher::Normalize(resLocale)) { in SetLocaleInfo()
58 delete resLocale; in SetLocaleInfo()
62 LocaleInfo *tempLocale = new(std::nothrow) LocaleInfo(resLocale->GetLanguage(), in SetLocaleInfo()
63 resLocale->GetScript(), resLocale->GetRegion()); in SetLocaleInfo()
66 delete resLocale; in SetLocaleInfo()
71 resLocale_ = resLocale; in SetLocaleInfo()
/base/global/resource_management/frameworks/resmgr/include/
H A Dres_config_impl.h244 RState BuildResLocale(const char *language, const char *script, const char *region, ResLocale **resLocale);
246 RState BuildLocaleInfo(const ResLocale *resLocale, Locale **localeInfo);
H A Dlocale_matcher.h61 * Get the resLocale script
62 * @param resLocale the resLocale information
63 * @return true if get the resLocale script, else false
65 static bool Normalize(ResLocale *resLocale);
68 * Whether the current resLocale more specific than target resLocale
69 * @param current the current resLocale
70 * @param target the target resLocale
71 * @return 0 means current resLocale sam
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dlocale_matcher.h61 * Get the resLocale script
62 * @param resLocale the resLocale infomation
63 * @return true if get the resLocale script, else false
65 static bool Normalize(ResLocale *resLocale);
68 * Whether the current resLocale more specific than target resLocale
69 * @param current the current resLocale
70 * @param target the target resLocale
71 * @return 0 means current resLocale sam
[all...]
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dstring_utils.cpp180 const ResLocale *resLocale = resConfig.GetResLocale(); in LocalizeNumber() local
181 if (resLocale == nullptr) { in LocalizeNumber()
182 RESMGR_HILOGW(RESMGR_TAG, "LocalizeNumber resLocale is null"); in LocalizeNumber()
187 const char *language = resLocale->GetLanguage(); in LocalizeNumber()
195 const char *script = resLocale->GetScript(); in LocalizeNumber()
200 const char *region = resLocale->GetRegion(); in LocalizeNumber()

Completed in 6 milliseconds