Home
last modified time | relevance | path

Searched refs:RegexMatcher (Results 1 – 25 of 47) sorted by relevance

12

/external/icu/icu4c/source/tools/toolutil/
Dxmlparser.h208 UXMLElement *createElement(RegexMatcher &mEl, UErrorCode &status);
221 RegexMatcher mXMLDecl;
222 RegexMatcher mXMLComment;
223 RegexMatcher mXMLSP;
224 RegexMatcher mXMLDoctype;
225 RegexMatcher mXMLPI;
226 RegexMatcher mXMLElemStart;
227 RegexMatcher mXMLElemEnd;
228 RegexMatcher mXMLElemEmpty;
229 RegexMatcher mXMLCharData;
[all …]
/external/icu/libicu/cts_headers/unicode/
Dregex.h66 class RegexMatcher; variable
347 virtual RegexMatcher *matcher(const UnicodeString &input,
363 RegexMatcher *matcher(const char16_t *input,
379 virtual RegexMatcher *matcher(UErrorCode &status) const;
626 friend class RegexMatcher; variable
659 class U_I18N_API RegexMatcher U_FINAL : public UObject {
675 RegexMatcher(const UnicodeString &regexp, uint32_t flags, UErrorCode &status);
691 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status);
713 RegexMatcher(const UnicodeString &regexp, const UnicodeString &input,
736 RegexMatcher(UText *regexp, UText *input,
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dregex.h66 class RegexMatcher; variable
347 virtual RegexMatcher *matcher(const UnicodeString &input,
363 RegexMatcher *matcher(const char16_t *input,
379 virtual RegexMatcher *matcher(UErrorCode &status) const;
626 friend class RegexMatcher; variable
659 class U_I18N_API RegexMatcher U_FINAL : public UObject {
675 RegexMatcher(const UnicodeString &regexp, uint32_t flags, UErrorCode &status);
691 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status);
713 RegexMatcher(const UnicodeString &regexp, const UnicodeString &input,
736 RegexMatcher(UText *regexp, UText *input,
[all …]
/external/libtextclassifier/native/utils/utf8/
Dunilib_test-include.cc185 std::unique_ptr<UniLib::RegexMatcher> matcher = pattern->Matcher(input); in TEST_F()
202 std::unique_ptr<UniLib::RegexMatcher> matcher; in TEST_F()
207 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
210 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
216 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
221 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
223 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
225 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
227 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST_F()
235 std::unique_ptr<UniLib::RegexMatcher> matcher; in TEST_F()
[all …]
Dunilib-javaicu.cc190 constexpr int UniLibBase::RegexMatcher::kError;
191 constexpr int UniLibBase::RegexMatcher::kNoError;
193 std::unique_ptr<UniLibBase::RegexMatcher> UniLibBase::RegexPattern::Matcher( in Matcher()
215 return std::unique_ptr<UniLibBase::RegexMatcher>(new RegexMatcher( in Matcher()
224 return std::unique_ptr<UniLibBase::RegexMatcher>( in Matcher()
225 new RegexMatcher(jni_cache_, {}, {})); in Matcher()
229 UniLibBase::RegexMatcher::RegexMatcher(const JniCache* jni_cache, in RegexMatcher() function in libtextclassifier3::UniLibBase::RegexMatcher
236 bool UniLibBase::RegexMatcher::Matches(int* status) const { in Matches()
252 bool UniLibBase::RegexMatcher::ApproximatelyMatches(int* status) { in ApproximatelyMatches()
294 bool UniLibBase::RegexMatcher::UpdateLastFindOffset() const { in UpdateLastFindOffset()
[all …]
Dunilib-javaicu.h65 class RegexMatcher {
131 RegexMatcher(const JniCache* jni_cache, ScopedGlobalRef<jobject> matcher,
145 std::unique_ptr<RegexMatcher> Matcher(const UnicodeText& context) const;
/external/libtextclassifier/native/utils/
Dregex-match.cc45 const UniLib::RegexMatcher* matcher);
52 const UniLib::RegexMatcher* matcher) in LuaVerifier()
61 const UniLib::RegexMatcher* matcher_;
86 const UniLib::RegexMatcher* matcher) { in Create()
104 int status = UniLib::RegexMatcher::kNoError; in GetCapturingGroup()
108 if (status != UniLib::RegexMatcher::kNoError) { in GetCapturingGroup()
156 Optional<std::string> GetCapturingGroupText(const UniLib::RegexMatcher* matcher, in GetCapturingGroupText()
158 int status = UniLib::RegexMatcher::kNoError; in GetCapturingGroupText()
160 if (status != UniLib::RegexMatcher::kNoError || group_text.empty()) { in GetCapturingGroupText()
167 const UniLib::RegexMatcher* matcher, in VerifyMatch()
Dregex-match_test.cc70 const std::unique_ptr<UniLib::RegexMatcher> matcher = in TEST_F()
73 int status = UniLib::RegexMatcher::kNoError; in TEST_F()
75 status == UniLib::RegexMatcher::kNoError); in TEST_F()
90 const std::unique_ptr<UniLib::RegexMatcher> matcher = in TEST_F()
93 int status = UniLib::RegexMatcher::kNoError; in TEST_F()
96 status == UniLib::RegexMatcher::kNoError); in TEST_F()
104 status == UniLib::RegexMatcher::kNoError); in TEST_F()
Dregex-match.h27 Optional<std::string> GetCapturingGroupText(const UniLib::RegexMatcher* matcher,
41 const UniLib::RegexMatcher* matcher,
/external/libtextclassifier/native/actions/
Dregex-actions.cc30 const UniLib::RegexMatcher* matcher, in FillAnnotationFromMatchGroup()
36 int status = UniLib::RegexMatcher::kNoError; in FillAnnotationFromMatchGroup()
39 if (status != UniLib::RegexMatcher::kNoError) { in FillAnnotationFromMatchGroup()
141 const std::unique_ptr<UniLib::RegexMatcher> matcher = in IsLowConfidenceInput()
143 int status = UniLib::RegexMatcher::kNoError; in IsLowConfidenceInput()
144 if (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in IsLowConfidenceInput()
173 const std::unique_ptr<UniLib::RegexMatcher> matcher = in FilterConfidenceOutput()
179 int status = UniLib::RegexMatcher::kNoError; in FilterConfidenceOutput()
180 if (matcher->Find(&status) || status != UniLib::RegexMatcher::kNoError) { in FilterConfidenceOutput()
203 const std::unique_ptr<UniLib::RegexMatcher> matcher = in SuggestActions()
[all …]
/external/icu/icu4c/source/i18n/
Drematch.cpp70 RegexMatcher::RegexMatcher(const RegexPattern *pat) { in RegexMatcher() function in RegexMatcher
86 RegexMatcher::RegexMatcher(const UnicodeString &regexp, const UnicodeString &input, in RegexMatcher() function in RegexMatcher
105 RegexMatcher::RegexMatcher(UText *regexp, UText *input, in RegexMatcher() function in RegexMatcher
122 RegexMatcher::RegexMatcher(const UnicodeString &regexp, in RegexMatcher() function in RegexMatcher
137 RegexMatcher::RegexMatcher(UText *regexp, in RegexMatcher() function in RegexMatcher
156 RegexMatcher::~RegexMatcher() { in ~RegexMatcher()
191 void RegexMatcher::init(UErrorCode &status) { in init()
240 void RegexMatcher::init2(UText *input, UErrorCode &status) { in init2()
279 RegexMatcher &RegexMatcher::appendReplacement(UnicodeString &dest, in appendReplacement()
302 RegexMatcher &RegexMatcher::appendReplacement(UText *dest, in appendReplacement()
[all …]
Drepattrn.cpp479 RegexMatcher *RegexPattern::matcher(const UnicodeString &input, in matcher()
481 RegexMatcher *retMatcher = matcher(status); in matcher()
495 RegexMatcher *RegexPattern::matcher(UErrorCode &status) const { in matcher()
496 RegexMatcher *retMatcher = NULL; in matcher()
506 retMatcher = new RegexMatcher(this); in matcher()
531 RegexMatcher *matcher = NULL; in matches()
555 RegexMatcher *matcher = NULL; in matches()
662 RegexMatcher m(this); in split()
683 RegexMatcher m(this); in split()
/external/catch2/include/internal/
Dcatch_matchers_string.cpp82RegexMatcher::RegexMatcher(std::string regex, CaseSensitive::Choice caseSensitivity): m_regex(std:… in RegexMatcher() function in Catch::Matchers::StdString::RegexMatcher
84 bool RegexMatcher::match(std::string const& matchee) const { in match()
93 std::string RegexMatcher::describe() const { in describe()
113 … StdString::RegexMatcher Matches(std::string const& regex, CaseSensitive::Choice caseSensitivity) { in Matches()
114 return StdString::RegexMatcher(regex, caseSensitivity); in Matches()
Dcatch_matchers_string.h55 struct RegexMatcher : MatcherBase<std::string> { struct
56 RegexMatcher( std::string regex, CaseSensitive::Choice caseSensitivity );
75 …StdString::RegexMatcher Matches( std::string const& regex, CaseSensitive::Choice caseSensitivity =… argument
/external/icu/android_icu4j/libcore_bridge/src/native/
DMatcherState.h41 MatcherState(icu::RegexMatcher* matcher);
46 icu::RegexMatcher* matcher();
53 std::unique_ptr<icu::RegexMatcher> mMatcher;
DMatcherState.cpp28 MatcherState::MatcherState(icu::RegexMatcher* matcher) : in MatcherState()
90 icu::RegexMatcher* MatcherState::matcher() { in matcher()
/external/icu/icu4c/source/test/intltest/
Drbbimonkeytest.h104 LocalPointer<RegexMatcher> fRuleMatcher; // Regular expression that matches the rule.
138 LocalPointer<RegexMatcher> fSetRefsMatcher;
139 LocalPointer<RegexMatcher> fCommentsMatcher;
140 LocalPointer<RegexMatcher> fClassDefMatcher;
141 LocalPointer<RegexMatcher> fRuleDefMatcher;
Dregextst.cpp372 RegexMatcher *REMatcher = NULL; in doRegexLMTest()
435 RegexMatcher *REMatcher = NULL; in doRegexLMTestUTF8()
588RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic()
733 RegexMatcher matcher(&pattern, 0, status); in UTextBasic()
790 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match()
863 RegexMatcher m("A?", 0, status); // will match zero length string. in API_Match()
914 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
974 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
1028 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
1052RegexMatcher m("(?= ?)", 0, status); // This pattern will zero-length matches anywhere, in API_Match()
[all …]
/external/flatbuffers/tests/fuzzer/
Dflatbuffers_scalar_fuzzer.cc45 class RegexMatcher { class
50 virtual ~RegexMatcher() = default;
98 class IntegerRegex : public RegexMatcher {
115 class UIntegerRegex : public RegexMatcher {
145 class FloatRegex : public RegexMatcher {
171 ScalarReferenceResult(const char *_type, RegexMatcher::MatchResult _matched) in ScalarReferenceResult()
194 const RegexMatcher::MatchResult matched;
/external/libtextclassifier/native/annotator/datetime/
Dregex-parser.cc229 const UniLib::RegexMatcher& matcher, in HandleParseMatch()
235 int status = UniLib::RegexMatcher::kNoError; in HandleParseMatch()
237 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch()
243 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch()
283 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWithRule()
285 int status = UniLib::RegexMatcher::kNoError; in ParseWithRule()
287 if (matcher->Matches(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWithRule()
292 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWithRule()
357 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in ExtractDatetime()
Dextractor.cc229 std::unique_ptr<UniLib::RegexMatcher> matcher = in ExtractType()
242 if (status != UniLib::RegexMatcher::kNoError) { in ExtractType()
253 if (status != UniLib::RegexMatcher::kNoError) { in GroupTextFromMatch()
263 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan()
267 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan()
335 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWrittenNumber()
341 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
343 if (status != UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
Dextractor.h48 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in DatetimeExtractor()
113 const UniLib::RegexMatcher& matcher_;
Dregex-parser.h92 const UniLib::RegexMatcher& matcher,
101 const CompiledRule& rule, const UniLib::RegexMatcher& matcher,
/external/icu/icu4c/source/tools/genrb/
Dprscmnts.cpp57 RegexMatcher myMatcher(patString, src, options, *status); in removeText()
105 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getText()
166 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getCount()
206 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getAt()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DObjectMatcherFactory.java27 return new RegexMatcher().set(pattern); in createRegexMatcher()
39 return new RegexMatcher().set(pattern, flags); in createRegexMatcher()
98 private static class RegexMatcher implements Predicate<String> { class in ObjectMatcherFactory

12