Home
last modified time | relevance | path

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

/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 …]
Dxmlparser.cpp489 UXMLParser::createElement(RegexMatcher &mEl, UErrorCode &status) { in createElement()
/external/libtextclassifier/util/utf8/
Dunilib_test.cc81 std::unique_ptr<UniLib::RegexMatcher> matcher = pattern->Matcher(input); in TEST()
101 std::unique_ptr<UniLib::RegexMatcher> matcher; in TEST()
106 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
109 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
115 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
120 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
122 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
124 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
126 EXPECT_EQ(status, UniLib::RegexMatcher::kNoError); in TEST()
142 std::unique_ptr<UniLib::RegexMatcher> matcher; in TEST()
[all …]
Dunilib-icu.cc67 UniLib::RegexMatcher::RegexMatcher(icu::RegexPattern* pattern, in RegexMatcher() function in libtextclassifier2::UniLib::RegexMatcher
80 std::unique_ptr<UniLib::RegexMatcher> UniLib::RegexPattern::Matcher( in Matcher()
82 return std::unique_ptr<UniLib::RegexMatcher>(new UniLib::RegexMatcher( in Matcher()
87 constexpr int UniLib::RegexMatcher::kError;
88 constexpr int UniLib::RegexMatcher::kNoError;
90 bool UniLib::RegexMatcher::Matches(int* status) const { in Matches()
106 bool UniLib::RegexMatcher::ApproximatelyMatches(int* status) { in ApproximatelyMatches()
131 bool UniLib::RegexMatcher::UpdateLastFindOffset() const { in UpdateLastFindOffset()
150 bool UniLib::RegexMatcher::Find(int* status) { in Find()
167 int UniLib::RegexMatcher::Start(int* status) const { in Start()
[all …]
Dunilib-icu.h50 class RegexMatcher {
105 explicit RegexMatcher(icu::RegexPattern* pattern, icu::UnicodeString text);
110 std::unique_ptr<icu::RegexMatcher> matcher_;
119 std::unique_ptr<RegexMatcher> Matcher(const UnicodeText& input) const;
/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
664 class U_I18N_API RegexMatcher U_FINAL : public UObject {
681 RegexMatcher(const UnicodeString &regexp, uint32_t flags, UErrorCode &status);
698 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status);
721 RegexMatcher(const UnicodeString &regexp, const UnicodeString &input,
745 RegexMatcher(UText *regexp, UText *input,
[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()
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.cpp468 RegexMatcher *RegexPattern::matcher(const UnicodeString &input, in matcher()
470 RegexMatcher *retMatcher = matcher(status); in matcher()
484 RegexMatcher *RegexPattern::matcher(UErrorCode &status) const { in matcher()
485 RegexMatcher *retMatcher = NULL; in matcher()
495 retMatcher = new RegexMatcher(this); in matcher()
520 RegexMatcher *matcher = NULL; in matches()
544 RegexMatcher *matcher = NULL; in matches()
651 RegexMatcher m(this); in split()
672 RegexMatcher m(this); in split()
Duregex.cpp43 RegexMatcher *fMatcher;
1369 RegexMatcher *m = regexp->fMatcher; in appendReplacement()
1641 RegexMatcher *m = regexp->fMatcher; in appendTail()
/external/libtextclassifier/datetime/
Dextractor.cc172 std::unique_ptr<UniLib::RegexMatcher> matcher = in ExtractType()
185 if (status != UniLib::RegexMatcher::kNoError) { in ExtractType()
196 if (status != UniLib::RegexMatcher::kNoError) { in GroupTextFromMatch()
206 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan()
210 if (status != UniLib::RegexMatcher::kNoError) { in UpdateMatchSpan()
278 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWrittenNumber()
285 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
287 if (status != UniLib::RegexMatcher::kNoError) { in ParseWrittenNumber()
Dparser.cc210 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in HandleParseMatch()
214 int status = UniLib::RegexMatcher::kNoError; in HandleParseMatch()
216 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch()
221 if (status != UniLib::RegexMatcher::kNoError) { in HandleParseMatch()
249 std::unique_ptr<UniLib::RegexMatcher> matcher = in ParseWithRule()
251 int status = UniLib::RegexMatcher::kNoError; in ParseWithRule()
253 if (matcher->Matches(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWithRule()
261 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in ParseWithRule()
380 const UniLib::RegexMatcher& matcher, in ExtractDatetime()
Dextractor.h48 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in DatetimeExtractor()
101 const UniLib::RegexMatcher& matcher_;
Dparser.h86 const UniLib::RegexMatcher& matcher,
95 const UniLib::RegexMatcher& matcher,
/external/icu/icu4c/source/test/intltest/
Drbbimonkeytest.h90 LocalPointer<RegexMatcher> fRuleMatcher; // Regular expression that matches the rule.
123 LocalPointer<RegexMatcher> fSetRefsMatcher;
124 LocalPointer<RegexMatcher> fCommentsMatcher;
125 LocalPointer<RegexMatcher> fClassDefMatcher;
126 LocalPointer<RegexMatcher> fRuleDefMatcher;
Dregextst.cpp338 RegexMatcher *REMatcher = NULL; in doRegexLMTest()
401 RegexMatcher *REMatcher = NULL; in doRegexLMTestUTF8()
554RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic()
699 RegexMatcher matcher(&pattern, 0, status); in UTextBasic()
756 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match()
829 RegexMatcher m("A?", 0, status); // will match zero length string. in API_Match()
880 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
940 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
994 RegexMatcher *matcher = pat->matcher(data, status); in API_Match()
1018RegexMatcher m("(?= ?)", 0, status); // This pattern will zero-length matches anywhere, in API_Match()
[all …]
Ddcfmtest.cpp211 RegexMatcher parseLineMat(UnicodeString( in DataDrivenTests()
219 RegexMatcher formatLineMat(UnicodeString( in DataDrivenTests()
228 RegexMatcher commentMat (UNICODE_STRING_SIMPLE("\\s*(#.*)?$"), 0, status); in DataDrivenTests()
229 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()
212 …thisRule->fRuleMatcher.adoptInstead(new RegexMatcher(thisRule->fExpandedRule, UREGEX_COMMENTS | UR… in addRule()
966 RegexMatcher m(name, params, 0, status); in getIntParam()
983 RegexMatcher m(name, params, 0, status); in getStringParam()
998 RegexMatcher m(name, params, UREGEX_CASE_INSENSITIVE, status); in getBoolParam()
Drbbitst.cpp1092RegexMatcher localeMatcher(UnicodeString(u"<locale *([\\p{L}\\p{Nd}_@&=-]*) *>"), 0, status); in TestExtended()
1762RegexMatcher tokenMatcher(tokenExpr, testFileAsString, UREGEX_MULTILINE | UREGEX_DOTALL, status… in runUnicodeTestData()
3032 RegexMatcher *fNumberMatcher;
3162 fNumberMatcher = new RegexMatcher( in RBBILineMonkey()
3732 RegexMatcher m(name, params, 0, status); in getIntParam()
4167 RegexMatcher m(" *type *= *(char|word|line|sent|title) *", p, 0, status); in TestMonkey()
4174 RegexMatcher u(" *utext", p, 0, status); in TestMonkey()
4183 if (RegexMatcher(UNICODE_STRING_SIMPLE("\\S"), p, 0, status).find()) { in TestMonkey()
4744 RegexMatcher lineMatcher(u"^.*?$", testFileAsString, UREGEX_MULTILINE, status); in TestEmoji()
4745 RegexMatcher hexMatcher(u"\\s*([a-f0-9]*)", UREGEX_CASE_INSENSITIVE, status); in TestEmoji()
Dssearch.cpp1275 RegexMatcher m(name, params, 0, status); in getIntParam()
1412 RegexMatcher m(" *strength *= *(primary|secondary|tertiary) *", p, 0, status); in monkeyTest()
1427 if (RegexMatcher("\\S", p, 0, status).find()) { in monkeyTest()
Ditspoof.cpp358RegexMatcher parseLine("(?m)^([0-9A-F]{4}[^#;]*?);([^#;]*?);([^#]*)", confusablesTxt, 0, status); in testConfData()
/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/libtextclassifier/
Dtext-classifier.cc970 const std::unique_ptr<UniLib::RegexMatcher> matcher = in RegexClassifyText()
972 int status = UniLib::RegexMatcher::kNoError; in RegexClassifyText()
980 if (status != UniLib::RegexMatcher::kNoError) { in RegexClassifyText()
989 if (status != UniLib::RegexMatcher::kNoError) { in RegexClassifyText()
1280 int status = UniLib::RegexMatcher::kNoError; in RegexChunk()
1281 while (matcher->Find(&status) && status == UniLib::RegexMatcher::kNoError) { in RegexChunk()
/external/icu/icu4c/source/samples/ugrep/
Dugrep.cpp126 RegexMatcher *matcher = rePat->matcher(empty, status); in main()