Lines Matching refs:DateTimePatternGenerator
40 * Test various generic API methods of DateTimePatternGenerator for API coverage.
363 logln("Testing DateTimePatternGenerator createInstance from default locale");
365 DateTimePatternGenerator *instFromDefaultLocale=DateTimePatternGenerator::createInstance(status);
367 dataerrln("ERROR: Could not create DateTimePatternGenerator (default) - exitting");
375 logln("Testing DateTimePatternGenerator createInstance from French locale");
377 DateTimePatternGenerator *instFromLocale=DateTimePatternGenerator::createInstance(Locale::getFrench(), status);
379 dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getFrench()) - exitting");
383 // ======= Test clone DateTimePatternGenerator
384 logln("Testing DateTimePatternGenerator::clone()");
392 DateTimePatternGenerator *cloneDTPatternGen=instFromLocale->clone();
413 DateTimePatternGenerator *gen = DateTimePatternGenerator::createInstance(deLocale, status);
415 dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getGermany()) - exitting");
547 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status);
549 dataerrln("ERROR: Could not create DateTimePatternGenerator");
572 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status);
574 DateTimePatternGenerator");
598 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status);
600 dataerrln("ERROR: Could not create DateTimePatternGenerator");
616 logln("Testing DateTimePatternGenerator with various skeleton");
630 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status);
632 dataerrln("ERROR: Could not create DateTimePatternGenerator with locale index:%d . - exitting\n", localeIndex);
655 logln("Testing DateTimePatternGenerator with various skeleton");
665 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(Locale::getEnglish(), status);
667 dataerrln("ERROR: Could not create DateTimePatternGenerator with locale English . - exitting\n");
702 DateTimePatternGenerator *randDTGen= DateTimePatternGenerator::createInstance(status);
704 dataerrln("ERROR: Could not create DateTimePatternGenerator (Locale::getFrench()) - exitting");
726 DateTimePatternGenerator *test= DateTimePatternGenerator::createInstance(status);
728 if(test->getDynamicClassID() != DateTimePatternGenerator::getStaticClassID()) {
738 test = DateTimePatternGenerator::createEmptyInstance(status);
790 // ========= DateTimePatternGenerator sample code in Userguide
794 DateTimePatternGenerator *generator = DateTimePatternGenerator::createInstance( locale, status);
901 DateTimePatternGenerator * dtpgen = DateTimePatternGenerator::createInstance(locale, status);
903 dataerrln("Unable to create DateTimePatternGenerator instance for locale(%s): %s", locale.getName(), u_errorName(status));
1002 DateTimePatternGenerator * dtpg = DateTimePatternGenerator::createInstance(locale, status);
1023 errln("DateTimePatternGenerator getBestPattern for locale %s, skelChar %c skelLength %d fails: %s",
1026 errln("DateTimePatternGenerator getBestPattern for locale %s, skelChar %c skelLength %d produces 0-length pattern",
1044 errln(UnicodeString("DateTimePatternGenerator getBestPattern for locale ") +
1055 dataerrln("Create DateTimePatternGenerator instance for locale(%s) fails: %s",