Lines Matching refs:getName
179 logln(#l " = " + UnicodeString(l.getName(), "")); \
300 logln("Testing " + (UnicodeString)testLocale.getName() + "..."); in TestBasicGetters()
314 if ( (temp=testLocale.getName()) != (dataTable[NAME][i])) in TestBasicGetters()
328 logln("Testing " + (temp=testLocale.getName()) + "..."); in TestBasicGetters()
384 strcmp(bogusLang.getName(), "eo")!=0 in TestBasicGetters()
399 if (strcmp(Locale::getChinese().getName(), ULOC_CHINESE) != 0) { in TestParallelAPIValues()
402 if (strcmp(Locale::getEnglish().getName(), ULOC_ENGLISH) != 0) { in TestParallelAPIValues()
405 if (strcmp(Locale::getFrench().getName(), ULOC_FRENCH) != 0) { in TestParallelAPIValues()
408 if (strcmp(Locale::getGerman().getName(), ULOC_GERMAN) != 0) { in TestParallelAPIValues()
411 if (strcmp(Locale::getItalian().getName(), ULOC_ITALIAN) != 0) { in TestParallelAPIValues()
414 if (strcmp(Locale::getJapanese().getName(), ULOC_JAPANESE) != 0) { in TestParallelAPIValues()
417 if (strcmp(Locale::getKorean().getName(), ULOC_KOREAN) != 0) { in TestParallelAPIValues()
420 if (strcmp(Locale::getSimplifiedChinese().getName(), ULOC_SIMPLIFIED_CHINESE) != 0) { in TestParallelAPIValues()
423 if (strcmp(Locale::getTraditionalChinese().getName(), ULOC_TRADITIONAL_CHINESE) != 0) { in TestParallelAPIValues()
428 if (strcmp(Locale::getCanada().getName(), ULOC_CANADA) != 0) { in TestParallelAPIValues()
431 if (strcmp(Locale::getCanadaFrench().getName(), ULOC_CANADA_FRENCH) != 0) { in TestParallelAPIValues()
434 if (strcmp(Locale::getChina().getName(), ULOC_CHINA) != 0) { in TestParallelAPIValues()
437 if (strcmp(Locale::getPRC().getName(), ULOC_PRC) != 0) { in TestParallelAPIValues()
440 if (strcmp(Locale::getFrance().getName(), ULOC_FRANCE) != 0) { in TestParallelAPIValues()
443 if (strcmp(Locale::getGermany().getName(), ULOC_GERMANY) != 0) { in TestParallelAPIValues()
446 if (strcmp(Locale::getItaly().getName(), ULOC_ITALY) != 0) { in TestParallelAPIValues()
449 if (strcmp(Locale::getJapan().getName(), ULOC_JAPAN) != 0) { in TestParallelAPIValues()
452 if (strcmp(Locale::getKorea().getName(), ULOC_KOREA) != 0) { in TestParallelAPIValues()
455 if (strcmp(Locale::getTaiwan().getName(), ULOC_TAIWAN) != 0) { in TestParallelAPIValues()
458 if (strcmp(Locale::getUK().getName(), ULOC_UK) != 0) { in TestParallelAPIValues()
461 if (strcmp(Locale::getUS().getName(), ULOC_US) != 0) { in TestParallelAPIValues()
475 logln("Testing " + (temp=testLocale.getName()) + "..."); in TestSimpleResourceInfo()
497 if(strcmp(locale.getName(), "en") != 0|| in TestSimpleResourceInfo()
557 logln("Default locale %s is unsupported by ICU\n", Locale().getName()); in TestDisplayNames()
739 logln(locList[i].getName()); in TestGetAvailableLocales()
796 logln(" Testing " + (temp=testLocale.getName()) + "..."); in doTestDisplayNames()
837 …splay language (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.g… in doTestDisplayNames()
839 …Display script (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.g… in doTestDisplayNames()
841 …isplay country (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.g… in doTestDisplayNames()
843 …isplay variant (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.g… in doTestDisplayNames()
845 …("Display name (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.g… in doTestDisplayNames()
1137 logln("Locale name was-> " + (name=localesToTest[i].getName())); in TestAtypicalLocales()
1268 logln("Ok: " + (temp=loc.getName()) + in TestEuroSupport()
1272 errln("Fail: " + (temp=loc.getName()) + in TestEuroSupport()
1354 name = DATA[i].getName(); in TestToString()
1467 " for locale '" + (temp=locale.getName()) + "' rather than exception" ); in Test4147315()
1488 " for locale '" + (temp=locale.getName()) + "' rather than exception" ); in Test4147317()
1675 status.errIfFailureAndReset("\"%s\"", min.getName()); in TestAddLikelySubtags()
1676 assertEquals("addLikelySubtags", max.getName(), result.getName()); in TestAddLikelySubtags()
1689 status.errIfFailureAndReset("\"%s\"", max.getName()); in TestMinimizeSubtags()
1690 assertEquals("minimizeSubtags", min.getName(), result.getName()); in TestMinimizeSubtags()
3837 assertEquals("addLikelySubtags", exp, res.getName()); in TestAddLikelyAndMinimizeSubtags()
3839 assertEquals("addLikelySubtags", org, res.getName()); in TestAddLikelyAndMinimizeSubtags()
3850 assertEquals("minimizeSubtags", exp, res.getName()); in TestAddLikelyAndMinimizeSubtags()
3852 assertEquals("minimizeSubtags", org, res.getName()); in TestAddLikelyAndMinimizeSubtags()
3955 result = l.getName(); in TestKeywordVariants()
3973 status.errIfFailureAndReset("\"%s\"", l.getName()); in TestCreateUnicodeKeywords()
4063 status.errIfFailureAndReset("\"%s\"", l.getName()); in TestCreateKeywordSet()
4082 status.errIfFailureAndReset("\"%s\"", l.getName()); in TestCreateKeywordSetEmpty()
4097 status.errIfFailureAndReset("\"%s\"", l.getName()); in TestCreateUnicodeKeywordSet()
4116 status.errIfFailureAndReset("\"%s\"", l.getName()); in TestCreateUnicodeKeywordSetEmpty()
4199 assertEquals("", expected, l2.getName()); in TestSetKeywordValue()
4213 assertEquals("", expected, l.getName()); in TestSetKeywordValueStringPiece()
4228 assertEquals("", expected, l.getName()); in TestSetUnicodeKeywordValueStringPiece()
4232 assertEquals("", expected, l.getName()); in TestSetUnicodeKeywordValueStringPiece()
4236 assertEquals("", expected, l.getName()); in TestSetUnicodeKeywordValueStringPiece()
4240 assertEquals("", expected, l.getName()); in TestSetUnicodeKeywordValueStringPiece()
4248 assertEquals("", Locale::getGerman().getName(), l.getName()); in TestSetUnicodeKeywordValueStringPiece()
4281 if (strcmp("en_US@key=value", loc2.getName())) { in TestGetBaseName()
4282 errln("%s:%d Expected \"en_US@key=value\", got \"%s\"", __FILE__, __LINE__, loc2.getName()); in TestGetBaseName()
4323 const char* valid = validLoc.getName(); in _checklocs()
4324 const char* actual = actualLoc.getName(); in _checklocs()
4365 if (cal->getLocale(ULOC_VALID_LOCALE, ec).getName()[0] != 0) { in TestGetLocale()
4631 const UnicodeString key(oldList[i].getName(), ""); in checkRegisteredCollators()
4635 oldList[i].getName()); in checkRegisteredCollators()
4638 if(expectExtra != NULL && !strcmp(expectExtra, oldList[i].getName())) { in checkRegisteredCollators()
4668 const UnicodeString key(oldList[i].getName(), ""); in checkRegisteredCollators()
4690 …OSIX didn't get parsed correctly - name is %s - expected %s got %s", loc.getName(), "POSIX", loc.g… in TestVariantWithOutCountry()
4694 …OUR didn't get parsed correctly - name is %s - expected %s got %s", loc2.getName(), "FOUR", loc2.g… in TestVariantWithOutCountry()
4698 …OUR didn't get parsed correctly - name is %s - expected %s got %s", loc3.getName(), "FOUR", loc3.g… in TestVariantWithOutCountry()
4702 …OUR didn't get parsed correctly - name is %s - expected %s got %s", loc4.getName(), "FOUR", loc4.g… in TestVariantWithOutCountry()
4706 …OUR didn't get parsed correctly - name is %s - expected %s got %s", loc5.getName(), "FOUR", loc5.g… in TestVariantWithOutCountry()
4710 …901 didn't get parsed correctly - name is %s - expected %s got %s", loc6.getName(), "1901", loc6.g… in TestVariantWithOutCountry()
4837 const char* getName = loc.isBogus() ? "BOGUS" : loc.getName(); in TestCanonicalization() local
4838 if(uprv_strcmp(expected, getName) != 0) { in TestCanonicalization()
4840 label[j], testCases[i].localeID, getName, expected); in TestCanonicalization()
4843 label[j], testCases[i].localeID, getName); in TestCanonicalization()
5353 if (strncmp(loc.getName(), loc.getBaseName(), strlen(loc.getBaseName()))) { in TestBug11421()
5355 __FILE__, __LINE__, loc.getName(), loc.getBaseName()); in TestBug11421()
5399 assertEquals(tag1, expected1.getName(), result1.getName()); in TestBug20410()
5405 assertEquals(tag2, expected2.getName(), result2.getName()); in TestBug20410()
5410 assertEquals(locid3, expected3.getName(), result3.getName()); in TestBug20410()
5415 assertEquals(locid4, expected4.getName(), result4.getName()); in TestBug20410()
5489 from, tag, loc.getName()); in TestLocaleCanonicalizationFromFile()
5493 msg += loc.getName(); in TestLocaleCanonicalizationFromFile()
5571 assertEquals(tag_en, loc_en.getName(), result_en.getName()); in TestForLanguageTag()
5575 assertEquals(tag_oed, loc_oed.getName(), result_oed.getName()); in TestForLanguageTag()
5579 assertEquals(tag_af, loc_af.getName(), result_af.getName()); in TestForLanguageTag()
5583 assertEquals(tag_var, loc_var.getName(), result_var.getName()); in TestForLanguageTag()
5587 assertTrue(result_ill.getName(), result_ill.isBogus()); in TestForLanguageTag()
5591 assertEquals("nullptr", loc_null.getName(), result_null.getName()); in TestForLanguageTag()
5597 loc_gb.getName(), result_substr.getName()); in TestForLanguageTag()
5603 loc_gb.getName(), result_no_nul.getName()); in TestForLanguageTag()
5607 assertEquals(tag_ext, loc_ext.getName(), result_ext.getName()); in TestForLanguageTag()
5624 std::string tag = Locale::forLanguageTag(otag.c_str(), status).getName(); in TestForLanguageTag()
5656 status.errIfFailureAndReset("\"%s\"", loc_c.getName()); in TestToLanguageTag()
5657 assertEquals(loc_c.getName(), tag_c, result.c_str()); in TestToLanguageTag()
5660 status.errIfFailureAndReset("\"%s\"", loc_c.getName()); in TestToLanguageTag()
5661 assertEquals(loc_c.getName(), tag_c, result_c.c_str()); in TestToLanguageTag()
5664 status.errIfFailureAndReset("\"%s\"", loc_en.getName()); in TestToLanguageTag()
5665 assertEquals(loc_en.getName(), tag_en, result_en.c_str()); in TestToLanguageTag()
5668 status.errIfFailureAndReset("\"%s\"", loc_af.getName()); in TestToLanguageTag()
5669 assertEquals(loc_af.getName(), tag_af, result_af.c_str()); in TestToLanguageTag()
5672 status.errIfFailureAndReset("\"%s\"", loc_ext.getName()); in TestToLanguageTag()
5673 assertEquals(loc_ext.getName(), tag_ext, result_ext.c_str()); in TestToLanguageTag()
5676 status.errIfFailureAndReset("\"%s\"", loc_empty.getName()); in TestToLanguageTag()
5677 assertEquals(loc_empty.getName(), tag_und, result_empty.c_str()); in TestToLanguageTag()
5680 status.errIfFailureAndReset("\"%s\"", loc_ill.getName()); in TestToLanguageTag()
5681 assertEquals(loc_ill.getName(), tag_und, result_ill.c_str()); in TestToLanguageTag()
5684 status.errIfFailureAndReset("\"%s\"", loc_variant.getName()); in TestToLanguageTag()
5685 assertEquals(loc_variant.getName(), tag_variant, result_variant.c_str()); in TestToLanguageTag()
5761 assertTrue("l2 != l3", l2.getName() != l3.getName()); in TestMoveAssign()
5775 assertTrue("l5 != l6", l5.getName() != l6.getName()); in TestMoveAssign()
5789 assertTrue("l8 != l9", l8.getName() != l9.getName()); in TestMoveAssign()
5814 assertTrue("l2 != l3", l2.getName() != l3.getName()); in TestMoveCtor()
5822 assertTrue("l5 != l6", l5.getName() != l6.getName()); in TestMoveCtor()
5830 assertTrue("l8 != l9", l8.getName() != l9.getName()); in TestMoveCtor()
5847 assertEquals(l.getName(), "hy", result.c_str()); in TestBug20407iVariantPreferredValue()
5854 assertEquals(l.getName(), "hyw", result.c_str()); in TestBug20407iVariantPreferredValue()
5873 status.errIfFailureAndReset("\"%s\"", l.getName()); in TestBug13417VeryLongLanguageTag()
6011 assertEquals("getName()", empty, empty_ctor.getName()); in TestUnd()
6012 assertEquals("getName()", empty, root_ctor.getName()); in TestUnd()
6013 assertEquals("getName()", empty, und_ctor.getName()); in TestUnd()
6015 assertEquals("getName()", empty, empty_tag.getName()); in TestUnd()
6016 assertEquals("getName()", empty, root_tag.getName()); in TestUnd()
6017 assertEquals("getName()", empty, und_tag.getName()); in TestUnd()
6019 assertEquals("getName()", empty, root_build.getName()); in TestUnd()
6020 assertEquals("getName()", empty, und_build.getName()); in TestUnd()
6085 assertEquals("getName()", id, locale_ctor.getName()); in TestUndScript()
6086 assertEquals("getName()", id, locale_legacy.getName()); in TestUndScript()
6087 assertEquals("getName()", id, locale_tag.getName()); in TestUndScript()
6088 assertEquals("getName()", id, locale_build.getName()); in TestUndScript()
6119 assertEquals("getName()", id, locale_ctor.getName()); in TestUndRegion()
6120 assertEquals("getName()", id, locale_legacy.getName()); in TestUndRegion()
6121 assertEquals("getName()", id, locale_tag.getName()); in TestUndRegion()
6122 assertEquals("getName()", id, locale_build.getName()); in TestUndRegion()
6342 assertEquals("0.next()", "fr", l0.getName()); in TestRangeIterator()
6347 assertEquals("1.next()", "en_GB", l1.getName()); in TestRangeIterator()
6352 assertEquals("2.next()", "en", l2.getName()); in TestRangeIterator()
6369 assertEquals("0.next()", "fr", l0.getName()); in TestPointerConvertingIterator()
6374 assertEquals("1.next()", "en_GB", l1.getName()); in TestPointerConvertingIterator()
6379 assertEquals("2.next()", "en", l2.getName()); in TestPointerConvertingIterator()
6408 assertEquals("0.next()", "fr", l0.getName()); in TestTagConvertingIterator()
6412 assertEquals("1.next()", "en_GB", l1.getName()); in TestTagConvertingIterator()
6416 assertEquals("2.next()", "en", l2.getName()); in TestTagConvertingIterator()
6435 assertEquals("0.next()", "fr", l0.getName()); in TestCapturingTagConvertingIterator()
6439 assertEquals("1.next()", "en_GB", l1.getName()); in TestCapturingTagConvertingIterator()
6443 assertEquals("2.next()", "en", l2.getName()); in TestCapturingTagConvertingIterator()
6464 keyword, value, l.getName())) { in TestSetUnicodeKeywordValueInLongLocale()
6469 "toLanguageTag fail on \"%s\"", l.getName())) { in TestSetUnicodeKeywordValueInLongLocale()
6506 if (strcmp("de", l.getName()) != 0) { in TestSetUnicodeKeywordValueNullInLongLocale()
6509 tag.data(), l.getName()); in TestSetUnicodeKeywordValueNullInLongLocale()