Home
last modified time | relevance | path

Searched refs:ResLocale (Results 1 - 17 of 17) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_locale.cpp34 LocaleInfo *ResLocale::defaultLocale_ = nullptr;
35 Lock ResLocale::lock_;
37 ResLocale::ResLocale() : language_(nullptr), region_(nullptr), script_(nullptr) in ResLocale() function in OHOS::Global::Resource::ResLocale
41 RState ResLocale::SetLanguage(const char *language, size_t len) in SetLanguage()
63 RState ResLocale::SetRegion(const char *region, size_t len) in SetRegion()
85 RState ResLocale::SetScript(const char *script, size_t len) in SetScript()
111 RState ResLocale::Init(const char *language, size_t languageLen, const char *script, size_t scriptLen, in Init()
129 RState ResLocale::CopyFromLocaleInfo(const LocaleInfo *other) in CopyFromLocaleInfo()
138 RState ResLocale
[all...]
H A Dlocale_matcher.cpp59 uint64_t SearchParentLocale(uint64_t encodedLocale, const ResLocale *request) in SearchParentLocale()
87 void FindTrackPath(const ResLocale *request, size_t len, uint64_t encodedLocale, uint64_t *result) in FindTrackPath()
238 int8_t CompareRegionWhenQaag(const ResLocale *current, in CompareRegionWhenQaag()
239 const ResLocale *other, in CompareRegionWhenQaag()
240 const ResLocale *request) in CompareRegionWhenQaag()
266 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage()
296 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript()
335 int8_t AlphabeticallyCompare(const ResLocale *curren
[all...]
H A Dres_config_impl.cpp50 ResLocale *resLocale = in SetLocaleInfo()
51 ResLocale::BuildFromParts(language, script, region, state); in SetLocaleInfo()
98 const ResLocale *ResConfigImpl::GetResLocale() const in GetResLocale()
142 ResLocale *temp = new(std::nothrow) ResLocale; in CopyLocale()
/base/global/resource_management/frameworks/resmgr/src/
H A Dres_locale.cpp36 Locale *ResLocale::defaultLocale_ = nullptr;
38 std::mutex ResLocale::mutex_;
40 ResLocale::ResLocale() : language_(nullptr), region_(nullptr), script_(nullptr) in ResLocale() function in OHOS::Global::Resource::ResLocale
44 RState ResLocale::SetLanguage(const char *language, size_t len) in SetLanguage()
66 RState ResLocale::SetRegion(const char *region, size_t len) in SetRegion()
88 RState ResLocale::SetScript(const char *script, size_t len) in SetScript()
114 RState ResLocale::Init(const char *language, size_t languageLen, const char *script, size_t scriptLen, in Init()
133 RState ResLocale::CopyFromLocaleInfo(const Locale *other) in CopyFromLocaleInfo()
143 RState ResLocale
[all...]
H A Dlocale_matcher.cpp60 uint64_t SearchParentLocale(uint64_t encodedLocale, const ResLocale *request) in SearchParentLocale()
88 void FindTrackPath(const ResLocale *request, size_t len, uint64_t encodedLocale, uint64_t *result) in FindTrackPath()
241 int8_t CompareRegionWhenQaag(const ResLocale *current, in CompareRegionWhenQaag()
242 const ResLocale *other, in CompareRegionWhenQaag()
243 const ResLocale *request) in CompareRegionWhenQaag()
269 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage()
298 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript()
337 int8_t AlphabeticallyCompare(const ResLocale *curren
[all...]
H A Dres_config_impl.cpp89 const char *region, ResLocale **resLocale) in BuildResLocale()
92 ResLocale *temp = ResLocale::BuildFromParts(language, script, region, state); in BuildResLocale()
108 RState ResConfigImpl::BuildLocaleInfo(const ResLocale *resLocale, Locale **localeInfo) in BuildLocaleInfo()
221 const ResLocale *ResConfigImpl::GetResPreferredLocale() const in GetResPreferredLocale()
237 const ResLocale *ResConfigImpl::GetResLocale() const in GetResLocale()
288 bool ResConfigImpl::CopyLocale(Locale **currentLocaleInfo, ResLocale **currentResLocale, in CopyLocale()
314 ResLocale *temp = new(std::nothrow) ResLocale; in CopyLocale()
/base/global/resource_management/frameworks/resmgr/include/
H A Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
25 const ResLocale *other,
26 const ResLocale *request);
29 * Whether the current ResLocale same to the other ResLocale
30 * @param current the current ResLocale
31 * @param other the other ResLocale
32 * @return true if the current ResLocale same to the other ResLocale, else false
34 static bool Match(const ResLocale *curren
[all...]
H A Dres_locale.h42 class ResLocale { class
50 ResLocale();
61 * Copy from other ResLocale to this
62 * @param other the other ResLocale copy to this ResLocale
63 * @return SUCCESS if copy other ResLocale success, else ERROR
65 RState Copy(const ResLocale *other);
79 static ResLocale *BuildFromString(const char *bcp47String, char sep, RState &rState);
89 static ResLocale *BuildFromParts(const char *language, const char *script, const char *region, RState &rState);
91 ~ResLocale();
[all...]
H A Dres_config_impl.h113 const ResLocale *GetResPreferredLocale() const;
120 const ResLocale *GetResLocale() const;
221 bool CopyLocale(Locale **currentLocaleInfo, ResLocale **currentResLocale,
244 RState BuildResLocale(const char *language, const char *script, const char *region, ResLocale **resLocale);
246 RState BuildLocaleInfo(const ResLocale *resLocale, Locale **localeInfo);
249 ResLocale *resLocale_;
259 ResLocale *resPreferredLocale_;
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
25 const ResLocale *other,
26 const ResLocale *request);
29 * Whether the current ResLocale same to the other ResLocale
30 * @param current the current ResLocale
31 * @param other the other ResLocale
32 * @return true if the current ResLocale same to the other ResLocale, else false
34 static bool Match(const ResLocale *curren
[all...]
H A Dres_locale.h38 class ResLocale { class
46 ResLocale();
56 * Copy from other ResLocale to this
57 * @param other the other ResLocale copy to this ResLocale
58 * @return SUCCESS if copy other ResLocale success, else ERROR
60 RState Copy(const ResLocale *other);
73 static ResLocale *BuildFromString(const char *bcp47String, char sep, RState &rState);
83 static ResLocale *BuildFromParts(const char *language, const char *script, const char *region, RState &rState);
85 ~ResLocale();
[all...]
H A Dres_config_impl.h76 const ResLocale *GetResLocale() const;
117 ResLocale *resLocale_;
/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/
H A Dutils.h37 static uint16_t EncodeLanguageByResLocale(const ResLocale *locale);
41 static uint32_t EncodeScriptByResLocale(const ResLocale *locale);
47 static uint16_t EncodeRegionByResLocale(const ResLocale *locale);
/base/global/resource_management/frameworks/resmgr/include/utils/
H A Dutils.h74 static uint16_t EncodeLanguageByResLocale(const ResLocale *locale);
78 static uint32_t EncodeScriptByResLocale(const ResLocale *locale);
84 static uint16_t EncodeRegionByResLocale(const ResLocale *locale);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
H A Dutils.cpp122 uint16_t Utils::EncodeRegionByResLocale(const ResLocale *locale) in EncodeRegionByResLocale()
130 uint16_t Utils::EncodeLanguageByResLocale(const ResLocale *locale) in EncodeLanguageByResLocale()
138 uint32_t Utils::EncodeScriptByResLocale(const ResLocale *locale) in EncodeScriptByResLocale()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dutils.cpp235 uint16_t Utils::EncodeRegionByResLocale(const ResLocale *locale) in EncodeRegionByResLocale()
243 uint16_t Utils::EncodeLanguageByResLocale(const ResLocale *locale) in EncodeLanguageByResLocale()
251 uint32_t Utils::EncodeScriptByResLocale(const ResLocale *locale) in EncodeScriptByResLocale()
H A Dstring_utils.cpp180 const ResLocale *resLocale = resConfig.GetResLocale(); in LocalizeNumber()

Completed in 8 milliseconds