Home
last modified time | relevance | path

Searched refs:DateTimePatternType (Results 1 – 6 of 6) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DDateTimeCanonicalizer.java13 public enum DateTimePatternType { enum in DateTimeCanonicalizer
16 public static final Set<DateTimePatternType> STOCK_AVAILABLE_INTERVAL_PATTERNS = Collections
17 .unmodifiableSet(EnumSet.of(DateTimePatternType.STOCK, DateTimePatternType.AVAILABLE,
18 DateTimePatternType.INTERVAL));
20 public static DateTimePatternType fromPath(String path) { in fromPath()
21 return !path.contains("/dates") ? DateTimePatternType.NA in fromPath()
23 ? DateTimePatternType.STOCK in fromPath()
24 : path.contains("/dateFormatItem") ? DateTimePatternType.AVAILABLE in fromPath()
25 : path.contains("/intervalFormatItem") ? DateTimePatternType.INTERVAL in fromPath()
26 : path.contains("/timeZoneNames/hourFormat") ? DateTimePatternType.GMT in fromPath()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DFindPreferredHours.java17 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
83 final DateTimePatternType type;
86 public Hours(DateTimePatternType type, String variable) { in Hours()
129 DateTimePatternType type = DateTimePatternType.fromPath(path); in main()
130 if (type == DateTimePatternType.NA || type == DateTimePatternType.GMT) { in main()
174 if (hours.type == DateTimePatternType.STOCK) { in main()
DCLDRModify.java45 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
1898 DateTimePatternType datetimePatternType = DateTimePatternType.fromPath(xpath);
1902 … if (!DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(datetimePatternType)) {
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckDates.java28 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
547 DateTimePatternType dateTypePatternType = DateTimePatternType.fromPath(path); in handleCheck()
548 … if (DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(dateTypePatternType)) { in handleCheck()
551 if (dateTypePatternType != DateTimePatternType.INTERVAL) { in handleCheck()
734 …private void checkPattern(DateTimePatternType dateTypePatternType, String path, String fullPath, S… in checkPattern()
768 …if (dateTypePatternType == DateTimePatternType.AVAILABLE || dateTypePatternType == DateTimePattern… in checkPattern()
791 if (dateTypePatternType == DateTimePatternType.AVAILABLE) { in checkPattern()
855 if (dateTypePatternType == DateTimePatternType.STOCK) { in checkPattern()
891 } else if (dateTypePatternType == DateTimePatternType.INTERVAL) { in checkPattern()
DDateOrder.java14 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
76 …if (DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(DateTimePatternType.fromPath(pa… in getOrderingInfo()
DDisplayAndInputProcessor.java22 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
361 DateTimePatternType datetimePatternType = DateTimePatternType.fromPath(path); in processInput()
362 … if (DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(datetimePatternType)) { in processInput()