Home
last modified time | relevance | path

Searched refs:locales (Results 1 – 9 of 9) sorted by relevance

/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp79 vector<string> locales; variable
80 locales.push_back("jessie");
81 locales.push_back(locale);
90 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
177 vector<string> locales; variable
178 locales.push_back(locale);
183 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
206 vector<string> locales; variable
207 locales.push_back(locale);
212 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
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_SIZ… in PrepareData()
203 …resourceCount = ConvertUChar(reinterpret_cast<unsigned char*>(locales + GLOBAL_LOCALE_MASK_ITEM_SI… in PrepareData()
209 locales); in PrepareData()
210 I18nFree(static_cast<void *>(locales)); in PrepareData()
[all …]
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DLocaleList.java38 public LocaleList(int startOffset, HashMap<String, Integer> locales, Map<Integer, in LocaleList() argument
41 this.size = locales.size(); in LocaleList()
43 for (Map.Entry<String, Integer> next : locales.entrySet()) { in LocaleList()
DDataFetcher.java256 ArrayList<String> locales = new ArrayList<>(LOCALES.keySet()); in writeLocales() local
257 locales.sort(new Comparator<String>() { in writeLocales()
263 for (String locale : locales) { in writeLocales()
267 jsonObject.put("locales", locales); in writeLocales()
/base/global/i18n_lite/frameworks/i18n/include/
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/resource_management_lite/frameworks/resmgr_lite/src/
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/
DREADME.md34 …he system settings to adapt to the cultural habits of users in different locales. For details, see…
/base/global/i18n/frameworks/intl/src/
Dlocale_config.cpp549 const unordered_set<string> &locales = GetSupportedLocales(); in GetRelatedLocales() local
550 for (string locale : locales) { in GetRelatedLocales()
/base/global/i18n_lite/
DREADME.md40 …he system settings to adapt to the cultural habits of users in different locales. For details, see…
57 …he system settings to adapt to the cultural habits of users in different locales. For details, see…