Home
last modified time | relevance | path

Searched refs:finalRules (Results 1 – 4 of 4) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/util/
DRuleBasedTimeZone.java32 private AnnualTimeZoneRule[] finalRules; field in RuleBasedTimeZone
67 if (finalRules == null) { in addTransitionRule()
68 finalRules = new AnnualTimeZoneRule[2]; in addTransitionRule()
69 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
70 } else if (finalRules[1] == null) { in addTransitionRule()
71 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
195 BitSet checkFinals = finalRules == null ? null : new BitSet(finalRules.length); in observesDaylightTime()
208 for (int i = 0; i < finalRules.length; i++) { in observesDaylightTime()
209 if (finalRules[i].equals(toRule)) { in observesDaylightTime()
213 if (checkFinals.cardinality() == finalRules.length) { in observesDaylightTime()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DRuleBasedTimeZone.java31 private AnnualTimeZoneRule[] finalRules; field in RuleBasedTimeZone
70 if (finalRules == null) { in addTransitionRule()
71 finalRules = new AnnualTimeZoneRule[2]; in addTransitionRule()
72 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
73 } else if (finalRules[1] == null) { in addTransitionRule()
74 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
211 BitSet checkFinals = finalRules == null ? null : new BitSet(finalRules.length); in observesDaylightTime()
224 for (int i = 0; i < finalRules.length; i++) { in observesDaylightTime()
225 if (finalRules[i].equals(toRule)) { in observesDaylightTime()
229 if (checkFinals.cardinality() == finalRules.length) { in observesDaylightTime()
[all …]
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp902 map<string,FinalRule> finalRules; variable
920 return finalRules.find(p.second.ruleid) == finalRules.end(); in mapsToUnknownRule()
964 FinalRule& fr = finalRules[id]; in readFinalZonesAndRules()
989 if (count_if(finalRules.begin(), finalRules.end(), isNotSet) != 0) { in readFinalZonesAndRules()
1000 for_each(finalRules.begin(), finalRules.end(), insertRuleID); in readFinalZonesAndRules()
1470 << " final zones and " << finalRules.size() in main()
1818 for(map<string,FinalRule>::iterator i=finalRules.begin(); in main()
1819 i!=finalRules.end(); ++i) { in main()
Dzic.c316 static const struct rule ** finalRules = NULL; variable
592 if (r1==finalRules[i]) return i; /* [sic] pointer comparison */ in add_icu_final_rules()
595 finalRules = (const struct rule**) (void*) erealloc((char *) finalRules, in add_icu_final_rules()
596 (finalRulesCount + 2) * sizeof(*finalRules)); in add_icu_final_rules()
597 finalRules[finalRulesCount++] = r1; in add_icu_final_rules()
598 finalRules[finalRulesCount++] = r2; in add_icu_final_rules()
758 emit_icu_rule(icuFile, finalRules[i], i); in main()