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;
1632 DateTimePatternType datetimePatternType = DateTimePatternType.fromPath(xpath);
1636 … if (!DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(datetimePatternType)) {
/external/cldr/tools/java/org/unicode/cldr/test/
DDateOrder.java14 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
76 …if (DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(DateTimePatternType.fromPath(pa… in getOrderingInfo()
DCheckDates.java28 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
519 DateTimePatternType dateTypePatternType = DateTimePatternType.fromPath(path); in handleCheck()
520 … if (DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(dateTypePatternType)) { in handleCheck()
702 …private void checkPattern(DateTimePatternType dateTypePatternType, String path, String fullPath, S… in checkPattern()
735 …if (dateTypePatternType == DateTimePatternType.AVAILABLE || dateTypePatternType == DateTimePattern… in checkPattern()
758 if (dateTypePatternType == DateTimePatternType.AVAILABLE) { in checkPattern()
777 if (dateTypePatternType == DateTimePatternType.STOCK) { in checkPattern()
813 } else if (dateTypePatternType == DateTimePatternType.INTERVAL) { in checkPattern()
DDisplayAndInputProcessor.java22 import org.unicode.cldr.util.DateTimeCanonicalizer.DateTimePatternType;
378 DateTimePatternType datetimePatternType = DateTimePatternType.fromPath(path); in processInput()
379 … if (DateTimePatternType.STOCK_AVAILABLE_INTERVAL_PATTERNS.contains(datetimePatternType)) { in processInput()