Home
last modified time | relevance | path

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

12

/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.h64 zrule_equals(const ZRule* rule1, const ZRule* rule2);
101 zrule_isEquivalentTo(ZRule* rule1, ZRule* rule2);
143 izrule_equals(const IZRule* rule1, const IZRule* rule2);
180 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/cronet/third_party/icu/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.h64 zrule_equals(const ZRule* rule1, const ZRule* rule2);
101 zrule_isEquivalentTo(ZRule* rule1, ZRule* rule2);
143 izrule_equals(const IZRule* rule1, const IZRule* rule2);
180 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/libicu/cts_headers/
Dzrule.h64 zrule_equals(const ZRule* rule1, const ZRule* rule2);
101 zrule_isEquivalentTo(ZRule* rule1, ZRule* rule2);
143 izrule_equals(const IZRule* rule1, const IZRule* rule2);
180 izrule_isEquivalentTo(IZRule* rule1, IZRule* rule2);
/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/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowNotificationManagerTest.java380 AutomaticZenRule rule2 = in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds() local
388 String id2 = notificationManager.addAutomaticZenRule(rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
392 assertThat(notificationManager.getAutomaticZenRule(id2)).isEqualTo(rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
393 assertThat(notificationManager.getAutomaticZenRules()).containsExactly(id1, rule1, id2, rule2); in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
456 AutomaticZenRule rule2 = in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue() local
464 String id2 = notificationManager.addAutomaticZenRule(rule2); in updateAutomaticZenRule_existingId_shouldUpdateRuleAndReturnTrue()
494 AutomaticZenRule rule2 = in updateAutomaticZenRule_nullOwnerWithConfigurationActivity_updateRuleAndReturnTrue() local
504 String id2 = notificationManager.addAutomaticZenRule(rule2); in updateAutomaticZenRule_nullOwnerWithConfigurationActivity_updateRuleAndReturnTrue()
563 AutomaticZenRule rule2 = in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue() local
571 String id2 = notificationManager.addAutomaticZenRule(rule2); in removeAutomaticZenRule_existingId_shouldRemoveRuleAndReturnTrue()
[all …]
/external/cronet/net/base/
Dscheme_host_port_matcher_rule_unittest.cc188 SchemeHostPortMatcherHostnamePatternRule rule2("", ".foo2.com", -1); in TEST() local
189 suffix_matching_rule = rule2.GenerateSuffixMatchingRule(); in TEST()
190 EXPECT_EQ(".foo2.com", rule2.ToString()); in TEST()
193 rule2.Evaluate(GURL("http://www.foo2.com"))); in TEST()
/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/cronet/third_party/icu/source/test/cintltst/
Dcapitst.c459 const UChar *rule1, *rule2, *rule3, *rule4; in TestRuleBasedColl() local
494 rule2 = ucol_getRules(col2, &tempLength); in TestRuleBasedColl()
497 doAssert((u_strcmp(rule1, rule2) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
498 doAssert((u_strcmp(rule2, rule3) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
501 col4=ucol_openRules(rule2, u_strlen(rule2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestRuleBasedColl()
507 doAssert((u_strcmp(rule2, rule4) == 0), "Default collator getRules failed"); in TestRuleBasedColl()
Dcmsccoll.c2275 const char* rule2 = in TestBeforePrefixFailure()
2284 genericRulesStarter(rule2, test, UPRV_LENGTHOF(test)); in TestBeforePrefixFailure()
3588 UChar rule2[256]={0x26, 0x7a, 0x3c, 0x0161, 0}; /* &z<s with caron*/ in TestVI5913() local
3720 ruleLen = u_strlen(rule2); in TestVI5913()
3721 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3779 static const UChar rule2[]={ in TestTailor6179() local
3842 ruleLen = u_strlen(rule2); in TestTailor6179()
3843 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, &parseError, &status); in TestTailor6179()
3880 UChar rule2[256]= {0x26, 0x4C, 0xb7, 0x3c, 0x3c, 0x61, 0}; in TestUCAPrecontext() local
3965 ruleLen = u_strlen(rule2); in TestUCAPrecontext()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcapitst.c459 const UChar *rule1, *rule2, *rule3, *rule4; in TestRuleBasedColl() local
494 rule2 = ucol_getRules(col2, &tempLength); in TestRuleBasedColl()
497 doAssert((u_strcmp(rule1, rule2) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
498 doAssert((u_strcmp(rule2, rule3) != 0), "Default collator getRules failed"); in TestRuleBasedColl()
501 col4=ucol_openRules(rule2, u_strlen(rule2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestRuleBasedColl()
507 doAssert((u_strcmp(rule2, rule4) == 0), "Default collator getRules failed"); in TestRuleBasedColl()
Dcmsccoll.c2275 const char* rule2 = in TestBeforePrefixFailure()
2284 genericRulesStarter(rule2, test, UPRV_LENGTHOF(test)); in TestBeforePrefixFailure()
3588 UChar rule2[256]={0x26, 0x7a, 0x3c, 0x0161, 0}; /* &z<s with caron*/ in TestVI5913() local
3720 ruleLen = u_strlen(rule2); in TestVI5913()
3721 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3779 static const UChar rule2[]={ in TestTailor6179() local
3842 ruleLen = u_strlen(rule2); in TestTailor6179()
3843 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, &parseError, &status); in TestTailor6179()
3880 UChar rule2[256]= {0x26, 0x4C, 0xb7, 0x3c, 0x3c, 0x61, 0}; in TestUCAPrecontext() local
3965 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()

12