Home
last modified time | relevance | path

Searched refs:DateTimePatternGenerator (Results 1 – 25 of 51) sorted by relevance

123

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateTimeGeneratorTest.java34 import android.icu.text.DateTimePatternGenerator;
35 import android.icu.text.DateTimePatternGenerator.FormatParser;
36 import android.icu.text.DateTimePatternGenerator.VariableField;
86DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(ULocale.forLanguageTag(test[0]… in TestC()
88 int options = DateTimePatternGenerator.MATCH_HOUR_FIELD_LENGTH; in TestC()
133 DateTimePatternGenerator gen = DateTimePatternGenerator.getEmptyInstance(); in TestSkeletonsWithDayPeriods()
134DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo(); in TestSkeletonsWithDayPeriods()
143 int options = DateTimePatternGenerator.MATCH_HOUR_FIELD_LENGTH; in TestSkeletonsWithDayPeriods()
158 DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(locale); in TestSimple()
165DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo(); in TestSimple()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateTimeGeneratorTest.java33 import com.ibm.icu.text.DateTimePatternGenerator;
34 import com.ibm.icu.text.DateTimePatternGenerator.FormatParser;
35 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
83DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(ULocale.forLanguageTag(test[0]… in TestC()
85 int options = DateTimePatternGenerator.MATCH_HOUR_FIELD_LENGTH; in TestC()
130 DateTimePatternGenerator gen = DateTimePatternGenerator.getEmptyInstance(); in TestSkeletonsWithDayPeriods()
131DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo(); in TestSkeletonsWithDayPeriods()
140 int options = DateTimePatternGenerator.MATCH_HOUR_FIELD_LENGTH; in TestSkeletonsWithDayPeriods()
155 DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(locale); in TestSimple()
162DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo(); in TestSimple()
[all …]
/external/icu/icu4c/source/i18n/
Dudatpg.cpp34 return (UDateTimePatternGenerator *)DateTimePatternGenerator::createInstance(*pErrorCode); in udatpg_open()
36 …return (UDateTimePatternGenerator *)DateTimePatternGenerator::createInstance(Locale(locale), *pErr… in udatpg_open()
42 return (UDateTimePatternGenerator *)DateTimePatternGenerator::createEmptyInstance(*pErrorCode); in udatpg_openEmpty()
47 delete (DateTimePatternGenerator *)dtpg; in udatpg_close()
55 return (UDateTimePatternGenerator *)(((const DateTimePatternGenerator *)dtpg)->clone()); in udatpg_clone()
82 …UnicodeString result=((DateTimePatternGenerator *)dtpg)->getBestPattern(skeletonString, options, *… in udatpg_getBestPatternWithOptions()
99 UnicodeString result=DateTimePatternGenerator::staticGetSkeleton( in udatpg_getSkeleton()
117 UnicodeString result=DateTimePatternGenerator::staticGetBaseSkeleton( in udatpg_getBaseSkeleton()
137 UDateTimePatternConflict result=((DateTimePatternGenerator *)dtpg)-> in udatpg_addPattern()
151 ((DateTimePatternGenerator *)dtpg)->setAppendItemFormat(field, valueString); in udatpg_setAppendItemFormat()
[all …]
Ddtptngen.cpp294 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimePatternGenerator)
298 DateTimePatternGenerator* U_EXPORT2 in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
299 DateTimePatternGenerator::createInstance(UErrorCode& status) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
303 DateTimePatternGenerator* U_EXPORT2
304 DateTimePatternGenerator::createInstance(const Locale& locale, UErrorCode& status) { in createInstance()
308 LocalPointer<DateTimePatternGenerator> result( in createInstance()
309 new DateTimePatternGenerator(locale, status), status); in createInstance()
313 DateTimePatternGenerator* U_EXPORT2
314 DateTimePatternGenerator::createEmptyInstance(UErrorCode& status) { in createEmptyInstance()
318 LocalPointer<DateTimePatternGenerator> result( in createEmptyInstance()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ddtptngen.h54 class U_I18N_API DateTimePatternGenerator : public UObject {
62 static DateTimePatternGenerator* U_EXPORT2 createInstance(UErrorCode& status);
71 …static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& statu…
80 …static DateTimePatternGenerator* U_EXPORT2 internalMakeInstance(const Locale& uLocale, UErrorCode&…
90 static DateTimePatternGenerator* U_EXPORT2 createEmptyInstance(UErrorCode& status);
96 virtual ~DateTimePatternGenerator();
103 DateTimePatternGenerator* clone() const;
112 UBool operator==(const DateTimePatternGenerator& other) const;
121 UBool operator!=(const DateTimePatternGenerator& other) const;
502 DateTimePatternGenerator(UErrorCode & status);
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtptngts.cpp383DateTimePatternGenerator *instFromDefaultLocale=DateTimePatternGenerator::createInstance(status); in testAPI()
395DateTimePatternGenerator *instFromLocale=DateTimePatternGenerator::createInstance(Locale::getFrenc… in testAPI()
410 DateTimePatternGenerator *cloneDTPatternGen=instFromLocale->clone(); in testAPI()
431 DateTimePatternGenerator *gen = DateTimePatternGenerator::createInstance(deLocale, status); in testAPI()
556 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
581 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
607 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
639 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
674DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(Locale::getEnglish(), st… in testAPI()
711 DateTimePatternGenerator *randDTGen= DateTimePatternGenerator::createInstance(status); in testAPI()
[all …]
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/datetimepatterngenerator/
DDateTimePatternGeneratorSample.java15 import android.icu.text.DateTimePatternGenerator;
52 DateTimePatternGenerator dtfg = null; in getBestPatternExample()
59 dtfg = DateTimePatternGenerator.getInstance(locale); in getBestPatternExample()
125 DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(locale); in addPatternExample()
127DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo(); in addPatternExample()
155 DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(locale); in replaceFieldTypesExample()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/datetimepatterngenerator/
DDateTimePatternGeneratorSample.java14 import com.ibm.icu.text.DateTimePatternGenerator;
51 DateTimePatternGenerator dtfg = null; in getBestPatternExample()
58 dtfg = DateTimePatternGenerator.getInstance(locale); in getBestPatternExample()
124 DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(locale); in addPatternExample()
126DateTimePatternGenerator.PatternInfo returnInfo = new DateTimePatternGenerator.PatternInfo(); in addPatternExample()
154 DateTimePatternGenerator gen = DateTimePatternGenerator.getInstance(locale); in replaceFieldTypesExample()
/external/cldr/tools/java/org/unicode/cldr/test/
DFlexibleDateFromCLDR.java27 import com.ibm.icu.text.DateTimePatternGenerator;
28 import com.ibm.icu.text.DateTimePatternGenerator.PatternInfo;
37 DateTimePatternGenerator gen = DateTimePatternGenerator.getEmptyInstance();
80 gen = DateTimePatternGenerator.getEmptyInstance(); // for now in set()
95 for (int i = 0; i < DateTimePatternGenerator.TYPE_LIMIT; ++i) { in showFlexibles()
100 if (i == DateTimePatternGenerator.FRACTIONAL_SECOND) continue; // don't need this field in showFlexibles()
171 if (item instanceof DateTimePatternGenerator.VariableField) { in checkFlexibles()
235 DateTimePatternGenerator.FormatParser fp = new DateTimePatternGenerator.FormatParser();
DCheckDates.java49 import com.ibm.icu.text.DateTimePatternGenerator;
50 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
64DateTimePatternGenerator.FormatParser formatParser = new DateTimePatternGenerator.FormatParser();
65 DateTimePatternGenerator dateTimePatternGenerator = DateTimePatternGenerator.getEmptyInstance();
1121 …static DateTimePatternGenerator.FormatParser formatParser = new DateTimePatternGenerator.FormatPar…
1129 … if (type == DateTimePatternGenerator.ERA && last == DateTimePatternGenerator.YEAR) {
1131 … } else if (type == DateTimePatternGenerator.YEAR && last == DateTimePatternGenerator.ERA) {
1179 public String toString(DateTimePatternGenerator.FormatParser formatParser) {
1182 if (x instanceof DateTimePatternGenerator.VariableField) {
DFlexibleDateTime.java30 import com.ibm.icu.text.DateTimePatternGenerator;
31 import com.ibm.icu.text.DateTimePatternGenerator.FormatParser;
32 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
321 public static void add(DateTimePatternGenerator generator, Collection<String> list) { in add()
DDateOrder.java17 import com.ibm.icu.text.DateTimePatternGenerator;
18 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
67 DateTimePatternGenerator.FormatParser fp) { in getOrderingInfo()
/external/icu/icu4c/source/samples/dtptngsample/
Ddtptngsample.cpp55 DateTimePatternGenerator *dtfg= DateTimePatternGenerator::createInstance(locales[j],status); in getBestPatternExample()
91 DateTimePatternGenerator *dtfg= DateTimePatternGenerator::createInstance(locale,status); in addPatternExample()
132 DateTimePatternGenerator *dtfg = DateTimePatternGenerator::createInstance(locale,status); in replaceFieldTypesExample()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateTimePatternGenerator.java56 public class DateTimePatternGenerator implements Freezable<DateTimePatternGenerator>, Cloneable { class
67 public static DateTimePatternGenerator getEmptyInstance() { in getEmptyInstance()
68 DateTimePatternGenerator instance = new DateTimePatternGenerator(); in getEmptyInstance()
78 protected DateTimePatternGenerator() { in DateTimePatternGenerator() method in DateTimePatternGenerator
86 public static DateTimePatternGenerator getInstance() { in getInstance()
95 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance()
104 public static DateTimePatternGenerator getInstance(Locale locale) { in getInstance()
119 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance()
121 DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey); in getFrozenInstance()
126 result = new DateTimePatternGenerator(); in getFrozenInstance()
[all …]
DDateIntervalFormat.java473 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
567 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
1106 DateTimePatternGenerator dtpng = DateTimePatternGenerator.getInstance(locale); in initializeIntervalPattern()
1298 DateTimePatternGenerator dtpng) { in genFallbackPattern()
1519 DateTimePatternGenerator dtpng) in genSeparateDateTimePtn()
DDateFormat.java2132 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstanceForSkeleton()
2173 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstanceForSkeleton()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateTimePatternGenerator.java56 public class DateTimePatternGenerator implements Freezable<DateTimePatternGenerator>, Cloneable { class
66 public static DateTimePatternGenerator getEmptyInstance() { in getEmptyInstance()
67 DateTimePatternGenerator instance = new DateTimePatternGenerator(); in getEmptyInstance()
76 protected DateTimePatternGenerator() { in DateTimePatternGenerator() method in DateTimePatternGenerator
83 public static DateTimePatternGenerator getInstance() { in getInstance()
91 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance()
99 public static DateTimePatternGenerator getInstance(Locale locale) { in getInstance()
115 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance()
117 DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey); in getFrozenInstance()
122 result = new DateTimePatternGenerator(); in getFrozenInstance()
[all …]
DDateIntervalFormat.java471 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
562 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
1094 DateTimePatternGenerator dtpng = DateTimePatternGenerator.getInstance(locale); in initializeIntervalPattern()
1286 DateTimePatternGenerator dtpng) { in genFallbackPattern()
1507 DateTimePatternGenerator dtpng) in genSeparateDateTimePtn()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestDateOrder.java13 import com.ibm.icu.text.DateTimePatternGenerator;
36 DateTimePatternGenerator.FormatParser fp = new DateTimePatternGenerator.FormatParser(); in TestDateImportance()
DCheckYear.java32 import com.ibm.icu.text.DateTimePatternGenerator;
33 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
45 static DateTimePatternGenerator dtp = DateTimePatternGenerator
47 …static DateTimePatternGenerator.FormatParser formatParser = new DateTimePatternGenerator.FormatPar…
186 VariableField item2 = (DateTimePatternGenerator.VariableField) item;
217 VariableField item2 = (DateTimePatternGenerator.VariableField) item;
/external/cldr/tools/java/org/unicode/cldr/tool/
DCompareStockDatetime.java14 import com.ibm.icu.text.DateTimePatternGenerator;
35 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getEmptyInstance(); in main()
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DDateTimePatternGenerator.java.patch1 --- android_icu4j/src/main/java/android/icu/text/DateTimePatternGenerator.java 2018-10-22 05:12:26.…
2 +++ android_icu4j/src/main/java/android/icu/text/DateTimePatternGenerator.java 2018-10-22 05:12:45.…
/external/icu/icu4c/source/test/perf/DateFmtPerf/
DDateFmtPerf.h444DateTimePatternGenerator* gen(DateTimePatternGenerator::createInstance(loc, status2)); in call()
487DateTimePatternGenerator* gen(DateTimePatternGenerator::createInstance(loc, status2)); in call()
490 DateTimePatternGenerator *cl = gen->clone(); in call()
534DateTimePatternGenerator* gen(DateTimePatternGenerator::createInstance(loc, status2)); in call()
/external/cldr/tools/java/org/unicode/cldr/util/
DDateTimeFormats.java29 import com.ibm.icu.text.DateTimePatternGenerator;
30 import com.ibm.icu.text.DateTimePatternGenerator.FormatParser;
31 import com.ibm.icu.text.DateTimePatternGenerator.PatternInfo;
32 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
95 private DateTimePatternGenerator generator;
133 generator = DateTimePatternGenerator.getEmptyInstance(); in set()
168 if (fld.getType() == DateTimePatternGenerator.HOUR) { in set()
182 int requestNumber = DateTimePatternGenerator.getAppendFormatNumber(request); in set()
249 if (FIELD_NAMES.length != DateTimePatternGenerator.TYPE_LIMIT) {
251 + DateTimePatternGenerator.TYPE_LIMIT);
/external/cldr/tools/java/org/unicode/cldr/draft/
DMisc.java37 import com.ibm.icu.text.DateTimePatternGenerator;
194 DateTimePatternGenerator englishGenerator = DateTimePatternGenerator.getInstance(english); in showDateSamples()
195 DateTimePatternGenerator otherGenerator = DateTimePatternGenerator.getInstance(otherLocale); in showDateSamples()
215 DateTimePatternGenerator generator) { in getFormatted()

123