/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | res_locale.cpp | 34 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 scriptL… in Init() 129 RState ResLocale::CopyFromLocaleInfo(const LocaleInfo *other) in CopyFromLocaleInfo() 138 RState ResLocale::Copy(const ResLocale *other) in Copy() 147 const char *ResLocale::GetLanguage() const in GetLanguage() [all …]
|
D | locale_matcher.cpp | 59 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 *current, in AlphabeticallyCompare() 337 const ResLocale *other, in AlphabeticallyCompare() 371 const ResLocale *current, in CompareWhenRegionIsNull() [all …]
|
D | res_config_impl.cpp | 50 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/ |
D | res_locale.cpp | 37 Locale *ResLocale::defaultLocale_ = nullptr; 39 Lock ResLocale::lock_; 41 ResLocale::ResLocale() : language_(nullptr), region_(nullptr), script_(nullptr) in ResLocale() function in OHOS::Global::Resource::ResLocale 45 RState ResLocale::SetLanguage(const char *language, size_t len) in SetLanguage() 67 RState ResLocale::SetRegion(const char *region, size_t len) in SetRegion() 89 RState ResLocale::SetScript(const char *script, size_t len) in SetScript() 115 RState ResLocale::Init(const char *language, size_t languageLen, const char *script, size_t scriptL… in Init() 134 RState ResLocale::CopyFromLocaleInfo(const Locale *other) in CopyFromLocaleInfo() 144 RState ResLocale::Copy(const ResLocale *other) in Copy() 153 const char *ResLocale::GetLanguage() const in GetLanguage() [all …]
|
D | locale_matcher.cpp | 59 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() 295 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript() 334 int8_t AlphabeticallyCompare(const ResLocale *current, in AlphabeticallyCompare() 336 const ResLocale *other, in AlphabeticallyCompare() 370 const ResLocale *current, in CompareWhenRegionIsNull() [all …]
|
D | res_config_impl.cpp | 78 ResLocale *resLocale = in SetLocaleInfo() 79 ResLocale::BuildFromParts(language, script, region, state); in SetLocaleInfo() 167 const ResLocale *ResConfigImpl::GetResLocale() const in GetResLocale() 232 ResLocale *temp = new(std::nothrow) ResLocale; in CopyLocale()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | locale_matcher.h | 24 static int8_t IsMoreSuitable(const ResLocale *current, 25 const ResLocale *other, 26 const ResLocale *request); 34 static bool Match(const ResLocale *current, const ResLocale *other); 65 static bool Normalize(ResLocale *resLocale); 74 static int8_t IsMoreSpecificThan(const ResLocale *current, const ResLocale *target);
|
D | res_locale.h | 38 class ResLocale { 46 ResLocale(); 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, RSt… 85 ~ResLocale(); 104 static ResLocale *DoParse(const char *bcp47String, char sep, RState &rState); 106 static ResLocale *CreateResLocale(ParseResult &parseResult, RState &rState);
|
D | res_config_impl.h | 76 const ResLocale *GetResLocale() const; 117 ResLocale *resLocale_;
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | locale_matcher.h | 24 static int8_t IsMoreSuitable(const ResLocale *current, 25 const ResLocale *other, 26 const ResLocale *request); 34 static bool Match(const ResLocale *current, const ResLocale *other); 65 static bool Normalize(ResLocale *resLocale); 74 static int8_t IsMoreSpecificThan(const ResLocale *current, const ResLocale *target);
|
D | res_locale.h | 42 class ResLocale { 50 ResLocale(); 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, RSt… 91 ~ResLocale(); 110 static ResLocale *DoParse(const char *bcp47String, char sep, RState &rState); 112 static ResLocale *CreateResLocale(ParseResult &parseResult, RState &rState);
|
D | res_config_impl.h | 94 const ResLocale *GetResLocale() const; 176 ResLocale *resLocale_;
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/ |
D | utils.h | 37 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/ |
D | utils.h | 38 static uint16_t EncodeLanguageByResLocale(const ResLocale *locale); 42 static uint32_t EncodeScriptByResLocale(const ResLocale *locale); 48 static uint16_t EncodeRegionByResLocale(const ResLocale *locale);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | utils.cpp | 122 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/ |
D | utils.cpp | 233 uint16_t Utils::EncodeRegionByResLocale(const ResLocale *locale) in EncodeRegionByResLocale() 241 uint16_t Utils::EncodeLanguageByResLocale(const ResLocale *locale) in EncodeLanguageByResLocale() 249 uint32_t Utils::EncodeScriptByResLocale(const ResLocale *locale) in EncodeScriptByResLocale()
|