Home
last modified time | relevance | path

Searched refs:localeString (Results 1 – 17 of 17) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationIteratorTest.java724 private String localeString; in TestSearchCollatorElements() field in CollationIteratorTest.TSCEItem
727 localeString = locStr; in TestSearchCollatorElements()
730 public String getLocaleString() { return localeString; } in TestSearchCollatorElements()
739 String localeString = tsceItem.getLocaleString(); in TestSearchCollatorElements() local
740 ULocale uloc = new ULocale(localeString); in TestSearchCollatorElements()
745 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestSearchCollatorElements()
757 … logln(String.format("(%s) offset=%2d ce=%08x\n", tsceItem.localeString, offset, element)); in TestSearchCollatorElements()
759 … errln("Error: in locale " + localeString + ", CEIterator next() returned element 0"); in TestSearchCollatorElements()
763 …errln("Error: in locale " + localeString + ", expected CEIterator next()->getOffset " + offsets[io… in TestSearchCollatorElements()
769 …errln("Error: in locale " + localeString + ", CEIterator next() returned more elements than expect… in TestSearchCollatorElements()
[all …]
DAlphabeticIndexTest.java397 …private void checkBuckets(String localeString, String[] test, ULocale additionalLocale, String tes… in checkBuckets() argument
399 ULocale desiredLocale = new ULocale(localeString); in checkBuckets()
578 String localeString = list[i].toString(); in TestBasics() local
579 if (!KEY_LOCALES.contains(localeString)) continue; // TODO change in exhaustive in TestBasics()
580 ULocale locale = new ULocale(localeString + collationValue); in TestBasics()
613 for (String localeString : new String[] {"zh"}) { // KEY_LOCALES, new String[] {"zh"} in TestClientSupport()
614 ULocale ulocale = new ULocale(localeString); in TestClientSupport()
619 if (!localeString.equals("zh") ) { in TestClientSupport()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationIteratorTest.java721 private String localeString; in TestSearchCollatorElements() field in CollationIteratorTest.TSCEItem
724 localeString = locStr; in TestSearchCollatorElements()
727 public String getLocaleString() { return localeString; } in TestSearchCollatorElements()
736 String localeString = tsceItem.getLocaleString(); in TestSearchCollatorElements() local
737 ULocale uloc = new ULocale(localeString); in TestSearchCollatorElements()
742 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestSearchCollatorElements()
754 … logln(String.format("(%s) offset=%2d ce=%08x\n", tsceItem.localeString, offset, element)); in TestSearchCollatorElements()
756 … errln("Error: in locale " + localeString + ", CEIterator next() returned element 0"); in TestSearchCollatorElements()
760 …errln("Error: in locale " + localeString + ", expected CEIterator next()->getOffset " + offsets[io… in TestSearchCollatorElements()
766 …errln("Error: in locale " + localeString + ", CEIterator next() returned more elements than expect… in TestSearchCollatorElements()
[all …]
DAlphabeticIndexTest.java394 …private void checkBuckets(String localeString, String[] test, ULocale additionalLocale, String tes… in checkBuckets() argument
396 ULocale desiredLocale = new ULocale(localeString); in checkBuckets()
575 String localeString = list[i].toString(); in TestBasics() local
576 if (!KEY_LOCALES.contains(localeString)) continue; // TODO change in exhaustive in TestBasics()
577 ULocale locale = new ULocale(localeString + collationValue); in TestBasics()
610 for (String localeString : new String[] {"zh"}) { // KEY_LOCALES, new String[] {"zh"} in TestClientSupport()
611 ULocale ulocale = new ULocale(localeString); in TestClientSupport()
616 if (!localeString.equals("zh") ) { in TestClientSupport()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DICUDurationTest.java276 final String localeString; in TestXMLDuration() field in ICUDurationTest.TestCase
283 localeString = loc; in TestXMLDuration()
310 String loc = tc.localeString; in TestXMLDuration()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DICUDurationTest.java279 final String localeString; in TestXMLDuration() field in ICUDurationTest.TestCase
286 localeString = loc; in TestXMLDuration()
313 String loc = tc.localeString; in TestXMLDuration()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/search/
DSearchTest.java2141 private String localeString; in TestUsingSearchCollator() field in SearchTest.TUSCItem
2145 localeString = locStr; in TestUsingSearchCollator()
2149 public String getLocaleString() { return localeString; } in TestUsingSearchCollator()
2162 String localeString = tuscItem.getLocaleString(); in TestUsingSearchCollator() local
2163 ULocale uloc = new ULocale(localeString); in TestUsingSearchCollator()
2168 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestUsingSearchCollator()
2188 …errln("Error: in locale " + localeString + ", expected SearchIterator.next() " + offsets[ioff] + "… in TestUsingSearchCollator()
2194 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned more matches than exp… in TestUsingSearchCollator()
2198 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned fewer matches than ex… in TestUsingSearchCollator()
2211 …errln("Error: in locale " + localeString + ", expected SearchIterator.previous() " + offsets[ioff]… in TestUsingSearchCollator()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/
DSearchTest.java2138 private String localeString; in TestUsingSearchCollator() field in SearchTest.TUSCItem
2142 localeString = locStr; in TestUsingSearchCollator()
2146 public String getLocaleString() { return localeString; } in TestUsingSearchCollator()
2159 String localeString = tuscItem.getLocaleString(); in TestUsingSearchCollator() local
2160 ULocale uloc = new ULocale(localeString); in TestUsingSearchCollator()
2165 errln("Error: in locale " + localeString + ", err in Collator.getInstance"); in TestUsingSearchCollator()
2185 …errln("Error: in locale " + localeString + ", expected SearchIterator.next() " + offsets[ioff] + "… in TestUsingSearchCollator()
2191 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned more matches than exp… in TestUsingSearchCollator()
2195 …errln("Error: in locale " + localeString + ", SearchIterator.next() returned fewer matches than ex… in TestUsingSearchCollator()
2208 …errln("Error: in locale " + localeString + ", expected SearchIterator.previous() " + offsets[ioff]… in TestUsingSearchCollator()
[all …]
/external/v8/src/js/
Di18n.js784 var localeString = TO_STRING(localeID);
786 if (isStructuallyValidLanguageTag(localeString) === false) {
787 throw %make_range_error(kInvalidLanguageTag, localeString);
791 var tag = %CanonicalizeLanguageTag(localeString);
795 throw %make_range_error(kInvalidLanguageTag, localeString);
/external/icu/icu4c/source/test/cintltst/
Dcnumtst.c2496 const char* localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
2507 UNumberFormat* unumFmt = unum_open(style, NULL, 0, localeString, NULL, &status); in TestCurrencyIsoPluralFormat()
2509 …log_data_err("FAIL: unum_open, locale %s, style %d - %s\n", localeString, (int)style, myErrorName(… in TestCurrencyIsoPluralFormat()
2515 …log_err("FAIL: unum_setTextAttribute, locale %s, UNUM_CURRENCY_CODE %s\n", localeString, currencyI… in TestCurrencyIsoPluralFormat()
2519 …r("FAIL: unum_formatDouble, locale %s, UNUM_CURRENCY_CODE %s - %s\n", localeString, currencyISOCod… in TestCurrencyIsoPluralFormat()
2524 localeString, currencyISOCode, DATA[i][3 + sIndex]); in TestCurrencyIsoPluralFormat()
2623 const char* localeString = "en_US"; in TestCurrencyUsage() local
2634 unumFmt = unum_open(style, NULL, 0, localeString, NULL, &status); in TestCurrencyUsage()
2637 localeString, (int)style, myErrorName(status)); in TestCurrencyUsage()
Dcdattst.c1622 const char* localeString = "zh@numbers=hanidays"; in TestOverrideNumberFormat() local
1638 overrideFmt = unum_open(UNUM_DEFAULT, NULL, 0, localeString, NULL, &status); in TestOverrideNumberFormat()
1651 overrideFmt = unum_open(UNUM_DEFAULT, NULL, 0, localeString, NULL, &status); in TestOverrideNumberFormat()
1666 overrideFmt2 = unum_open(UNUM_DEFAULT, NULL, 0, localeString, NULL, &status); in TestOverrideNumberFormat()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTest.java746 String localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
749 ULocale locale = new ULocale(localeString); in TestCurrencyIsoPluralFormat()
761 …errln("FAIL: localeID: " + localeString + ", expected(" + formatResult.length() + "): \"" + format… in TestCurrencyIsoPluralFormat()
774 …errln("FAIL: getCurrencyFormat of locale " + localeString + " failed roundtripping the number. val… in TestCurrencyIsoPluralFormat()
829 private final String localeString; in TestParseCurrency() field in NumberFormatTest.ParseCurrencyItem
839 localeString = locStr; in TestParseCurrency()
848 public String getLocaleString() { return localeString; } in TestParseCurrency()
883 String localeString = item.getLocaleString(); in TestParseCurrency() local
884 ULocale uloc = new ULocale(localeString); in TestParseCurrency()
889 errln("NumberFormat.getCurrencyInstance fails for locale " + localeString); in TestParseCurrency()
[all …]
DPluralRulesTest.java920 for (String localeString : parts[0].split("\\s*,\\s*")) {
921 ULocale locale = new ULocale(localeString);
927 checkCategoriesAndExpected(localeString, parts[i], rules);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTest.java749 String localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
752 ULocale locale = new ULocale(localeString); in TestCurrencyIsoPluralFormat()
764 …errln("FAIL: localeID: " + localeString + ", expected(" + formatResult.length() + "): \"" + format… in TestCurrencyIsoPluralFormat()
777 …errln("FAIL: getCurrencyFormat of locale " + localeString + " failed roundtripping the number. val… in TestCurrencyIsoPluralFormat()
832 private final String localeString; in TestParseCurrency() field in NumberFormatTest.ParseCurrencyItem
842 localeString = locStr; in TestParseCurrency()
851 public String getLocaleString() { return localeString; } in TestParseCurrency()
886 String localeString = item.getLocaleString(); in TestParseCurrency() local
887 ULocale uloc = new ULocale(localeString); in TestParseCurrency()
892 errln("NumberFormat.getCurrencyInstance fails for locale " + localeString); in TestParseCurrency()
[all …]
DPluralRulesTest.java923 for (String localeString : parts[0].split("\\s*,\\s*")) {
924 ULocale locale = new ULocale(localeString);
930 checkCategoriesAndExpected(localeString, parts[i], rules);
/external/icu/icu4c/source/test/intltest/
Dnumfmtst.cpp3932 const char* localeString = DATA[i][0]; in TestCurrencyIsoPluralFormat() local
3935 Locale locale(localeString); in TestCurrencyIsoPluralFormat()
3940 …dataerrln((UnicodeString)"can not create instance, locale:" + localeString + ", style: " + k + " -… in TestCurrencyIsoPluralFormat()
3979 localeString + " failed roundtripping the number"); in TestCurrencyIsoPluralFormat()
4040 const char* localeString = DATA[i][0]; in TestCurrencyParsing() local
4043 Locale locale(localeString); in TestCurrencyParsing()
4047 i, localeString, currencyStyleNames[kIndex], in TestCurrencyParsing()
4052 …dataerrln((UnicodeString)"can not create instance, locale:" + localeString + ", style: " + k + " -… in TestCurrencyParsing()
4093 … errln((UnicodeString)"FAIL: NumberFormat(" + localeString +", " + currencyStyleNames[kIndex] + in TestCurrencyParsing()
/external/pdfium/fxjs/
Dcfxjse_formcalc_context.cpp4478 ByteString localeString; in WordNum() local
4485 localeString = ValueToUTF8String(localeValue.get()); in WordNum()