/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 31 LocaleMatcher matcher = new LocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 34 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 35 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 36 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 37 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 38 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() 39 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh")); in testChinese() 40 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_HK")); in testChinese() 44 final LocaleMatcher matcher = new LocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 45 assertEquals("en_GB", matcher.getBestMatch("en_NZ").toString()); in testenGB() [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/robolectric/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/ltrace/ |
D | filter.c | 50 struct filter_lib_matcher *matcher, in filter_rule_init() argument 54 rule->lib_matcher = matcher; in filter_rule_init() 76 filter_lib_matcher_name_init(struct filter_lib_matcher *matcher, in filter_lib_matcher_name_init() argument 87 matcher->type = type; in filter_lib_matcher_name_init() 88 matcher->libname_re = libname_re; in filter_lib_matcher_name_init() 93 filter_lib_matcher_main_init(struct filter_lib_matcher *matcher) in filter_lib_matcher_main_init() argument 95 matcher->type = FLM_MAIN; in filter_lib_matcher_main_init() 99 filter_lib_matcher_destroy(struct filter_lib_matcher *matcher) in filter_lib_matcher_destroy() argument 101 switch (matcher->type) { in filter_lib_matcher_destroy() 104 regfree(&matcher->libname_re); in filter_lib_matcher_destroy() [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()
|
D | LegacyMatcherProvider.java | 48 public void setDefaultMatcher(ArgumentsMatcher matcher) { in setDefaultMatcher() argument 54 defaultMatcher = matcher; in setDefaultMatcher() 58 public void setMatcher(Method method, ArgumentsMatcher matcher) { in setMatcher() argument 59 if (matchers.containsKey(method) && matchers.get(method) != matcher) { in setMatcher() 68 matchers.put(method, matcher); in setMatcher() 96 for (Map.Entry<Method, ArgumentsMatcher> matcher : matchers.entrySet()) { in writeObject() 97 map.put(new MethodSerializationWrapper(matcher.getKey()), matcher in writeObject()
|
/external/mockito/src/org/mockito/ |
D | Matchers.java | 777 public static <T> T argThat(Matcher<T> matcher) { in argThat() argument 778 return reportMatcher(matcher).<T>returnNull(); in argThat() 789 public static char charThat(Matcher<Character> matcher) { in charThat() argument 790 return reportMatcher(matcher).returnChar(); in charThat() 801 public static boolean booleanThat(Matcher<Boolean> matcher) { in booleanThat() argument 802 return reportMatcher(matcher).returnFalse(); in booleanThat() 813 public static byte byteThat(Matcher<Byte> matcher) { in byteThat() argument 814 return reportMatcher(matcher).returnZero(); in byteThat() 825 public static short shortThat(Matcher<Short> matcher) { in shortThat() argument 826 return reportMatcher(matcher).returnZero(); in shortThat() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | regextst.cpp | 409 REMatcher = REPattern->matcher(unEscapedInput, status); in doRegexLMTest() 485 REMatcher = &REPattern->matcher(status)->reset(&inputText); in doRegexLMTestUTF8() 611 … RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic() 756 RegexMatcher matcher(&pattern, 0, status); in UTextBasic() local 762 matcher.reset(&input); in UTextBasic() 764 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic() 766 matcher.reset(matcher.inputText()); in UTextBasic() 768 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic() 813 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match() 937 RegexMatcher *matcher = pat->matcher(data, status); in API_Match() local [all …]
|
/external/hamcrest/src/org/hamcrest/core/ |
D | IsNot.java | 16 private final Matcher<T> matcher; field in IsNot 18 public IsNot(Matcher<T> matcher) { in IsNot() argument 19 this.matcher = matcher; in IsNot() 23 return !matcher.matches(arg); in matches() 27 description.appendText("not ").appendDescriptionOf(matcher); in describeTo() 34 public static <T> Matcher<T> not(Matcher<T> matcher) { in not() argument 35 return new IsNot<T>(matcher); in not()
|
D | Is.java | 19 private final Matcher<T> matcher; field in Is 21 public Is(Matcher<T> matcher) { in Is() argument 22 this.matcher = matcher; in Is() 26 return matcher.matches(arg); in matches() 30 description.appendText("is ").appendDescriptionOf(matcher); in describeTo() 41 public static <T> Matcher<T> is(Matcher<T> matcher) { in is() argument 42 return new Is<T>(matcher); in is()
|
D | DescribedAs.java | 17 private final Matcher<T> matcher; field in DescribedAs 22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) { in DescribedAs() argument 24 this.matcher = matcher; in DescribedAs() 29 return matcher.matches(o); in matches() 33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate); in describeTo() 52 …public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values)… in describedAs() argument 53 return new DescribedAs<T>(description, matcher, values); in describedAs()
|
/external/apache-http/src/org/apache/http/protocol/ |
D | HttpRequestHandlerRegistry.java | 58 private final UriPatternMatcher matcher; field in HttpRequestHandlerRegistry 61 matcher = new UriPatternMatcher(); in HttpRequestHandlerRegistry() 65 matcher.register(pattern, handler); in register() 69 matcher.unregister(pattern); in unregister() 73 matcher.setHandlers(map); in setHandlers() 77 return (HttpRequestHandler) matcher.lookup(requestURI); in lookup() 85 return matcher.matchUriRequestPattern(pattern, requestUri); in matchUriRequestPattern()
|
/external/icu/icu4c/source/i18n/ |
D | quant.cpp | 27 matcher = adoptedMatcher; in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 35 matcher(o.matcher->clone()), in Quantifier() 42 delete matcher; in ~Quantifier() 71 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); in matches() 101 matcher->toMatcher()->toPattern(result, escapeUnprintable); in toPattern() 126 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); in matchesIndexValue() 134 matcher->toMatcher()->addMatchSetTo(toUnionTo); in addMatchSetTo() 142 matcher->setData(d); in setData()
|
/external/junit/src/org/junit/rules/ |
D | ExpectedException.java | 69 public void expect(Matcher<?> matcher) { in expect() argument 71 fMatcher= (Matcher<Object>) matcher; in expect() 73 fMatcher= both(fMatcher).and(matcher); in expect() 96 public void expectMessage(Matcher<String> matcher) { in expectMessage() argument 97 expect(hasMessage(matcher)); in expectMessage() 123 private Matcher<Throwable> hasMessage(final Matcher<String> matcher) { in hasMessage() argument 127 description.appendDescriptionOf(matcher); in hasMessage() 132 return matcher.matches(item.getMessage()); in hasMessage()
|
/external/openfst/src/include/fst/ |
D | matcher.h | 173 SortedMatcher(const SortedMatcher<F> &matcher, bool safe = false) 174 : fst_(matcher.fst_->Copy(safe)), 177 match_type_(matcher.match_type_), 178 binary_label_(matcher.binary_label_), 181 loop_(matcher.loop_), 182 error_(matcher.error_) {} 407 M *matcher = 0) 408 : matcher_(matcher ? matcher : new M(fst, match_type)), 431 RhoMatcher(const RhoMatcher<M> &matcher, bool safe = false) 432 : matcher_(new M(*matcher.matcher_, safe)), [all …]
|
/external/junit/src/org/junit/internal/matchers/ |
D | CombinableMatcher.java | 13 public CombinableMatcher(Matcher<? extends T> matcher) { in CombinableMatcher() argument 14 fMatcher= matcher; in CombinableMatcher() 26 public CombinableMatcher<T> and(Matcher<? extends T> matcher) { in and() argument 27 return new CombinableMatcher<T>(allOf(matcher, fMatcher)); in and() 31 public CombinableMatcher<T> or(Matcher<? extends T> matcher) { in or() argument 32 return new CombinableMatcher<T>(anyOf(matcher, fMatcher)); in or()
|
/external/proguard/src/proguard/util/ |
D | NotMatcher.java | 31 private final StringMatcher matcher; field in NotMatcher 34 public NotMatcher(StringMatcher matcher) in NotMatcher() argument 36 this.matcher = matcher; in NotMatcher() 44 return !matcher.matches(string); in matches()
|
D | SettableMatcher.java | 31 private StringMatcher matcher; field in SettableMatcher 34 public void setMatcher(StringMatcher matcher) in setMatcher() argument 36 this.matcher = matcher; in setMatcher() 44 return matcher.matches(string); in matches()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | WhitespaceMatcherBenchmark.java | 55 private CharMatcher matcher; field in WhitespaceMatcherBenchmark 69 matcher = useNew ? CharMatcher.WHITESPACE : OLD_WHITESPACE; in setUp() 75 CharMatcher matcher = this.matcher; in countIn() local 78 result += matcher.countIn(teststring); in countIn() 85 CharMatcher matcher = this.matcher; in collapseFrom() local 88 result += System.identityHashCode(matcher.collapseFrom(teststring, ' ')); in collapseFrom()
|
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/line/ |
D | LineConverter.java | 54 Matcher matcher; in getReplacement() local 60 matcher = pattern.matcher(text); in getReplacement() 61 if (matcher.find()) { in getReplacement() 64 String replacementText = conversionRule.replace(matcher); in getReplacement() 65 text = matcher.replaceAll(replacementText); in getReplacement()
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
D | Wildcard.java | 51 this.count = this.pattern.matcher("foo").groupCount(); in Wildcard() 103 Matcher matcher = getMatcher(value); in replace() local 104 if (matcher != null) { in replace() 107 sb.append((refs[i] >= 0) ? matcher.group(refs[i]) : strings[i]); in replace() 114 Matcher matcher = pattern.matcher(value); in getMatcher() local 115 if (matcher.matches() && checkIdentifierChars(value, "/")) in getMatcher() 116 return matcher; in getMatcher() 139 return pattern.matcher(value).replaceAll(replace); in replaceAllLiteral()
|
/external/hamcrest/integration/src/org/hamcrest/ |
D | MatcherAssert.java | 7 public static <T> void assertThat(T actual, Matcher<T> matcher) { in assertThat() argument 8 assertThat("", actual, matcher); in assertThat() 11 public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) { in assertThat() argument 12 if (!matcher.matches(actual)) { in assertThat() 16 .appendDescriptionOf(matcher) in assertThat()
|
/external/jetty/src/java/org/eclipse/jetty/servlets/ |
D | UserAgentFilter.java | 128 Matcher matcher = _pattern.matcher(ua); in getUserAgent() local 129 if (matcher.matches()) in getUserAgent() 131 if (matcher.groupCount() > 0) in getUserAgent() 133 for (int g = 1; g <= matcher.groupCount(); g++) in getUserAgent() 135 String group = matcher.group(g); in getUserAgent() 142 tag = matcher.group(); in getUserAgent()
|