Home
last modified time | relevance | path

Searched refs:matchers (Results 1 - 25 of 33) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
H A DSeriesMatcher.java11 * Composes a number of matchers, running one after another. Matches the input string only if all of the
12 * matchers in the series succeed. Performs greedy matches within the context of the series.
18 protected List<NumberParseMatcher> matchers = null; field in SeriesMatcher
23 if (matchers == null) { in addMatcher()
24 matchers = new ArrayList<NumberParseMatcher>(); in addMatcher()
26 matchers.add(matcher); in addMatcher()
34 return matchers == null ? 0 : matchers.size(); in length()
40 if (matchers == null) { in match()
50 for (int i = 0; i < matchers in match()
[all...]
H A DNumberParserImpl.java270 private final List<NumberParseMatcher> matchers; field in NumberParserImpl
280 matchers = new ArrayList<>(); in NumberParserImpl()
287 this.matchers.add(matcher); in addMatcher()
290 public void addMatchers(Collection<? extends NumberParseMatcher> matchers) { in addMatchers() argument
292 this.matchers.addAll(matchers); in addMatchers()
335 for (NumberParseMatcher matcher : matchers) { in parse()
343 for (int i = 0; i < matchers.size();) { in parseGreedy()
348 NumberParseMatcher matcher = matchers.get(i); in parseGreedy()
387 for (int i = 0; i < matchers in parseLongestRecursive()
[all...]
H A DAffixMatcher.java72 // No need to generate affix matchers. in isInteresting()
91 ArrayList<AffixMatcher> matchers = new ArrayList<>(6); in createMatchers()
138 // Skip adding these matchers (we already have equivalents) in createMatchers()
142 // Flags for setting in the ParsedNumber; the token matchers may add more. in createMatchers()
147 matchers.add(getInstance(prefix, suffix, flags)); in createMatchers()
149 // The following if statements are designed to prevent adding two identical matchers. in createMatchers()
151 matchers.add(getInstance(prefix, null, flags)); in createMatchers()
154 matchers.add(getInstance(null, suffix, flags)); in createMatchers()
160 Collections.sort(matchers, COMPARATOR); in createMatchers()
161 output.addMatchers(matchers); in createMatchers()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/
H A DSeriesMatcher.java12 * Composes a number of matchers, running one after another. Matches the input string only if all of the
13 * matchers in the series succeed. Performs greedy matches within the context of the series.
20 protected List<NumberParseMatcher> matchers = null; field in SeriesMatcher
25 if (matchers == null) { in addMatcher()
26 matchers = new ArrayList<NumberParseMatcher>(); in addMatcher()
28 matchers.add(matcher); in addMatcher()
36 return matchers == null ? 0 : matchers.size(); in length()
42 if (matchers == null) { in match()
52 for (int i = 0; i < matchers in match()
[all...]
H A DNumberParserImpl.java272 private final List<NumberParseMatcher> matchers; field in NumberParserImpl
282 matchers = new ArrayList<>(); in NumberParserImpl()
289 this.matchers.add(matcher); in addMatcher()
292 public void addMatchers(Collection<? extends NumberParseMatcher> matchers) { in addMatchers() argument
294 this.matchers.addAll(matchers); in addMatchers()
337 for (NumberParseMatcher matcher : matchers) { in parse()
345 for (int i = 0; i < matchers.size();) { in parseGreedy()
350 NumberParseMatcher matcher = matchers.get(i); in parseGreedy()
389 for (int i = 0; i < matchers in parseLongestRecursive()
[all...]
H A DAffixMatcher.java74 // No need to generate affix matchers. in isInteresting()
93 ArrayList<AffixMatcher> matchers = new ArrayList<>(6); in createMatchers()
136 // Skip adding these matchers (we already have equivalents) in createMatchers()
140 // Flags for setting in the ParsedNumber; the token matchers may add more. in createMatchers()
145 matchers.add(getInstance(prefix, suffix, flags)); in createMatchers()
147 // The following if statements are designed to prevent adding two identical matchers. in createMatchers()
149 matchers.add(getInstance(prefix, null, flags)); in createMatchers()
152 matchers.add(getInstance(null, suffix, flags)); in createMatchers()
158 Collections.sort(matchers, COMPARATOR); in createMatchers()
159 output.addMatchers(matchers); in createMatchers()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dmock_overload_set.h49 auto gmock_Call(MockURBG& gen, const ::testing::Matcher<Args>&... matchers)
50 -> decltype(MockHelpers::MockFor<KeyT>(gen).gmock_Call(matchers...)) { in gmock_Call()
53 return MockHelpers::MockFor<KeyT>(gen).gmock_Call(matchers...); in gmock_Call()
66 const ::testing::Matcher<Args>&... matchers)
68 matchers...)) { in gmock_Call()
71 return MockHelpers::MockFor<KeyT>(gen).gmock_Call(matcher, matchers...); in gmock_Call()
/third_party/googletest/googlemock/test/
H A Dgmock-internal-utils_test.cc291 std::tuple<> matchers; in TEST() local
294 EXPECT_TRUE(TupleMatches(matchers, values)); in TEST()
298 std::tuple<Matcher<int>> matchers(Eq(1)); in TEST()
301 EXPECT_TRUE(TupleMatches(matchers, values1)); in TEST()
302 EXPECT_FALSE(TupleMatches(matchers, values2)); in TEST()
306 std::tuple<Matcher<int>, Matcher<char>> matchers(Eq(1), Eq('a')); in TEST()
310 EXPECT_TRUE(TupleMatches(matchers, values1)); in TEST()
311 EXPECT_FALSE(TupleMatches(matchers, values2)); in TEST()
312 EXPECT_FALSE(TupleMatches(matchers, values3)); in TEST()
313 EXPECT_FALSE(TupleMatches(matchers, values in TEST()
[all...]
H A Dgmock-matchers-misc_test.cc32 // This file tests some commonly used argument matchers.
89 // ctor can be used as arguments to matchers like Eq(), Ge(), and etc
1093 // Tests that Value() can be used to compose matchers.
1368 // Succeeds if arg matches exactly 2 of the 3 matchers.
1500 std::vector<Matcher<int>> matchers{Ge(1), Lt(2)}; in TEST()
1501 EXPECT_THAT(0, Not(AllOfArray(matchers))); in TEST()
1502 EXPECT_THAT(1, AllOfArray(matchers)); in TEST()
1503 EXPECT_THAT(2, Not(AllOfArray(matchers))); in TEST()
1554 std::vector<Matcher<int>> matchers{Lt(1), Ge(2)}; in TEST()
1555 EXPECT_THAT(0, AnyOfArray(matchers)); in TEST()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dnumbertest_parse.cpp199 ArraySeriesMatcher::MatcherArray matchers(5, status); in testSeriesMatcher()
201 matchers[0] = &m0; in testSeriesMatcher()
202 matchers[1] = &m1; in testSeriesMatcher()
203 matchers[2] = &m2; in testSeriesMatcher()
204 matchers[3] = &m3; in testSeriesMatcher()
205 matchers[4] = &m4; in testSeriesMatcher()
206 ArraySeriesMatcher series(matchers, 5); in testSeriesMatcher()
/third_party/icu/icu4c/source/i18n/
H A Dnumparse_compositions.cpp60 // All matchers in the series succeeded. in match()
87 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
88 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
H A Dnumparse_compositions.h44 // * Composes a number of matchers, and succeeds if any of the matchers succeed. Always greedily chooses
67 * Composes a number of matchers, running one after another. Matches the input string only if all of the
68 * matchers in the series succeed. Performs greedy matches within the context of the series.
90 * An implementation of SeriesMatcher that references an array of matchers.
92 * The object adopts the array, but NOT the matchers contained inside the array.
102 ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen);
H A Dnumparse_affixes.h74 * Small helper class that generates matchers for individual tokens for AffixPatternMatcher.
77 * "warehouse", because in addition to generating the matchers, it also retains ownership of them. The
78 * warehouse must stay in scope for the whole lifespan of the AffixPatternMatcher that uses matchers from
117 // Use a child class for code point matchers, since it requires non-default operators.
165 AffixPatternMatcher(MatcherArray& matchers, int32_t matchersLen, const UnicodeString& pattern,
H A Dnumparse_affixes.cpp74 // ignorables matchers in a row. in consumeToken()
219 AffixPatternMatcher::AffixPatternMatcher(MatcherArray& matchers, int32_t matchersLen, in AffixPatternMatcher() argument
221 : ArraySeriesMatcher(matchers, matchersLen), fPattern(pattern, status) { in AffixPatternMatcher()
261 // No need to generate affix matchers. in isInteresting()
332 // Skip adding these matchers (we already have equivalents) in createAffixMatchers()
336 // Flags for setting in the ParsedNumber; the token matchers may add more. in createAffixMatchers()
343 // The following if statements are designed to prevent adding two identical matchers. in createAffixMatchers()
/third_party/node/deps/icu-small/source/i18n/
H A Dnumparse_compositions.cpp60 // All matchers in the series succeeded. in match()
87 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
88 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
H A Dnumparse_compositions.h44 // * Composes a number of matchers, and succeeds if any of the matchers succeed. Always greedily chooses
67 * Composes a number of matchers, running one after another. Matches the input string only if all of the
68 * matchers in the series succeed. Performs greedy matches within the context of the series.
90 * An implementation of SeriesMatcher that references an array of matchers.
92 * The object adopts the array, but NOT the matchers contained inside the array.
102 ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen);
H A Dnumparse_affixes.h74 * Small helper class that generates matchers for individual tokens for AffixPatternMatcher.
77 * "warehouse", because in addition to generating the matchers, it also retains ownership of them. The
78 * warehouse must stay in scope for the whole lifespan of the AffixPatternMatcher that uses matchers from
117 // Use a child class for code point matchers, since it requires non-default operators.
165 AffixPatternMatcher(MatcherArray& matchers, int32_t matchersLen, const UnicodeString& pattern,
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dnumparse_compositions.cpp60 // All matchers in the series succeeded. in match()
87 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
88 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
H A Dnumparse_compositions.h44 // * Composes a number of matchers, and succeeds if any of the matchers succeed. Always greedily chooses
67 * Composes a number of matchers, running one after another. Matches the input string only if all of the
68 * matchers in the series succeed. Performs greedy matches within the context of the series.
90 * An implementation of SeriesMatcher that references an array of matchers.
92 * The object adopts the array, but NOT the matchers contained inside the array.
102 ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen);
H A Dnumparse_affixes.h74 * Small helper class that generates matchers for individual tokens for AffixPatternMatcher.
77 * "warehouse", because in addition to generating the matchers, it also retains ownership of them. The
78 * warehouse must stay in scope for the whole lifespan of the AffixPatternMatcher that uses matchers from
115 // Use a child class for code point matchers, since it requires non-default operators.
163 AffixPatternMatcher(MatcherArray& matchers, int32_t matchersLen, const UnicodeString& pattern,
/third_party/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h33 // define custom matchers easily.
122 // support multi-parameter matchers.
187 // can be useful when composing matchers.
218 // You can overload matchers with different numbers of parameters:
232 // overloading matchers based on parameter types (as opposed to just
245 // This file also implements some commonly used argument matchers. More
246 // matchers can be defined by the user implementing the
249 // See googletest/include/gtest/gtest-matchers.h for the definition of class
299 // is impossible if we pass matchers by pointers. It also eases
516 // This overload handles polymorphic matchers an
628 ExplainMatchFailuresTo(const MatcherTuple& matchers, const ValueTuple& values, ::std::ostream* os) ExplainMatchFailuresTo() argument
693 ExplainMatchFailureTupleTo(const MatcherTuple& matchers, const ValueTuple& values, ::std::ostream* os) ExplainMatchFailureTupleTo() argument
1278 AllOfMatcherImpl(std::vector<Matcher<T>> matchers) AllOfMatcherImpl() argument
1339 VariadicMatcher(const Args&.... matchers) VariadicMatcher() argument
1383 AnyOfMatcherImpl(std::vector<Matcher<T>> matchers) AnyOfMatcherImpl() argument
3281 FieldsAreMatcherImpl(const Inner& matchers) FieldsAreMatcherImpl() argument
3707 MatcherVec matchers; operator Matcher() local
3738 MatcherVec matchers; operator Matcher() local
4774 ::std::vector<internal::BoundSecondMatcher<Tuple2Matcher, Second>> matchers; UnorderedPointwise() local
5017 FieldsAre( M&&.... matchers) FieldsAre() argument
5095 ElementsAre(const Args&.... matchers) ElementsAre() argument
5104 UnorderedElementsAre(const Args&.... matchers) UnorderedElementsAre() argument
5112 AllOf( const Args&.... matchers) AllOf() argument
5119 AnyOf( const Args&.... matchers) AnyOf() argument
[all...]
H A Dgmock-spec-builders.h37 // ON_CALL(mock_object, Method(argument-matchers))
46 // EXPECT_CALL(mock_object, Method(argument-matchers))
47 // .With(multi-argument-matchers)
78 #include "gmock/gmock-matchers.h"
286 const ArgumentMatcherTuple& matchers) in OnCallSpec()
288 matchers_(matchers), in OnCallSpec()
319 // Returns true if and only if the given arguments match the matchers.
335 // ON_CALL(mock_object, Method(matchers))
343 // matchers => matchers_
1068 // Returns the matchers fo
285 OnCallSpec(const char* a_file, int a_line, const ArgumentMatcherTuple& matchers) OnCallSpec() argument
[all...]
/third_party/skia/third_party/externals/sfntly/java/lib/
H A Djunit-4.10.jar ... org/junit/internal/ org/junit/internal/builders/ org/junit/internal/matchers/ org/junit/internal/requests/ org/junit/internal/runners/ org/junit ...
/third_party/skia/third_party/externals/tint/src/
H A Dintrinsic_table.cc169 matchers(m), in MatchState()
177 /// The type and number matchers
178 Matchers const& matchers; member in tint::__anon25916::MatchState
749 /// These indices are consumed by the matchers themselves.
879 Matchers matchers;
1081 return MatchState(builder, closed, matchers, overload, matcher_indices);
1135 auto* matcher = matchers.type[matcher_index];
1141 auto* matcher = matchers.number[matcher_index];
1147 auto* matcher = matchers.type[matcher_index];
1153 auto* matcher = matchers
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DSystemUtilsTests.cpp15 #include <gmock/gmock-matchers.h>

Completed in 20 milliseconds

12