Home
last modified time | relevance | path

Searched refs:encodedLocale (Results 1 - 7 of 7) sorted by relevance

/base/global/i18n/frameworks/intl/src/
H A Dlocale_matcher.cpp182 void LocaleMatcher::FindTrackPath(const LocaleInfo *request, size_t len, uint64_t encodedLocale, uint64_t *result) in FindTrackPath() argument
184 uint64_t currentEncodedLocale = encodedLocale; in FindTrackPath()
196 uint64_t LocaleMatcher::SearchParentLocale(uint64_t encodedLocale, const LocaleInfo *request) in SearchParentLocale() argument
198 uint64_t tempEncodedLocale = encodedLocale; in SearchParentLocale()
200 tempEncodedLocale = AddScript(encodedLocale, LocaleMatcher::HANT_ENCODE); in SearchParentLocale()
205 if (IsContainRegion(encodedLocale)) { in SearchParentLocale()
211 return ClearRegion(encodedLocale); in SearchParentLocale()
216 uint64_t LocaleMatcher::AddScript(uint64_t encodedLocale, uint32_t encodedScript) in AddScript() argument
219 return (encodedLocale | ((static_cast<uint64_t>(encodedScript) & 0x00000000FFFFFFFFLU) << 16)); in AddScript()
222 bool LocaleMatcher::IsContainRegion(uint64_t encodedLocale) in IsContainRegion() argument
227 ClearRegion(uint64_t encodedLocale) ClearRegion() argument
311 uint64_t encodedLocale = LocaleUtil::EncodeLocale(language, script, nullptr); FindDefaultRegionEncode() local
365 SearchTrackPathDistance(const uint64_t *paths, size_t len, uint64_t encodedLocale) SearchTrackPathDistance() argument
441 uint64_t encodedLocale = LocaleUtil::EncodeLocale(language, script, region); IsDefaultLocale() local
520 uint64_t encodedLocale = LocaleUtil::EncodeLocale(language, nullptr, region); FindDefaultScriptEncode() local
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dlocale_matcher.cpp37 bool IsContainRegion(uint64_t encodedLocale) in IsContainRegion() argument
39 return (encodedLocale & 0x000000000000FFFFLU) != 0; in IsContainRegion()
42 uint64_t ClearRegion(uint64_t encodedLocale) in ClearRegion() argument
44 return encodedLocale & 0xFFFFFFFFFFFF0000LU; in ClearRegion()
47 uint64_t AddScript(uint64_t encodedLocale, uint32_t encodedScript) in AddScript() argument
49 return (encodedLocale | ((static_cast<uint64_t>(encodedScript) & 0x00000000FFFFFFFFLU) << 16)); in AddScript()
56 * @param encodedLocale locale encode
59 uint64_t SearchParentLocale(uint64_t encodedLocale, const ResLocale *request) in SearchParentLocale() argument
61 uint64_t tempEncodedLocale = encodedLocale; in SearchParentLocale()
63 tempEncodedLocale = AddScript(encodedLocale, LocaleMatche in SearchParentLocale()
87 FindTrackPath(const ResLocale *request, size_t len, uint64_t encodedLocale, uint64_t *result) FindTrackPath() argument
109 SearchTrackPathDistance(const uint64_t *paths, size_t len, uint64_t encodedLocale) SearchTrackPathDistance() argument
134 uint64_t encodedLocale = Utils::EncodeLocale(language, script, region); IsDefaultLocale() local
158 uint64_t encodedLocale = Utils::EncodeLocale(language, nullptr, region); FindDefaultScriptEncode() local
188 uint64_t encodedLocale = Utils::EncodeLocale(language, script, nullptr); FindDefaultRegionEncode() local
[all...]
H A Dres_config_impl.cpp131 uint64_t encodedLocale = Utils::EncodeLocale( in CopyLocale() local
137 if (encodedLocale != otherEncodedLocale) { in CopyLocale()
/base/global/resource_management/frameworks/resmgr/src/
H A Dlocale_matcher.cpp37 bool IsContainRegion(uint64_t encodedLocale) in IsContainRegion() argument
39 return (encodedLocale & 0x000000000000FFFFLU) != 0; in IsContainRegion()
42 uint64_t ClearRegion(uint64_t encodedLocale) in ClearRegion() argument
44 return encodedLocale & 0xFFFFFFFFFFFF0000LU; in ClearRegion()
47 uint64_t AddScript(uint64_t encodedLocale, uint32_t encodedScript) in AddScript() argument
49 return (encodedLocale | ((static_cast<uint64_t>(encodedScript) & 0x00000000FFFFFFFFLU) << in AddScript()
57 * @param encodedLocale locale encode
60 uint64_t SearchParentLocale(uint64_t encodedLocale, const ResLocale *request) in SearchParentLocale() argument
62 uint64_t tempEncodedLocale = encodedLocale; in SearchParentLocale()
64 tempEncodedLocale = AddScript(encodedLocale, LocaleMatche in SearchParentLocale()
88 FindTrackPath(const ResLocale *request, size_t len, uint64_t encodedLocale, uint64_t *result) FindTrackPath() argument
110 SearchTrackPathDistance(const uint64_t *paths, size_t len, uint64_t encodedLocale) SearchTrackPathDistance() argument
135 uint64_t encodedLocale = Utils::EncodeLocale(language, script, region); IsDefaultLocale() local
159 uint64_t encodedLocale = Utils::EncodeLocale(language, nullptr, region); FindDefaultScriptEncode() local
191 uint64_t encodedLocale = Utils::EncodeLocale(language, script, nullptr); FindDefaultRegionEncode() local
[all...]
H A Dres_config_impl.cpp303 uint64_t encodedLocale = Utils::EncodeLocale( in CopyLocale() local
309 if (encodedLocale != otherEncodedLocale) { in CopyLocale()
/base/global/i18n/interfaces/native/inner_api/i18n/include/
H A Dlocale_matcher.h80 * @param encodedLocale Represents the locale to be fallback.
83 static void FindTrackPath(const LocaleInfo *request, size_t len, uint64_t encodedLocale, uint64_t *result);
89 * @param encodedLocale locale encode
92 static uint64_t SearchParentLocale(uint64_t encodedLocale, const LocaleInfo *request);
93 static uint64_t AddScript(uint64_t encodedLocale, uint32_t encodedScript);
94 static bool IsContainRegion(uint64_t encodedLocale);
95 static uint64_t ClearRegion(uint64_t encodedLocale);
123 * @brief find encodedLocale pos is in trackpath list.
127 * @param encodedLocale
130 static int8_t SearchTrackPathDistance(const uint64_t *paths, size_t len, uint64_t encodedLocale);
[all...]
/base/global/i18n/frameworks/intl/test/unittest/
H A Di18n_test.cpp1275 uint16_t encodedLocale = LocaleUtil::EncodeLocale(locale.GetLanguage().c_str(), locale.GetScript().c_str(), in HWTEST_F() local
1277 EXPECT_EQ(encodedLocale, 17230); in HWTEST_F()

Completed in 7 milliseconds