/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 84 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 85 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 86 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 87 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 118 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 121 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 122 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 123 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 124 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 125 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 87 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 88 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 89 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 90 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 121 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 124 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 125 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 126 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 127 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 128 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | CharMatcherTest.java | 107 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() argument 108 reallyTestEmpty(matcher); in doTestEmpty() 109 reallyTestEmpty(matcher.negate()); in doTestEmpty() 110 reallyTestEmpty(matcher.precomputed()); in doTestEmpty() 113 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() argument 114 assertEquals(-1, matcher.indexIn("")); in reallyTestEmpty() 115 assertEquals(-1, matcher.indexIn("", 0)); in reallyTestEmpty() 117 matcher.indexIn("", 1); in reallyTestEmpty() 122 matcher.indexIn("", -1); in reallyTestEmpty() 126 assertEquals(-1, matcher.lastIndexIn("")); in reallyTestEmpty() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharMatcherTest.java | 133 private void doTestSetBits(CharMatcher matcher) { in doTestSetBits() argument 135 matcher.setBits(bitset); in doTestSetBits() 137 assertEquals(matcher.matches((char) i), bitset.get(i)); in doTestSetBits() 170 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() argument 171 reallyTestEmpty(matcher); in doTestEmpty() 172 reallyTestEmpty(matcher.negate()); in doTestEmpty() 173 reallyTestEmpty(matcher.precomputed()); in doTestEmpty() 176 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() argument 177 assertEquals(-1, matcher.indexIn("")); in reallyTestEmpty() 178 assertEquals(-1, matcher.indexIn("", 0)); in reallyTestEmpty() [all …]
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/ |
D | IsEqualTest.java | 14 Matcher<?> matcher = equalTo("irrelevant"); in copesWithNullsAndUnknownTypes() local 16 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 17 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 35 final Matcher<Object> matcher = equalTo(null); in canCompareNullValues() local 37 assertMatches(matcher, null); in canCompareNullValues() 38 assertDoesNotMatch(matcher, 2); in canCompareNullValues() 39 assertDoesNotMatch(matcher, "hi"); in canCompareNullValues() 40 assertDoesNotMatch(matcher, new String[] {"a", "b"}); in canCompareNullValues() 59 Matcher<Object> matcher = equalTo(null); in honoursIsEqualImplementationEvenWithNullValues() local 61 assertMatches(matcher, alwaysEqual); in honoursIsEqualImplementationEvenWithNullValues() [all …]
|
D | AnyOfTest.java | 16 Matcher<String> matcher = anyOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local 18 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 19 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 24 Matcher<String> matcher = anyOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() local 26 assertMatches("didn't pass both sub-matchers", matcher, "good"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() 27 assertMatches("didn't pass second sub-matcher", matcher, "mood"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() 28 assertMatches("didn't pass first sub-matcher", matcher, "goon"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() 29 assertDoesNotMatch("didn't fail both sub-matchers", matcher, "flan"); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() 34 …Matcher<String> matcher = anyOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers() local 36 assertMatches("didn't pass middle sub-matcher", matcher, "vlad"); in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers() [all …]
|
D | DescribedAsTest.java | 15 Matcher<Object> matcher = describedAs("irrelevant", anything()); in copesWithNullsAndUnknownTypes() local 17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 23 Matcher<?> matcher = describedAs("my description", anything()); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor() local 25 assertDescription("my description", matcher); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor() 30 Matcher<?> matcher = describedAs("value 1 = %0, value 2 = %1", anything(), 33, 97); in appendsValuesToDescription() local 32 assertDescription("value 1 = <33>, value 2 = <97>", matcher); in appendsValuesToDescription() 37 Matcher<String> matcher = describedAs("irrelevant", equalTo("hi")); in celegatesMatchingToAnotherMatcher() local 39 assertMatches(matcher, "hi"); in celegatesMatchingToAnotherMatcher() 40 assertDoesNotMatch("matched", matcher, "oi"); in celegatesMatchingToAnotherMatcher() [all …]
|
D | IsTest.java | 15 Matcher<String> matcher = is("something"); in copesWithNullsAndUnknownTypes() local 17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 23 final Matcher<Boolean> matcher = is(equalTo(true)); in matchesTheSameWayTheUnderlyingMatcherDoes() local 25 assertMatches(matcher, true); in matchesTheSameWayTheUnderlyingMatcherDoes() 26 assertDoesNotMatch(matcher, false); in matchesTheSameWayTheUnderlyingMatcherDoes() 37 final Matcher<String> matcher = is("A"); in providesConvenientShortcutForIsEqualTo() local 39 assertMatches(matcher, "A"); in providesConvenientShortcutForIsEqualTo() 46 final Matcher matcher = isA(Integer.class); in providesConvenientShortcutForIsInstanceOf() local 47 assertMatches(matcher, 1); in providesConvenientShortcutForIsInstanceOf() [all …]
|
D | AllOfTest.java | 18 Matcher<String> matcher = allOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local 20 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 21 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 26 Matcher<String> matcher = allOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() local 28 assertMatches("didn't pass both sub-matchers", matcher, "good"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 29 assertDoesNotMatch("didn't fail first sub-matcher", matcher, "mood"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 30 assertDoesNotMatch("didn't fail second sub-matcher", matcher, "goon"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 31 assertDoesNotMatch("didn't fail both sub-matchers", matcher, "fred"); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() 36 …Matcher<String> matcher = allOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers() local 38 assertMatches("didn't pass all sub-matchers", matcher, "good"); in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers() [all …]
|
D | IsNotTest.java | 15 Matcher<String> matcher = not("something"); in copesWithNullsAndUnknownTypes() local 17 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 18 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 23 final Matcher<String> matcher = not(equalTo("A")); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() local 25 assertMatches(matcher, "B"); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() 26 assertDoesNotMatch(matcher, "A"); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() 31 final Matcher<String> matcher = not("A"); in providesConvenientShortcutForNotEqualTo() local 33 assertMatches(matcher, "B"); in providesConvenientShortcutForNotEqualTo() 34 assertDoesNotMatch(matcher, "A"); in providesConvenientShortcutForNotEqualTo()
|
/external/mockito/src/main/java/org/mockito/hamcrest/ |
D | MockitoHamcrest.java | 60 public static <T> T argThat(Matcher<T> matcher) { in argThat() argument 61 reportMatcher(matcher); in argThat() 62 return (T) defaultValue(genericTypeOfMatcher(matcher.getClass())); in argThat() 74 public static char charThat(Matcher<Character> matcher) { in charThat() argument 75 reportMatcher(matcher); in charThat() 88 public static boolean booleanThat(Matcher<Boolean> matcher) { in booleanThat() argument 89 reportMatcher(matcher); in booleanThat() 102 public static byte byteThat(Matcher<Byte> matcher) { in byteThat() argument 103 reportMatcher(matcher); in byteThat() 116 public static short shortThat(Matcher<Short> matcher) { in shortThat() argument [all …]
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/internal/ |
D | MatcherTest.java | 31 private void checkMatcherBehavesAsExpected(MatcherApi matcher) { in checkMatcherBehavesAsExpected() argument 36 assertInvalid(matcher, "1", desc); in checkMatcherBehavesAsExpected() 39 assertInvalid(matcher, "91", desc); in checkMatcherBehavesAsExpected() 40 assertInvalid(matcher, "81", desc); in checkMatcherBehavesAsExpected() 41 assertMatched(matcher, "911", desc); in checkMatcherBehavesAsExpected() 42 assertInvalid(matcher, "811", desc); in checkMatcherBehavesAsExpected() 43 assertTooLong(matcher, "9111", desc); in checkMatcherBehavesAsExpected() 44 assertInvalid(matcher, "8111", desc); in checkMatcherBehavesAsExpected() 47 assertMatched(matcher, "2", desc); in checkMatcherBehavesAsExpected() 48 assertMatched(matcher, "20", desc); in checkMatcherBehavesAsExpected() [all …]
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/ |
D | IsEqualIgnoringCaseTest.java | 13 Matcher<String> matcher = equalToIgnoringCase("irrelevant"); in copesWithNullsAndUnknownTypes() local 15 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 16 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 21 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in ignoresCaseOfCharsInString() local 23 assertMatches(matcher, "HELLO"); in ignoresCaseOfCharsInString() 24 assertMatches(matcher, "hello"); in ignoresCaseOfCharsInString() 25 assertMatches(matcher, "HelLo"); in ignoresCaseOfCharsInString() 26 assertDoesNotMatch(matcher, "bye"); in ignoresCaseOfCharsInString() 31 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in mismatchesIfAdditionalWhitespaceIsPresent() local 33 assertDoesNotMatch(matcher, "hello "); in mismatchesIfAdditionalWhitespaceIsPresent() [all …]
|
D | IsEqualIgnoringWhiteSpaceTest.java | 12 … private final Matcher<String> matcher = equalToIgnoringWhiteSpace("Hello World how\n are we? "); field in IsEqualIgnoringWhiteSpaceTest 16 return matcher; in createMatcher() 20 assertThat("Hello World how are we?", matcher); in testPassesIfWordsAreSameButWhitespaceDiffers() 21 assertThat(" Hello World how are \n\n\twe?", matcher); in testPassesIfWordsAreSameButWhitespaceDiffers() 25 assertThat("Hello PLANET how are we?", not(matcher)); in testFailsIfTextOtherThanWhitespaceDiffers() 26 assertThat("Hello World how are we", not(matcher)); in testFailsIfTextOtherThanWhitespaceDiffers() 30 assertThat("HelloWorld how are we?", not(matcher)); in testFailsIfWhitespaceIsAddedOrRemovedInMidWord() 31 assertThat("Hello Wo rld how are we?", not(matcher)); in testFailsIfWhitespaceIsAddedOrRemovedInMidWord() 35 assertThat(null, not(matcher)); in testFailsIfMatchingAgainstNull() 49 matcher); in testHasAReadableDescription()
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/ |
D | BigDecimalCloseToTest.java | 11 private final Matcher<BigDecimal> matcher = closeTo(new BigDecimal("1.0"), new BigDecimal("0.5")); field in BigDecimalCloseToTest 20 assertTrue(matcher.matches(new BigDecimal("1.0"))); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 21 assertTrue(matcher.matches(new BigDecimal("0.5"))); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 22 assertTrue(matcher.matches(new BigDecimal("1.5"))); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 24 assertDoesNotMatch("too large", matcher, new BigDecimal("2.0")); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 25 …assertMismatchDescription("<2.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 26 assertDoesNotMatch("number too small", matcher, new BigDecimal("0.0")); in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 27 …assertMismatchDescription("<0.0> differed by <0.5> more than delta <0.5>", matcher, new BigDecimal… in testEvaluatesToTrueIfArgumentIsEqualToABigDecimalWithinSomeError() 31 assertTrue(matcher.matches(new BigDecimal("1.000000"))); in testEvaluatesToTrueIfArgumentHasDifferentScale() 32 assertTrue(matcher.matches(new BigDecimal("0.500000"))); in testEvaluatesToTrueIfArgumentHasDifferentScale() [all …]
|
D | IsCloseToTest.java | 9 private final Matcher<Double> matcher = closeTo(1.0d, 0.5d); field in IsCloseToTest 18 assertMatches("1.0", matcher, 1.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 19 assertMatches("0.5d", matcher, 0.5d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 20 assertMatches("1.5d", matcher, 1.5d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 22 assertDoesNotMatch("too large", matcher, 2.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 23 assertMismatchDescription("<3.0> differed by <1.5> more than delta <0.5>", matcher, 3.0d); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 24 assertDoesNotMatch("number too small", matcher, 0.0); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 25 assertMismatchDescription("<0.1> differed by <0.4> more than delta <0.5>", matcher, 0.1); in test_matchesIfArgumentIsEqualToADoubleValueWithinSomeError() 29 assertDescription("a numeric value within <0.5> of <1.0>", matcher); in test_is_self_describing()
|
/external/libtextclassifier/util/utf8/ |
D | unilib_test.cc | 81 std::unique_ptr<UniLib::RegexMatcher> matcher = pattern->Matcher(input); in TEST() local 82 TC_LOG(INFO) << matcher->Matches(&status); in TEST() 83 TC_LOG(INFO) << matcher->Find(&status); in TEST() 84 TC_LOG(INFO) << matcher->Start(0, &status); in TEST() 85 TC_LOG(INFO) << matcher->End(0, &status); in TEST() 86 TC_LOG(INFO) << matcher->Group(0, &status).size_codepoints(); in TEST() 101 std::unique_ptr<UniLib::RegexMatcher> matcher; in TEST() local 103 matcher = pattern->Matcher(UTF8ToUnicodeText("0123", /*do_copy=*/false)); in TEST() 104 EXPECT_TRUE(matcher->Matches(&status)); in TEST() 105 EXPECT_TRUE(matcher->ApproximatelyMatches(&status)); in TEST() [all …]
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/ |
D | AbstractMatcherTest.java | 13 public static <T> void assertMatches(Matcher<T> matcher, T arg) { in assertMatches() argument 14 assertMatches("Expected match, but mismatched", matcher, arg); in assertMatches() 17 public static <T> void assertMatches(String message, Matcher<T> matcher, T arg) { in assertMatches() argument 18 if (!matcher.matches(arg)) { in assertMatches() 19 Assert.fail(message + " because: '" + mismatchDescription(matcher, arg) + "'"); in assertMatches() 31 public static void assertDescription(String expected, Matcher<?> matcher) { in assertDescription() argument 33 description.appendDescriptionOf(matcher); in assertDescription() 37 …public static <T> void assertMismatchDescription(String expected, Matcher<? super T> matcher, T ar… in assertMismatchDescription() argument 38 Assert.assertFalse("Precondition: Matcher should not match item.", matcher.matches(arg)); in assertMismatchDescription() 39 … Assert.assertEquals("Expected mismatch description", expected, mismatchDescription(matcher, arg)); in assertMismatchDescription() [all …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | UriMatcherTest.java | 22 UriMatcher matcher; field in UriMatcherTest 28 matcher = new UriMatcher(NO_MATCH); in getMatcher() 29 root = Robolectric.shadowOf(matcher).rootNode; in getMatcher() 43 matcher.addURI(AUTH, path, 1); in canAddBasicMatch() 57 matcher.addURI(AUTH, "#", 1); in canAddWildcardMatches() 58 matcher.addURI(AUTH, "*", 2); in canAddWildcardMatches() 66 matcher.addURI(AUTH, "bar", 1); in canMatch() 67 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(1)); in canMatch() 69 matcher.addURI(AUTH, "bar/#", 2); in canMatch() 70 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar/1")), is(2)); in canMatch() [all …]
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
D | CombinableMatcher.java | 10 private final Matcher<? super T> matcher; field in CombinableMatcher 12 public CombinableMatcher(Matcher<? super T> matcher) { in CombinableMatcher() argument 13 this.matcher = matcher; in CombinableMatcher() 18 if (!matcher.matches(item)) { in matchesSafely() 19 matcher.describeMismatch(item, mismatch); in matchesSafely() 27 description.appendDescriptionOf(matcher); in describeTo() 40 matchers.add(matcher); in templatedListWith() 50 public static <LHS> CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher) { in both() argument 51 return new CombinableBothMatcher<LHS>(matcher); in both() 56 public CombinableBothMatcher(Matcher<? super X> matcher) { in CombinableBothMatcher() argument [all …]
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/ |
D | HasToStringTest.java | 21 Matcher<Object> matcher = hasToString(equalTo("irrelevant")); in copesWithNullsAndUnknownTypes() local 23 assertNullSafe(matcher); in copesWithNullsAndUnknownTypes() 24 assertUnknownTypeSafe(matcher); in copesWithNullsAndUnknownTypes() 29 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in matchesWhenUtilisingANestedMatcher() local 31 assertMatches(matcher, TEST_OBJECT); in matchesWhenUtilisingANestedMatcher() 32 assertDoesNotMatch(matcher, new Object()); in matchesWhenUtilisingANestedMatcher() 37 final Matcher<Object> matcher = hasToString(TO_STRING_RESULT); in matchesWhenUsingShortcutForHasToStringEqualTo() local 39 assertMatches(matcher, TEST_OBJECT); in matchesWhenUsingShortcutForHasToStringEqualTo() 40 assertDoesNotMatch(matcher, new Object()); in matchesWhenUsingShortcutForHasToStringEqualTo() 45 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in describesItself() local [all …]
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | Qualifiers.java | 57 Matcher matcher = DIR_QUALIFIER_PATTERN.matcher(parentDirName); in fromParentDir() local 58 if (!matcher.find()) throw new IllegalStateException(parentDirName); in fromParentDir() 59 String qualifiers = matcher.group(1); in fromParentDir() 69 Matcher m = VERSION_QUALIFIER_PATTERN.matcher(qualifiers); in getPlatformVersion() 82 Matcher matcher = SMALLEST_SCREEN_WIDTH_PATTERN.matcher(qualifier); in getSmallestScreenWidth() local 83 if (matcher.find()) { in getSmallestScreenWidth() 84 return Integer.parseInt(matcher.group(1)); in getSmallestScreenWidth() 133 Matcher matcher = SCREEN_WIDTH_PATTERN.matcher(qualifier); in getScreenWidth() local 134 if (matcher.find()) { in getScreenWidth() 135 return Integer.parseInt(matcher.group(1)); in getScreenWidth() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | regextst.cpp | 352 REMatcher = REPattern->matcher(unEscapedInput, status); in doRegexLMTest() 428 REMatcher = &REPattern->matcher(status)->reset(&inputText); in doRegexLMTestUTF8() 554 … RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic() 699 RegexMatcher matcher(&pattern, 0, status); in UTextBasic() local 705 matcher.reset(&input); in UTextBasic() 707 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic() 709 matcher.reset(matcher.inputText()); in UTextBasic() 711 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic() 756 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match() 880 RegexMatcher *matcher = pat->matcher(data, status); in API_Match() local [all …]
|
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/ |
D | AternativeApproach.java | 47 Matcher m = pat.matcher(s); in test() 64 Matcher m = pat.matcher(s); in test2() 70 m = pat.matcher(s1); in test2() 76 m = pat.matcher(s2); in test2() 80 m = pat.matcher(s3); in test2() 92 Matcher m = pat.matcher(s); in test3() 98 pat.matcher(nonMatching); in test3() 109 Matcher m = pat.matcher(s); in test4() 115 m = pat.matcher(s2); in test4() 119 m = pat.matcher(s3); in test4() [all …]
|
/external/easymock/src/org/easymock/internal/ |
D | ExpectedInvocation.java | 34 private final org.easymock.ArgumentsMatcher matcher; field in ExpectedInvocation 45 org.easymock.ArgumentsMatcher matcher) { in ExpectedInvocation() argument 47 this.matcher = matcher; in ExpectedInvocation() 48 this.matchers = (matcher == null) ? createMissingMatchers(invocation, in ExpectedInvocation() 77 … && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher in equals() 78 .equals(other.matcher))) in equals() 93 actual, matcher); in matches() 110 return matchers != null ? myToString() : invocation.toString(matcher); in toString() 132 org.easymock.ArgumentsMatcher matcher) { in withMatcher() 133 return new ExpectedInvocation(invocation, null, matcher); in withMatcher()
|