Home
last modified time | relevance | path

Searched refs:dtpg (Results 1 – 11 of 11) 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.cpp868 DateTimePatternGenerator& dtpg; member
870 AppendItemFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} in AppendItemFormatsSink()
878 UDateTimePatternField field = dtpg.getAppendFormatNumber(key); in put()
881 if (dtpg.getAppendItemFormat(field).isEmpty() && !valueStr.isEmpty()) { in put()
882 dtpg.setAppendItemFormat(field, valueStr); in put()
891 if (dtpg.getAppendItemFormat(field).isEmpty()) { in fillInMissing()
892 dtpg.setAppendItemFormat(field, defaultItemFormat); in fillInMissing()
901 DateTimePatternGenerator& dtpg; member
903 AppendItemNamesSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} in AppendItemNamesSink()
912 UDateTimePatternField field = dtpg.getFieldAndWidthIndices(key, &width); in put()
[all …]
Ddatefmt.cpp103 LocalPointer<DateTimePatternGenerator> dtpg( in createObject() local
111 dtpg->getBestPattern(fSkeleton, status)), in createObject()
/external/icu/libandroidicu/include/unicode/
Dudatpg.h182 udatpg_close(UDateTimePatternGenerator *dtpg);
212 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
238 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg,
274 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
362 udatpg_addPattern(UDateTimePatternGenerator *dtpg,
389 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg,
404 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg,
422 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
439 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
469 udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg,
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dudatpg.h182 udatpg_close(UDateTimePatternGenerator *dtpg);
212 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
238 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg,
274 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
362 udatpg_addPattern(UDateTimePatternGenerator *dtpg,
389 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg,
404 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg,
422 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
439 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
469 udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg,
[all …]
/external/icu/icu4c/source/test/cintltst/
Dudatpg_test.c79 UDateTimePatternGenerator *dtpg, *dtpg2; in TestOpenClose() local
84 dtpg=udatpg_open(NULL, &errorCode); in TestOpenClose()
89 udatpg_close(dtpg); in TestOpenClose()
92 dtpg=udatpg_open("de", &errorCode); in TestOpenClose()
99 udatpg_setDecimal(dtpg, pipeString, 1); in TestOpenClose()
102 dtpg2=udatpg_clone(dtpg, &errorCode); in TestOpenClose()
115 udatpg_close(dtpg); in TestOpenClose()
135 UDateTimePatternGenerator *dtpg; in TestUsage() local
143 dtpg=udatpg_open("fi", &errorCode); in TestUsage()
148 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.cpp1078 DateTimePatternGenerator * dtpg = DateTimePatternGenerator::createInstance(locale, status); in testAllFieldPatterns() local
1097 UnicodeString pattern = dtpg->getBestPattern(skeleton, status); in testAllFieldPatterns()
1129 delete dtpg; in testAllFieldPatterns()
1310 DateTimePatternGenerator * dtpg = DateTimePatternGenerator::createInstance(locale, status); in testGetFieldDisplayNames() local
1317 … UnicodeString getName = dtpg->getFieldDisplayName(testDataPtr->field, testDataPtr->width); in testGetFieldDisplayNames()
1322 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.cpp1520 UDateTimePatternConflict udatpg_addPattern_android(UDateTimePatternGenerator * dtpg, const UChar * … in udatpg_addPattern_android() argument
1521 …return udatpg_addPattern(dtpg, pattern, patternLength, override, conflictingPattern, capacity, pLe… in udatpg_addPattern_android()
1523 UDateTimePatternGenerator * udatpg_clone_android(const UDateTimePatternGenerator * dtpg, UErrorCode… in udatpg_clone_android() argument
1524 return udatpg_clone(dtpg, pErrorCode); in udatpg_clone_android()
1526 void udatpg_close_android(UDateTimePatternGenerator * dtpg) { in udatpg_close_android() argument
1527 udatpg_close(dtpg); in udatpg_close_android()
1529 const UChar * udatpg_getAppendItemFormat_android(const UDateTimePatternGenerator * dtpg, UDateTimeP… in udatpg_getAppendItemFormat_android() argument
1530 return udatpg_getAppendItemFormat(dtpg, field, pLength); in udatpg_getAppendItemFormat_android()
1532 const UChar * udatpg_getAppendItemName_android(const UDateTimePatternGenerator * dtpg, UDateTimePat… in udatpg_getAppendItemName_android() argument
1533 return udatpg_getAppendItemName(dtpg, field, pLength); in udatpg_getAppendItemName_android()
[all …]