Home
last modified time | relevance | path

Searched refs:RegexMatcher (Results 1 – 25 of 40) 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/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;
632 friend class RegexMatcher; variable
665 class U_I18N_API RegexMatcher U_FINAL : public UObject {
681 RegexMatcher(const UnicodeString &regexp, uint32_t flags, UErrorCode &status);
697 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status);
719 RegexMatcher(const UnicodeString &regexp, const UnicodeString &input,
742 RegexMatcher(UText *regexp, UText *input,
[all …]
/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()
138 const std::unique_ptr<UniLib::RegexMatcher> matcher = in IsLowConfidenceInput()
140 int status = UniLib::RegexMatcher::kNoError; in IsLowConfidenceInput()
141 if (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in IsLowConfidenceInput()
170 const std::unique_ptr<UniLib::RegexMatcher> matcher = in FilterConfidenceOutput()
176 int status = UniLib::RegexMatcher::kNoError; in FilterConfidenceOutput()
177 if (matcher->Find(&status) || status != UniLib::RegexMatcher::kNoError) { in FilterConfidenceOutput()
200 const std::unique_ptr<UniLib::RegexMatcher> matcher = in SuggestActions()
[all …]
/external/libtextclassifier/native/utils/utf8/
Dunilib-javaicu.cc183 constexpr int UniLibBase::RegexMatcher::kError;
184 constexpr int UniLibBase::RegexMatcher::kNoError;
186 std::unique_ptr<UniLibBase::RegexMatcher> UniLibBase::RegexPattern::Matcher( in Matcher()
208 return std::unique_ptr<UniLibBase::RegexMatcher>(new RegexMatcher( in Matcher()
217 return std::unique_ptr<UniLibBase::RegexMatcher>( in Matcher()
218 new RegexMatcher(jni_cache_, {}, {})); in Matcher()
222 UniLibBase::RegexMatcher::RegexMatcher(const JniCache* jni_cache, in RegexMatcher() function in libtextclassifier3::UniLibBase::RegexMatcher
229 bool UniLibBase::RegexMatcher::Matches(int* status) const { in Matches()
245 bool UniLibBase::RegexMatcher::ApproximatelyMatches(int* status) { in ApproximatelyMatches()
287 bool UniLibBase::RegexMatcher::UpdateLastFindOffset() const { in UpdateLastFindOffset()
[all …]
Dunilib-javaicu.h63 class RegexMatcher {
125 RegexMatcher(const JniCache* jni_cache, ScopedGlobalRef<jobject> matcher,
139 std::unique_ptr<RegexMatcher> Matcher(const UnicodeText& context) const;
/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/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()
190 void RegexMatcher::init(UErrorCode &status) { in init()
238 void RegexMatcher::init2(UText *input, UErrorCode &status) { in init2()
277 RegexMatcher &RegexMatcher::appendReplacement(UnicodeString &dest, in appendReplacement()
300 RegexMatcher &RegexMatcher::appendReplacement(UText *dest, in appendReplacement()
[all …]
Drepattrn.cpp483 RegexMatcher *RegexPattern::matcher(const UnicodeString &input, in matcher()
485 RegexMatcher *retMatcher = matcher(status); in matcher()
499 RegexMatcher *RegexPattern::matcher(UErrorCode &status) const { in matcher()
500 RegexMatcher *retMatcher = NULL; in matcher()
510 retMatcher = new RegexMatcher(this); in matcher()
535 RegexMatcher *matcher = NULL; in matches()
559 RegexMatcher *matcher = NULL; in matches()
666 RegexMatcher m(this); in split()
687 RegexMatcher m(this); in split()
/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.cpp371 RegexMatcher *REMatcher = NULL; in doRegexLMTest()
434 RegexMatcher *REMatcher = NULL; in doRegexLMTestUTF8()
587RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic()
732 RegexMatcher matcher(&pattern, 0, status); in UTextBasic()
789 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match()
862 RegexMatcher m("A?", 0, status); // will match zero length string. in API_Match()
913 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
973 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
1027 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
1051RegexMatcher m("(?= ?)", 0, status); // This pattern will zero-length matches anywhere, in API_Match()
[all …]
Ddcfmtest.cpp231 RegexMatcher parseLineMat(UnicodeString( in DataDrivenTests()
239 RegexMatcher formatLineMat(UnicodeString( in DataDrivenTests()
248 RegexMatcher commentMat (UNICODE_STRING_SIMPLE("\\s*(#.*)?$"), 0, status); in DataDrivenTests()
249 RegexMatcher lineMat(UNICODE_STRING_SIMPLE("(?m)^(.*?)$"), testString, 0, status); in DataDrivenTests()
Drbbimonkeytest.cpp75 fSetRefsMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
82 fCommentsMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
90 fClassDefMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
99 fRuleDefMatcher.adoptInstead(new RegexMatcher(UnicodeString( in BreakRules()
220 …thisRule->fRuleMatcher.adoptInstead(new RegexMatcher(thisRule->fExpandedRule, UREGEX_COMMENTS | UR… in addRule()
982 RegexMatcher m(name, params, 0, status); in getIntParam()
999 RegexMatcher m(name, params, 0, status); in getStringParam()
1014 RegexMatcher m(name, params, UREGEX_CASE_INSENSITIVE, status); in getBoolParam()
/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/
Dextractor.cc214 std::unique_ptr<UniLib::RegexMatcher> matcher = in ExtractType()
227 if (status != UniLib::RegexMatcher::kNoError) { in ExtractType()
238 if (status != UniLib::RegexMatcher::kNoError) { in GroupTextFromMatch()
248 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan()
252 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan()
320 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWrittenNumber()
326 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
328 if (status != UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
Dparser.cc223 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in HandleParseMatch()
227 int status = UniLib::RegexMatcher::kNoError; in HandleParseMatch()
229 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch()
234 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch()
269 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWithRule()
271 int status = UniLib::RegexMatcher::kNoError; in ParseWithRule()
273 if (matcher->Matches(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWithRule()
281 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWithRule()
352 const UniLib::RegexMatcher& matcher, in ExtractDatetime()
Dextractor.h48 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in DatetimeExtractor()
103 const UniLib::RegexMatcher& matcher_;
Dparser.h91 const UniLib::RegexMatcher& matcher,
100 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 ObjectMatcher<String> { class in ObjectMatcherFactory

12