Home
last modified time | relevance | path

Searched refs:dtpg (Results 1 – 15 of 15) sorted by relevance

/external/icu/icu4c/source/i18n/
Dudatpg.cpp46 udatpg_close(UDateTimePatternGenerator *dtpg) { in udatpg_close() argument
47 delete (DateTimePatternGenerator *)dtpg; in udatpg_close()
51 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode) { in udatpg_clone() argument
55 return (UDateTimePatternGenerator *)(((const DateTimePatternGenerator *)dtpg)->clone()); in udatpg_clone()
59 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, in udatpg_getBestPattern() argument
63 return udatpg_getBestPatternWithOptions(dtpg, skeleton, length, in udatpg_getBestPattern()
69 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, in udatpg_getBestPatternWithOptions() argument
82 …UnicodeString result=((DateTimePatternGenerator *)dtpg)->getBestPattern(skeletonString, options, *… in udatpg_getBestPatternWithOptions()
123 udatpg_addPattern(UDateTimePatternGenerator *dtpg, in udatpg_addPattern() argument
137 UDateTimePatternConflict result=((DateTimePatternGenerator *)dtpg)-> in udatpg_addPattern()
[all …]
Ddtptngen.cpp930 DateTimePatternGenerator& dtpg; member
932 AppendItemFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} in AppendItemFormatsSink()
940 UDateTimePatternField field = dtpg.getAppendFormatNumber(key); in put()
943 if (dtpg.getAppendItemFormat(field).isEmpty() && !valueStr.isEmpty()) { in put()
944 dtpg.setAppendItemFormat(field, valueStr); in put()
953 if (dtpg.getAppendItemFormat(field).isEmpty()) { in fillInMissing()
954 dtpg.setAppendItemFormat(field, defaultItemFormat); in fillInMissing()
963 DateTimePatternGenerator& dtpg; member
965 AppendItemNamesSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} in AppendItemNamesSink()
974 UDateTimePatternField field = dtpg.getFieldAndWidthIndices(key, &width); in put()
[all …]
Ddatefmt.cpp103 LocalPointer<DateTimePatternGenerator> dtpg( in createObject() local
111 dtpg->getBestPattern(fSkeleton, status)), in createObject()
Dsmpdtfmt.cpp758 …LocalPointer<DateTimePatternGenerator> dtpg(DateTimePatternGenerator::createInstanceNoStdPat(local… in construct() local
761 timePattern = dtpg->getBestPattern(timeSkeleton, useStatus); in construct()
/external/icu/libandroidicu/include/unicode/
Dudatpg.h186 udatpg_close(UDateTimePatternGenerator *dtpg);
216 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
242 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg,
278 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
366 udatpg_addPattern(UDateTimePatternGenerator *dtpg,
393 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg,
408 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg,
426 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
443 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
473 udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg,
[all …]
/external/icu/libicu/cts_headers/unicode/
Dudatpg.h186 udatpg_close(UDateTimePatternGenerator *dtpg);
216 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
242 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg,
278 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
366 udatpg_addPattern(UDateTimePatternGenerator *dtpg,
393 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg,
408 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg,
426 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
443 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
473 udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg,
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dudatpg.h186 udatpg_close(UDateTimePatternGenerator *dtpg);
216 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
242 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg,
278 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
366 udatpg_addPattern(UDateTimePatternGenerator *dtpg,
393 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg,
408 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg,
426 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
443 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
473 udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg,
[all …]
/external/icu/icu4c/source/test/cintltst/
Dudatpg_test.c83 UDateTimePatternGenerator *dtpg, *dtpg2; in TestOpenClose() local
88 dtpg=udatpg_open(NULL, &errorCode); in TestOpenClose()
93 udatpg_close(dtpg); in TestOpenClose()
96 dtpg=udatpg_open("de", &errorCode); in TestOpenClose()
103 udatpg_setDecimal(dtpg, pipeString, 1); in TestOpenClose()
106 dtpg2=udatpg_clone(dtpg, &errorCode); in TestOpenClose()
119 udatpg_close(dtpg); in TestOpenClose()
139 UDateTimePatternGenerator *dtpg; in TestUsage() local
147 dtpg=udatpg_open("fi", &errorCode); in TestUsage()
152 length = udatpg_getBestPattern(dtpg, testSkeleton1, 4, in TestUsage()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateTimeGeneratorTest.java897 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetSkeleton() local
901 if(!dtpg.getSkeleton(cases[i]).equals(results[i])){ in TestGetSkeleton()
905 dtpg.getSkeleton(cases[i])); in TestGetSkeleton()
915 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetCanonicalSkeletonAllowingDuplicates() local
919 if(!dtpg.getCanonicalSkeletonAllowingDuplicates(cases[i]).equals(results[i])){ in TestGetCanonicalSkeletonAllowingDuplicates()
923 dtpg.getCanonicalSkeletonAllowingDuplicates(cases[i])); in TestGetCanonicalSkeletonAllowingDuplicates()
933 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetBaseSkeleton() local
937 if(!dtpg.getBaseSkeleton(cases[i]).equals(results[i])){ in TestGetBaseSkeleton()
941 dtpg.getBaseSkeleton(cases[i])); in TestGetBaseSkeleton()
951 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetSkeletons() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateTimeGeneratorTest.java900 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetSkeleton() local
904 if(!dtpg.getSkeleton(cases[i]).equals(results[i])){ in TestGetSkeleton()
908 dtpg.getSkeleton(cases[i])); in TestGetSkeleton()
918 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetCanonicalSkeletonAllowingDuplicates() local
922 if(!dtpg.getCanonicalSkeletonAllowingDuplicates(cases[i]).equals(results[i])){ in TestGetCanonicalSkeletonAllowingDuplicates()
926 dtpg.getCanonicalSkeletonAllowingDuplicates(cases[i])); in TestGetCanonicalSkeletonAllowingDuplicates()
936 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetBaseSkeleton() local
940 if(!dtpg.getBaseSkeleton(cases[i]).equals(results[i])){ in TestGetBaseSkeleton()
944 dtpg.getBaseSkeleton(cases[i])); in TestGetBaseSkeleton()
954 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(); in TestGetSkeletons() local
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtptngts.cpp1080 DateTimePatternGenerator * dtpg = DateTimePatternGenerator::createInstance(locale, status); in testAllFieldPatterns() local
1099 UnicodeString pattern = dtpg->getBestPattern(skeleton, status); in testAllFieldPatterns()
1131 delete dtpg; in testAllFieldPatterns()
1312 DateTimePatternGenerator * dtpg = DateTimePatternGenerator::createInstance(locale, status); in testGetFieldDisplayNames() local
1319 … UnicodeString getName = dtpg->getFieldDisplayName(testDataPtr->field, testDataPtr->width); in testGetFieldDisplayNames()
1324 delete dtpg; in testGetFieldDisplayNames()
1338 …LocalPointer<DateTimePatternGenerator> dtpg(DateTimePatternGenerator::createInstance(testLocale, s… in testJjMapping() local
1342 …UnicodeString jPattern = dtpg->getBestPattern(jSkeleton, UDATPG_MATCH_ALL_FIELDS_LENGTH, status); … in testJjMapping()
1362 …LocalPointer<DateTimePatternGenerator> dtpg(DateTimePatternGenerator::createInstance(*localePtr, s… in testJjMapping() local
1378 UnicodeString jPattern = dtpg->getBestPattern(jSkeleton, status); in testJjMapping()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DCompareStockDatetime.java35 DateTimePatternGenerator dtpg = DateTimePatternGenerator.getEmptyInstance(); in main() local
50 String skeleton = dtpg.getSkeleton(value); in main()
/external/icu/libandroidicu/static_shim/
Dshim.cpp310 void udatpg_close_android(UDateTimePatternGenerator * dtpg) { in udatpg_close_android() argument
311 udatpg_close(dtpg); in udatpg_close_android()
313 int32_t udatpg_getBestPattern_android(UDateTimePatternGenerator * dtpg, const UChar * skeleton, int… in udatpg_getBestPattern_android() argument
314 return udatpg_getBestPattern(dtpg, skeleton, length, bestPattern, capacity, pErrorCode); in udatpg_getBestPattern_android()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCalendar.java3592 … DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstanceNoStdPat(locale); in getPatternData() local
3594 dateTimePatterns[i] = dtpg.getBestPattern(TIME_SKELETONS[i]); in getPatternData()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java3699 … DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstanceNoStdPat(locale); in getPatternData() local
3701 dateTimePatterns[i] = dtpg.getBestPattern(TIME_SKELETONS[i]); in getPatternData()