Home
last modified time | relevance | path

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

1234

/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::createInstanceNoStdPat(const Locale& locale, UErrorCode& status) { in createInstanceNoStdPat()
318 LocalPointer<DateTimePatternGenerator> result( in createInstanceNoStdPat()
[all …]
/external/cronet/third_party/icu/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::createInstanceNoStdPat(const Locale& locale, UErrorCode& status) { in createInstanceNoStdPat()
318 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…
94 static DateTimePatternGenerator* U_EXPORT2 createEmptyInstance(UErrorCode& status);
100 virtual ~DateTimePatternGenerator();
107 DateTimePatternGenerator* clone() const;
116 bool operator==(const DateTimePatternGenerator& other) const;
125 bool operator!=(const DateTimePatternGenerator& other) const;
582 DateTimePatternGenerator(UErrorCode & status);
[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…
94 static DateTimePatternGenerator* U_EXPORT2 createEmptyInstance(UErrorCode& status);
100 virtual ~DateTimePatternGenerator();
107 DateTimePatternGenerator* clone() const;
116 bool operator==(const DateTimePatternGenerator& other) const;
125 bool operator!=(const DateTimePatternGenerator& other) const;
582 DateTimePatternGenerator(UErrorCode & status);
[all …]
/external/cronet/third_party/icu/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…
94 static DateTimePatternGenerator* U_EXPORT2 createEmptyInstance(UErrorCode& status);
100 virtual ~DateTimePatternGenerator();
107 DateTimePatternGenerator* clone() const;
116 bool operator==(const DateTimePatternGenerator& other) const;
125 bool operator!=(const DateTimePatternGenerator& other) const;
582 DateTimePatternGenerator(UErrorCode & status);
[all …]
/external/cronet/third_party/icu/source/test/intltest/
Ddtptngts.cpp448DateTimePatternGenerator *instFromDefaultLocale=DateTimePatternGenerator::createInstance(status); in testAPI()
460DateTimePatternGenerator *instFromLocale=DateTimePatternGenerator::createInstance(Locale::getFrenc… in testAPI()
475 DateTimePatternGenerator *cloneDTPatternGen=instFromLocale->clone(); in testAPI()
496 DateTimePatternGenerator *gen = DateTimePatternGenerator::createInstance(deLocale, status); in testAPI()
621 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
646 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
672 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
705 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
743DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(Locale::getEnglish(), st… in testAPI()
780 DateTimePatternGenerator *randDTGen= DateTimePatternGenerator::createInstance(status); in testAPI()
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtptngts.cpp448DateTimePatternGenerator *instFromDefaultLocale=DateTimePatternGenerator::createInstance(status); in testAPI()
460DateTimePatternGenerator *instFromLocale=DateTimePatternGenerator::createInstance(Locale::getFrenc… in testAPI()
475 DateTimePatternGenerator *cloneDTPatternGen=instFromLocale->clone(); in testAPI()
496 DateTimePatternGenerator *gen = DateTimePatternGenerator::createInstance(deLocale, status); in testAPI()
621 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
646 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
672 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
705 DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(loc, status); in testAPI()
743DateTimePatternGenerator *patGen=DateTimePatternGenerator::createInstance(Locale::getEnglish(), st… in testAPI()
780 DateTimePatternGenerator *randDTGen= DateTimePatternGenerator::createInstance(status); in testAPI()
[all …]
/external/cldr/tools/cldr-code/src/main/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()
196 …public DateTimePatternGenerator getDTPGForCalendarType(String calendarType, List<CLDRFile> parentC… in getDTPGForCalendarType()
197 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getEmptyInstance(); in getDTPGForCalendarType()
227 …private void addAvailableFormatsWithParents(DateTimePatternGenerator dtpg, String calendarType, Li… in addAvailableFormatsWithParents()
[all …]
DCheckDates.java51 import com.ibm.icu.text.DateTimePatternGenerator;
52 import com.ibm.icu.text.DateTimePatternGenerator.VariableField;
66DateTimePatternGenerator.FormatParser formatParser = new DateTimePatternGenerator.FormatParser();
67 DateTimePatternGenerator dateTimePatternGenerator = DateTimePatternGenerator.getEmptyInstance();
73 Map<String, DateTimePatternGenerator> dtpgForType = new HashMap<>();
570 DateTimePatternGenerator dtpg = getDTPGForCalendarType(calendarType); in handleCheck()
1088 …static DateTimePatternGenerator.FormatParser formatParser = new DateTimePatternGenerator.FormatPar…
1096 … if (type == DateTimePatternGenerator.ERA && last == DateTimePatternGenerator.YEAR) {
1098 … } else if (type == DateTimePatternGenerator.YEAR && last == DateTimePatternGenerator.ERA) {
1146 public String toString(DateTimePatternGenerator.FormatParser formatParser) {
[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/cronet/third_party/icu/source/samples/dtptngsample/
Ddtptngsample.cpp55DateTimePatternGenerator *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/icu4c/source/samples/dtptngsample/
Ddtptngsample.cpp55DateTimePatternGenerator *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.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 …]
/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 …]
/external/cldr/tools/cldr-code/src/test/java/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/cldr-code/src/main/java/org/unicode/cldr/tool/
DCompareStockDatetime.java14 import com.ibm.icu.text.DateTimePatternGenerator;
35 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getEmptyInstance(); in main()
/external/cronet/third_party/icu/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/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/cldr-code/src/main/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);

1234