Lines Matching refs:locale
91 Locale *locale; member
161 if (param[5].locale == NULL) { in ResourceBundleTest()
162 param[0].locale = new Locale("root"); in ResourceBundleTest()
163 param[1].locale = new Locale("te"); in ResourceBundleTest()
164 param[2].locale = new Locale("te", "IN"); in ResourceBundleTest()
165 param[3].locale = new Locale("te", "NE"); in ResourceBundleTest()
166 param[4].locale = new Locale("te", "IN", "NE"); in ResourceBundleTest()
167 param[5].locale = new Locale("ne"); in ResourceBundleTest()
173 if (param[5].locale) { in ~ResourceBundleTest()
176 delete param[idx].locale; in ~ResourceBundleTest()
177 param[idx].locale = NULL; in ~ResourceBundleTest()
233 Locale locale("te", "IN"); in TestConstruction() local
249 ResourceBundle test2(testdatapath, locale, err); in TestConstruction()
332 ResourceBundle theBundle( testdatapath, *param[i].locale, status); in testTag()
491 const char* locale = uloc_getAvailable(locIndex); in TestExemplar() local
492 UResourceBundle *resb =ures_open(NULL,locale,&status); in TestExemplar()
498 …nicodeSet from pattern for ExemplarCharacters in locale : %s. Error: %s",locale,u_errorName(status… in TestExemplar()
587 Locale locale; in TestGetLocaleByType() local
612 locale = res.getLocale(ULOC_REQUESTED_LOCALE, status); in TestGetLocaleByType()
613 if(locale != Locale::getDefault()) { in TestGetLocaleByType()
614 … err("Expected requested locale to be %s. Got %s\n", test[i].requestedLocale, locale.getName()); in TestGetLocaleByType()
616 locale = res.getLocale(ULOC_VALID_LOCALE, status); in TestGetLocaleByType()
617 if(strcmp(locale.getName(), test[i].validLocale) != 0) { in TestGetLocaleByType()
618 … err("Expected valid locale to be %s. Got %s\n", test[i].requestedLocale, locale.getName()); in TestGetLocaleByType()
620 locale = res.getLocale(ULOC_ACTUAL_LOCALE, status); in TestGetLocaleByType()
621 if(strcmp(locale.getName(), test[i].actualLocale) != 0) { in TestGetLocaleByType()
622 … err("Expected actual locale to be %s. Got %s\n", test[i].requestedLocale, locale.getName()); in TestGetLocaleByType()