Home
last modified time | relevance | path

Searched refs:DateTimePatternGenerator (Results 1 – 25 of 65) 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.cpp295 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimePatternGenerator)
299 DateTimePatternGenerator* U_EXPORT2 in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
300 DateTimePatternGenerator::createInstance(UErrorCode& status) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
304 DateTimePatternGenerator* U_EXPORT2
305 DateTimePatternGenerator::createInstance(const Locale& locale, UErrorCode& status) { in createInstance()
309 LocalPointer<DateTimePatternGenerator> result( in createInstance()
310 new DateTimePatternGenerator(locale, status), status); in createInstance()
314 DateTimePatternGenerator* U_EXPORT2
315 DateTimePatternGenerator::createInstanceNoStdPat(const Locale& locale, UErrorCode& status) { in createInstanceNoStdPat()
319 LocalPointer<DateTimePatternGenerator> result( in createInstanceNoStdPat()
[all …]
/external/icu/libicu/cts_headers/unicode/
Ddtptngen.h58 class U_I18N_API DateTimePatternGenerator : public UObject {
66 static DateTimePatternGenerator* U_EXPORT2 createInstance(UErrorCode& status);
75 …static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& statu…
84 …static DateTimePatternGenerator* U_EXPORT2 createInstanceNoStdPat(const Locale& uLocale, UErrorCod…
91 …static DateTimePatternGenerator* U_EXPORT2 internalMakeInstance(const Locale& uLocale, UErrorCode&…
101 static DateTimePatternGenerator* U_EXPORT2 createEmptyInstance(UErrorCode& status);
107 virtual ~DateTimePatternGenerator();
114 DateTimePatternGenerator* clone() const;
123 UBool operator==(const DateTimePatternGenerator& other) const;
132 UBool operator!=(const DateTimePatternGenerator& other) const;
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ddtptngen.h58 class U_I18N_API DateTimePatternGenerator : public UObject {
66 static DateTimePatternGenerator* U_EXPORT2 createInstance(UErrorCode& status);
75 …static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& statu…
84 …static DateTimePatternGenerator* U_EXPORT2 createInstanceNoStdPat(const Locale& uLocale, UErrorCod…
91 …static DateTimePatternGenerator* U_EXPORT2 internalMakeInstance(const Locale& uLocale, UErrorCode&…
101 static DateTimePatternGenerator* U_EXPORT2 createEmptyInstance(UErrorCode& status);
107 virtual ~DateTimePatternGenerator();
114 DateTimePatternGenerator* clone() const;
123 UBool operator==(const DateTimePatternGenerator& other) const;
132 UBool operator!=(const DateTimePatternGenerator& other) const;
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtptngts.cpp445DateTimePatternGenerator *instFromDefaultLocale=DateTimePatternGenerator::createInstance(status); in testAPI()
457DateTimePatternGenerator *instFromLocale=DateTimePatternGenerator::createInstance(Locale::getFrenc… in testAPI()
472 DateTimePatternGenerator *cloneDTPatternGen=instFromLocale->clone(); in testAPI()
493 DateTimePatternGenerator *gen = DateTimePatternGenerator::createInstance(deLocale, status); in testAPI()
618 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
643 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
669 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
702 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
740DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(Locale::getEnglish(), st… in testAPI()
777 DateTimePatternGenerator *randDTGen= DateTimePatternGenerator::createInstance(status); in testAPI()
[all …]
/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/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/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();
79 gen = DateTimePatternGenerator.getEmptyInstance(); // for now in set()
94 for (int i = 0; i < DateTimePatternGenerator.TYPE_LIMIT; ++i) { in showFlexibles()
99 if (i == DateTimePatternGenerator.FRACTIONAL_SECOND) continue; // don't need this field in showFlexibles()
172 if (item instanceof DateTimePatternGenerator.VariableField) { in checkFlexibles()
238 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();
1043 …static DateTimePatternGenerator.FormatParser formatParser = new DateTimePatternGenerator.FormatPar…
1051 … if (type == DateTimePatternGenerator.ERA && last == DateTimePatternGenerator.YEAR) {
1053 … } else if (type == DateTimePatternGenerator.YEAR && last == DateTimePatternGenerator.ERA) {
1101 public String toString(DateTimePatternGenerator.FormatParser formatParser) {
1104 if (x instanceof DateTimePatternGenerator.VariableField) {
DDateOrder.java17 import com.ibm.icu.text.DateTimePatternGenerator;
18 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
67 DateTimePatternGenerator.FormatParser fp) { in getOrderingInfo()
DFlexibleDateTime.java30 import com.ibm.icu.text.DateTimePatternGenerator;
31 import com.ibm.icu.text.DateTimePatternGenerator.FormatParser;
32 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
222 public static void add(DateTimePatternGenerator generator, Collection<String> list) { in add()
/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/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…
185 VariableField item2 = (DateTimePatternGenerator.VariableField) item;
215 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/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateTimePatternGenerator.java57 public class DateTimePatternGenerator implements Freezable<DateTimePatternGenerator>, Cloneable { class
68 public static DateTimePatternGenerator getEmptyInstance() { in getEmptyInstance()
69 DateTimePatternGenerator instance = new DateTimePatternGenerator(); in getEmptyInstance()
79 protected DateTimePatternGenerator() { in DateTimePatternGenerator() method in DateTimePatternGenerator
87 public static DateTimePatternGenerator getInstance() { in getInstance()
96 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance()
105 public static DateTimePatternGenerator getInstance(Locale locale) { in getInstance()
120 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance()
122 DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey); in getFrozenInstance()
127 result = new DateTimePatternGenerator(); in getFrozenInstance()
[all …]
DDateIntervalFormat.java614 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
708 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
1376 DateTimePatternGenerator dtpng = DateTimePatternGenerator.getInstance(locale); in initializeIntervalPattern()
1568 DateTimePatternGenerator dtpng) { in genFallbackPattern()
1623 DateTimePatternGenerator dtptng = DateTimePatternGenerator.getInstance(locale); in normalizeHourMetacharacters()
1866 DateTimePatternGenerator dtpng) in genSeparateDateTimePtn()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateTimePatternGenerator.java57 public class DateTimePatternGenerator implements Freezable<DateTimePatternGenerator>, Cloneable { class
67 public static DateTimePatternGenerator getEmptyInstance() { in getEmptyInstance()
68 DateTimePatternGenerator instance = new DateTimePatternGenerator(); in getEmptyInstance()
77 protected DateTimePatternGenerator() { in DateTimePatternGenerator() method in DateTimePatternGenerator
84 public static DateTimePatternGenerator getInstance() { in getInstance()
92 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance()
100 public static DateTimePatternGenerator getInstance(Locale locale) { in getInstance()
116 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance()
118 DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey); in getFrozenInstance()
123 result = new DateTimePatternGenerator(); in getFrozenInstance()
[all …]
DDateIntervalFormat.java600 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
691 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance(locale); in getInstance()
1348 DateTimePatternGenerator dtpng = DateTimePatternGenerator.getInstance(locale); in initializeIntervalPattern()
1540 DateTimePatternGenerator dtpng) { in genFallbackPattern()
1595 DateTimePatternGenerator dtptng = DateTimePatternGenerator.getInstance(locale); in normalizeHourMetacharacters()
1838 DateTimePatternGenerator dtpng) in genSeparateDateTimePtn()
/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 2021-01-19 16:26:28.…
2 +++ android_icu4j/src/main/java/android/icu/text/DateTimePatternGenerator.java 2021-01-19 16:26:50.…
/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.java34 import com.ibm.icu.text.DateTimePatternGenerator;
35 import com.ibm.icu.text.DateTimePatternGenerator.FormatParser;
36 import com.ibm.icu.text.DateTimePatternGenerator.PatternInfo;
37 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
114 private DateTimePatternGenerator generator;
151 generator = DateTimePatternGenerator.getEmptyInstance(); in set()
186 if (fld.getType() == DateTimePatternGenerator.HOUR) { in set()
201 int requestNumber = DateTimePatternGenerator.getAppendFormatNumber(request); in set()
271 if (FIELD_NAMES.length != DateTimePatternGenerator.TYPE_LIMIT) {
273 + 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