Home
last modified time | relevance | path

Searched refs:locales (Results 1 - 10 of 10) sorted by relevance

/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test.cpp142 vector<string> locales; in HWTEST_F() local
143 locales.push_back("jessie"); in HWTEST_F()
144 locales.push_back(locale); in HWTEST_F()
153 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); in HWTEST_F()
240 vector<string> locales; in HWTEST_F() local
241 locales.push_back(locale); in HWTEST_F()
250 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); in HWTEST_F()
273 vector<string> locales; in HWTEST_F() local
274 locales.push_back(locale); in HWTEST_F()
279 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, option in HWTEST_F()
304 vector<string> locales; HWTEST_F() local
339 vector<string> locales; HWTEST_F() local
370 vector<string> locales; HWTEST_F() local
398 vector<string> locales; HWTEST_F() local
438 vector<string> locales; HWTEST_F() local
463 vector<string> locales; HWTEST_F() local
491 vector<string> locales; HWTEST_F() local
543 vector<string> locales; HWTEST_F() local
566 vector<string> locales; HWTEST_F() local
589 vector<string> locales; HWTEST_F() local
614 vector<string> locales; HWTEST_F() local
669 vector<string> locales; HWTEST_F() local
716 vector<string> locales; HWTEST_F() local
767 vector<string> locales; HWTEST_F() local
816 vector<string> locales; HWTEST_F() local
855 vector<string> locales; HWTEST_F() local
884 vector<string> locales; HWTEST_F() local
922 vector<string> locales; HWTEST_F() local
962 vector<string> locales; HWTEST_F() local
999 vector<string> locales; HWTEST_F() local
1049 vector<string> locales; HWTEST_F() local
1086 vector<string> locales; HWTEST_F() local
1137 vector<string> locales; HWTEST_F() local
1185 vector<string> locales; HWTEST_F() local
1224 vector<string> locales; HWTEST_F() local
1251 vector<string> locales; HWTEST_F() local
1306 vector<string> locales; HWTEST_F() local
1362 vector<string> locales; HWTEST_F() local
1410 vector<string> locales; HWTEST_F() local
1456 vector<string> locales; HWTEST_F() local
1502 vector<string> locales; HWTEST_F() local
1526 vector<string> locales; HWTEST_F() local
1581 vector<string> locales; HWTEST_F() local
1635 vector<string> locales; HWTEST_F() local
1690 vector<string> locales; HWTEST_F() local
1745 vector<string> locales; HWTEST_F() local
1800 vector<string> locales; HWTEST_F() local
1851 vector<string> locales; HWTEST_F() local
[all...]
H A Dintl_number_format_test.cpp44 vector<string> locales{locale}; in HWTEST_F()
56 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); in HWTEST_F()
74 vector<string> locales{locale}; in HWTEST_F()
86 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); in HWTEST_F()
104 vector<string> locales{locale}; in HWTEST_F()
116 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); in HWTEST_F()
134 vector<string> locales{locale}; in HWTEST_F()
146 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, options); in HWTEST_F()
164 vector<string> locales{locale}; in HWTEST_F()
176 std::unique_ptr<NumberFormat> numFmt = std::make_unique<NumberFormat>(locales, option in HWTEST_F()
[all...]
H A Dintl_test_extent.cpp497 vector<string> locales; in HWTEST_F() local
498 locales.push_back(locale); in HWTEST_F()
502 NumberFormat *numFmt = new (std::nothrow) NumberFormat(locales, options); in HWTEST_F()
609 vector<string> locales; in HWTEST_F() local
610 locales.push_back("en-GB"); in HWTEST_F()
620 NumberFormat *unitFormatter = new NumberFormat(locales, unitOptions); in HWTEST_F()
626 NumberFormat *currencyFormatter = new NumberFormat(locales, currencyOptions); in HWTEST_F()
651 vector<string> locales; in HWTEST_F() local
652 locales.push_back("fr-FR"); in HWTEST_F()
659 RelativeTimeFormat *formatter = new RelativeTimeFormat(locales, option in HWTEST_F()
683 vector<string> locales; HWTEST_F() local
732 vector<string> locales; HWTEST_F() local
784 vector<string> locales; HWTEST_F() local
830 std::vector<std::string> locales; HWTEST_F() local
860 std::vector<std::string> locales; HWTEST_F() local
890 std::vector<std::string> locales; HWTEST_F() local
[all...]
/base/global/i18n_lite/frameworks/i18n/src/
H A Ddata_resource.cpp186 char *locales = reinterpret_cast<char *>(I18nMalloc(localeSize)); in PrepareData() local
187 if (locales == nullptr) { in PrepareData()
190 int32_t readSize = read(infile, locales, localeSize); in PrepareData()
192 I18nFree(static_cast<void *>(locales)); in PrepareData()
195 int32_t localeIndex = BinarySearchLocale(localeMask, reinterpret_cast<unsigned char*>(locales)); in PrepareData()
198 GetFallbackAndDefaultLocaleIndex(fallbackLocaleIndex, defaultLocaleIndex, locales); in PrepareData()
201 configOffset = ConvertUChar(reinterpret_cast<unsigned char*>(locales + GLOBAL_LOCALE_MASK_ITEM_SIZE * in PrepareData()
203 resourceCount = ConvertUChar(reinterpret_cast<unsigned char*>(locales + GLOBAL_LOCALE_MASK_ITEM_SIZE * in PrepareData()
209 locales); in PrepareData()
210 I18nFree(static_cast<void *>(locales)); in PrepareData()
233 GetFallbackAndDefaultLocaleIndex(int32_t &fallbackLocaleIndex, int32_t &defaultLocaleIndex, char *locales) GetFallbackAndDefaultLocaleIndex() argument
244 GetFallbackAndDefaultInfo(const int32_t &fallbackLocaleIndex, const int32_t &defaultLocaleIndex, uint32_t &fallbackConfigOffset, uint32_t &defaultConfigOffset, char* locales) GetFallbackAndDefaultInfo() argument
443 BinarySearchLocale(const uint32_t mask, unsigned char *locales) BinarySearchLocale() argument
[all...]
/base/global/i18n_lite/frameworks/i18n/include/
H A Ddata_resource.h110 int32_t BinarySearchLocale(const uint32_t mask, unsigned char *locales);
120 char *locales);
122 uint32_t &fallbackConfigOffset, uint32_t &defaultConfigOffset, char *locales);
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
H A DLocaleList.java39 * @param locales locale string and it's key in localeConfigs mappings
43 public LocaleList(int startOffset, HashMap<String, Integer> locales, Map<Integer, in LocaleList() argument
46 this.size = locales.size(); in LocaleList()
48 for (Map.Entry<String, Integer> next : locales.entrySet()) { in LocaleList()
H A DDataFetcher.java86 * Add all required locales from locale.txt and fetch its related data.
90 new File(MeasureFormatPatternFetcher.class.getResource("/resource/locales.txt").toURI())), in addFetchers()
184 * validLocales keep track of how many locales will be available in dat file.
257 ArrayList<String> locales = new ArrayList<>(LOCALES.keySet()); in writeLocales()
258 locales.sort(new Comparator<String>() { in writeLocales()
264 for (String locale : locales) { in writeLocales()
268 jsonObject.put("locales", locales); in writeLocales()
271 SEP + "locales.json"), StandardCharsets.UTF_8)) { in writeLocales()
276 LOG.log(Level.SEVERE, "Write locales in writeLocales()
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dglobal.c209 char *locales[] = {tempLocale, ""}; in GLOBAL_GetValueById() local
211 if (GLOBAL_GetValueByIdInternal(id, path, locales[i], value) == MC_SUCCESS) { in GLOBAL_GetValueById()
280 char *locales[] = {tempLocale, ""}; in GLOBAL_GetValueByName() local
282 if (GLOBAL_GetValueByNameInternal(name, path, locales[i], value) == MC_SUCCESS) { in GLOBAL_GetValueByName()
/base/global/i18n/frameworks/intl/src/
H A Dnumber_format.cpp146 std::vector<std::string> locales = { locale }; in CreateRelativeTimeFormat() local
147 relativeTimeFormat = std::make_unique<RelativeTimeFormat>(locales, in CreateRelativeTimeFormat()
H A Dlocale_config.cpp491 const unordered_set<string> &locales = GetSupportedLocales(); in GetRelatedLocales() local
492 for (string locale : locales) { in GetRelatedLocales()

Completed in 12 milliseconds