Home
last modified time | relevance | path

Searched refs:rule2 (Results 1 – 18 of 18) sorted by relevance

/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 …n ((InitialTimeZoneRule*)rule1)->InitialTimeZoneRule::isEquivalentTo(*(InitialTimeZoneRule*)rule2); in izrule_isEquivalentTo()
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);
Dnfrule.cpp147 NFRule* rule2 = NULL; in makeRules() local
163 rule2 = new NFRule(rbnf, UnicodeString(), status); in makeRules()
165 if (rule2 == 0) { in makeRules()
170 rule2->baseValue = rule1->baseValue; in makeRules()
180 rule2->setType(kProperFractionRule); in makeRules()
187 rule2->baseValue = rule1->baseValue; in makeRules()
193 rule2->radix = rule1->radix; in makeRules()
194 rule2->exponent = rule1->exponent; in makeRules()
202 rule2->extractSubstitutions(owner, sbuf, predecessor, status); in makeRules()
220 if (rule2 != NULL) { in makeRules()
[all …]
Dnfrs.cpp335 util_equalRules(const NFRule* rule1, const NFRule* rule2) in util_equalRules() argument
338 if (rule2) { in util_equalRules()
339 return *rule1 == *rule2; in util_equalRules()
341 } else if (!rule2) { in util_equalRules()
Drbt_set.cpp140 const icu::TransliterationRule& rule2, in maskingError() argument
155 rule2.toRule(r, FALSE); in maskingError()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRule.java164 NFRule rule2 = null; in makeRules()
181 rule2 = new NFRule(ownersOwner, null); in makeRules()
183 rule2.baseValue = rule1.baseValue; in makeRules()
192 rule2.baseValue = PROPER_FRACTION_RULE; in makeRules()
198 rule2.baseValue = rule1.baseValue; in makeRules()
204 rule2.radix = rule1.radix; in makeRules()
205 rule2.exponent = rule1.exponent; in makeRules()
213 rule2.extractSubstitutions(owner, sbuf.toString(), predecessor); in makeRules()
232 if (rule2 != null) { in makeRules()
233 if (rule2.baseValue >= 0) { in makeRules()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRule.java163 NFRule rule2 = null; in makeRules()
180 rule2 = new NFRule(ownersOwner, null); in makeRules()
182 rule2.baseValue = rule1.baseValue; in makeRules()
191 rule2.baseValue = PROPER_FRACTION_RULE; in makeRules()
197 rule2.baseValue = rule1.baseValue; in makeRules()
203 rule2.radix = rule1.radix; in makeRules()
204 rule2.exponent = rule1.exponent; in makeRules()
212 rule2.extractSubstitutions(owner, sbuf.toString(), predecessor); in makeRules()
231 if (rule2 != null) { in makeRules()
232 if (rule2.baseValue >= 0) { in makeRules()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNotificationManagerTest.java274 AutomaticZenRule rule2 = in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds() local
282 String id2 = notificationManager.addAutomaticZenRule(rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
286 assertThat(notificationManager.getAutomaticZenRule(id2)).isEqualTo(rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
287 assertThat(notificationManager.getAutomaticZenRules()).containsExactly(id1, rule1, id2, rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
350 AutomaticZenRule rule2 = in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue() local
358 String id2 = notificationManager.addAutomaticZenRule(rule2); in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue()
415 AutomaticZenRule rule2 = in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue() local
423 String id2 = notificationManager.addAutomaticZenRule(rule2); in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue()
428 assertThat(notificationManager.getAutomaticZenRule(id2)).isEqualTo(rule2); in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue()
429 assertThat(notificationManager.getAutomaticZenRules()).containsExactly(id2, rule2); in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue()
/external/python/cpython2/Demo/tkinter/guido/
Dmbox.py112 rule2 = Frame(root, {'bg': 'black'})
113 rule2.pack({'fill': 'x'})
/external/antlr/tool/src/test/java/org/antlr/test/
DTestTreeNodeStream.java343 Tree rule2 = nodes[7]; in testDeepTree() local
353 rules.addChild(rule2); in testDeepTree()
354 rule2.addChild(id2); in testDeepTree()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationAPITest.java608 String rule2 = col2.getRules();
611 doAssert(!rule1.equals(rule2), "Default collator getRules failed");
612 doAssert(!rule2.equals(rule3), "Default collator getRules failed");
616 col4 = new RuleBasedCollator(rule2);
623 doAssert(rule2.equals(rule4), "Default collator getRules failed");
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationAPITest.java605 String rule2 = col2.getRules();
608 doAssert(!rule1.equals(rule2), "Default collator getRules failed");
609 doAssert(!rule2.equals(rule3), "Default collator getRules failed");
613 col4 = new RuleBasedCollator(rule2);
620 doAssert(rule2.equals(rule4), "Default collator getRules failed");
/external/icu/icu4c/source/test/cintltst/
Dcapitst.c455 const UChar *rule1, *rule2, *rule3, *rule4; in TestRuleBasedColl() local
490 rule2 = ucol_getRules(col2, &tempLength); in TestRuleBasedColl()
493 doAssert((u_strcmp(rule1, rule2) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
494 doAssert((u_strcmp(rule2, rule3) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
497 col4=ucol_openRules(rule2, u_strlen(rule2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestRuleBasedColl()
503 doAssert((u_strcmp(rule2, rule4) == 0), "Default collator getRules failed"); in TestRuleBasedColl()
Dcmsccoll.c2272 const char* rule2 = in TestBeforePrefixFailure()
2281 genericRulesStarter(rule2, test, UPRV_LENGTHOF(test)); in TestBeforePrefixFailure()
3585 UChar rule2[256]={0x26, 0x7a, 0x3c, 0x0161, 0}; /* &z<s with caron*/ in TestVI5913() local
3717 ruleLen = u_strlen(rule2); in TestVI5913()
3718 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3776 static const UChar rule2[]={ in TestTailor6179() local
3839 ruleLen = u_strlen(rule2); in TestTailor6179()
3840 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, &parseError, &status); in TestTailor6179()
3877 UChar rule2[256]= {0x26, 0x4C, 0xb7, 0x3c, 0x3c, 0x61, 0}; in TestUCAPrecontext() local
3962 ruleLen = u_strlen(rule2); in TestUCAPrecontext()
[all …]
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp302 UnicodeString rule2 = col2->getRules(); in TestRuleBasedColl() local
305 doAssert(rule1 != rule2, "Default collator getRules failed"); in TestRuleBasedColl()
306 doAssert(rule2 != rule3, "Default collator getRules failed"); in TestRuleBasedColl()
309 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl()
316 doAssert(rule2 == rule4, "Default collator getRules failed"); in TestRuleBasedColl()
Dtranstst.cpp3677 …UnicodeString rule2 =CharsToUnicodeString("(.) <> &hex/unicode($1) &name($1); . > $1; [{}] >\\u002… in TestInvalidBackRef() local
3681 Transliterator *t2 = Transliterator::createFromRules("Test2", rule2, UTRANS_FORWARD, pe, ec); in TestInvalidBackRef()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DTransliteratorTest.java2803 String rule2 ="(.) <> &hex/unicode($1) &name($1); . > $1; [{}] >\u0020;"; in TestInvalidBackRef() local
2810 … Transliterator t2= Transliterator.createFromRules("Test2", rule2, Transliterator.FORWARD); in TestInvalidBackRef()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DTransliteratorTest.java2800 String rule2 ="(.) <> &hex/unicode($1) &name($1); . > $1; [{}] >\u0020;"; in TestInvalidBackRef() local
2807 … Transliterator t2= Transliterator.createFromRules("Test2", rule2, Transliterator.FORWARD); in TestInvalidBackRef()