Home
last modified time | relevance | path

Searched refs:rule1 (Results 1 – 17 of 17) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRule.java141 NFRule rule1 = new NFRule(ownersOwner, description); in makeRules() local
142 description = rule1.ruleText; in makeRules()
154 || rule1.baseValue == PROPER_FRACTION_RULE in makeRules()
155 || rule1.baseValue == NEGATIVE_NUMBER_RULE in makeRules()
156 || rule1.baseValue == INFINITY_RULE in makeRules()
157 || rule1.baseValue == NAN_RULE) in makeRules()
159 rule1.extractSubstitutions(owner, description, predecessor); in makeRules()
170 if ((rule1.baseValue > 0 in makeRules()
171 && rule1.baseValue % (power(rule1.radix, rule1.exponent)) == 0) in makeRules()
172 || rule1.baseValue == IMPROPER_FRACTION_RULE in makeRules()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRule.java140 NFRule rule1 = new NFRule(ownersOwner, description); in makeRules() local
141 description = rule1.ruleText; in makeRules()
153 || rule1.baseValue == PROPER_FRACTION_RULE in makeRules()
154 || rule1.baseValue == NEGATIVE_NUMBER_RULE in makeRules()
155 || rule1.baseValue == INFINITY_RULE in makeRules()
156 || rule1.baseValue == NAN_RULE) in makeRules()
158 rule1.extractSubstitutions(owner, description, predecessor); in makeRules()
169 if ((rule1.baseValue > 0 in makeRules()
170 && rule1.baseValue % (power(rule1.radix, rule1.exponent)) == 0) in makeRules()
171 || rule1.baseValue == IMPROPER_FRACTION_RULE in makeRules()
[all …]
/external/icu/icu4c/source/i18n/
Dzrule.cpp38 zrule_equals(const ZRule* rule1, const ZRule* rule2) { in zrule_equals() argument
39 return *(const TimeZoneRule*)rule1 == *(const TimeZoneRule*)rule2; in zrule_equals()
62 zrule_isEquivalentTo(ZRule* rule1, ZRule* rule2) { in zrule_isEquivalentTo() argument
63 return ((TimeZoneRule*)rule1)->TimeZoneRule::isEquivalentTo(*(TimeZoneRule*)rule2); in zrule_isEquivalentTo()
87 izrule_equals(const IZRule* rule1, const IZRule* rule2) { in izrule_equals() argument
88 return *(const InitialTimeZoneRule*)rule1 == *(const InitialTimeZoneRule*)rule2; in izrule_equals()
113 izrule_isEquivalentTo(IZRule* rule1, IZRule* rule2) { in izrule_isEquivalentTo() argument
114 …return ((InitialTimeZoneRule*)rule1)->InitialTimeZoneRule::isEquivalentTo(*(InitialTimeZoneRule*)r… in izrule_isEquivalentTo()
Dnfrule.cpp119 NFRule* rule1 = new NFRule(rbnf, description, status); in makeRules() local
121 if (rule1 == 0) { in makeRules()
125 description = rule1->fRuleText; in makeRules()
137 || rule1->getType() == kProperFractionRule in makeRules()
138 || rule1->getType() == kNegativeNumberRule in makeRules()
139 || rule1->getType() == kInfinityRule in makeRules()
140 || rule1->getType() == kNaNRule) in makeRules()
142 rule1->extractSubstitutions(owner, description, predecessor, status); in makeRules()
153 if ((rule1->baseValue > 0 in makeRules()
154 && (rule1->baseValue % util64_pow(rule1->radix, rule1->exponent)) == 0) in makeRules()
[all …]
Dzrule.h68 zrule_equals(const ZRule* rule1, const ZRule* rule2);
105 zrule_isEquivalentTo(ZRule* rule1, ZRule* rule2);
147 izrule_equals(const IZRule* rule1, const IZRule* rule2);
184 izrule_isEquivalentTo(IZRule* rule1, IZRule* rule2);
Drbtz.cpp300 TimeZoneRule *rule1 = (TimeZoneRule*)fFinalRules->elementAt(1); in complete() local
303 …UBool avail1 = rule1->getNextStart(lastTransitionTime, curRule->getRawOffset(), curRule->getDSTSav… in complete()
324rule1->getNextStart(tt0, rule0->getRawOffset(), rule0->getDSTSavings(), false, final1->time); in complete()
326 final1->to = rule1; in complete()
330 final0->to = rule1; in complete()
331 … rule0->getNextStart(tt1, rule1->getRawOffset(), rule1->getDSTSavings(), false, final1->time); in complete()
332 final1->from = rule1; in complete()
Drbt_set.cpp139 static void maskingError(const icu::TransliterationRule& rule1, in maskingError() argument
148 rule1.toRule(r, FALSE); in maskingError()
Dnfrs.cpp335 util_equalRules(const NFRule* rule1, const NFRule* rule2) in util_equalRules() argument
337 if (rule1) { in util_equalRules()
339 return *rule1 == *rule2; in util_equalRules()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNotificationManagerTest.java267 AutomaticZenRule rule1 = in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds() local
281 String id1 = notificationManager.addAutomaticZenRule(rule1); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
285 assertThat(notificationManager.getAutomaticZenRule(id1)).isEqualTo(rule1); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
287 assertThat(notificationManager.getAutomaticZenRules()).containsExactly(id1, rule1, id2, rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
343 AutomaticZenRule rule1 = in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue() local
357 String id1 = notificationManager.addAutomaticZenRule(rule1); in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue()
369 assertThat(notificationManager.getAutomaticZenRule(id1)).isEqualTo(rule1); in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue()
372 .containsExactly(id1, rule1, id2, updatedRule); in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue()
408 AutomaticZenRule rule1 = in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue() local
422 String id1 = notificationManager.addAutomaticZenRule(rule1); in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue()
/external/antlr/tool/src/test/java/org/antlr/test/
DTestTreeNodeStream.java338 Tree rule1 = nodes[2]; in testDeepTree() local
348 rules.addChild(rule1); in testDeepTree()
349 rule1.addChild(id); in testDeepTree()
350 rule1.addChild(block); in testDeepTree()
/external/icu/icu4c/source/test/cintltst/
Dcmsccoll.c2268 const char* rule1 = in TestBeforePrefixFailure()
2280 genericRulesStarter(rule1, test, UPRV_LENGTHOF(test)); in TestBeforePrefixFailure()
2294 uStringLen = u_unescape(rule1, string, 256); in TestBeforePrefixFailure()
2320 const char* rule1 = in TestPrefixCompose() local
2337 uStringLen = u_unescape(rule1, string, 256); in TestPrefixCompose()
3770 static const UChar rule1[]={ in TestTailor6179() local
3810 ruleLen = u_strlen(rule1); in TestTailor6179()
3811 coll = ucol_openRules(rule1, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestTailor6179()
3876 UChar rule1[256]= {0x26, 0xb7, 0x3c, 0x61, 0}; /* & middle-dot < a */ in TestUCAPrecontext() local
3939 ruleLen = u_strlen(rule1); in TestUCAPrecontext()
[all …]
Dcapitst.c455 const UChar *rule1, *rule2, *rule3, *rule4; in TestRuleBasedColl() local
489 rule1 = ucol_getRules(col1, &tempLength); in TestRuleBasedColl()
493 doAssert((u_strcmp(rule1, rule2) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
495 doAssert((u_strcmp(rule1, rule3) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationAPITest.java607 String rule1 = col1.getRules();
611 doAssert(!rule1.equals(rule2), "Default collator getRules failed");
613 doAssert(!rule1.equals(rule3), "Default collator getRules failed");
DCollationMiscTest.java379 String rule1 = "&\u30a7<<<\u30ab|\u30fc=\u30ac|\u30fc"; in TestPrefixCompose() local
381 String string = rule1; in TestPrefixCompose()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationAPITest.java604 String rule1 = col1.getRules();
608 doAssert(!rule1.equals(rule2), "Default collator getRules failed");
610 doAssert(!rule1.equals(rule3), "Default collator getRules failed");
DCollationMiscTest.java376 String rule1 = "&\u30a7<<<\u30ab|\u30fc=\u30ac|\u30fc"; in TestPrefixCompose() local
378 String string = rule1; in TestPrefixCompose()
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp301 UnicodeString rule1 = col1->getRules(); in TestRuleBasedColl() local
305 doAssert(rule1 != rule2, "Default collator getRules failed"); in TestRuleBasedColl()
307 doAssert(rule1 != rule3, "Default collator getRules failed"); in TestRuleBasedColl()