/external/icu/icu4c/source/tools/toolutil/ |
D | xmlparser.h | 208 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 …]
|
D | xmlparser.cpp | 489 UXMLParser::createElement(RegexMatcher &mEl, UErrorCode &status) { in createElement()
|
/external/libtextclassifier/util/utf8/ |
D | unilib_test.cc | 81 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 …]
|
D | unilib-icu.cc | 67 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 …]
|
D | unilib-icu.h | 50 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/ |
D | regex.h | 66 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 ®exp, uint32_t flags, UErrorCode &status); 698 RegexMatcher(UText *regexp, uint32_t flags, UErrorCode &status); 721 RegexMatcher(const UnicodeString ®exp, const UnicodeString &input, 745 RegexMatcher(UText *regexp, UText *input, [all …]
|
/external/icu/icu4c/source/i18n/ |
D | rematch.cpp | 70 RegexMatcher::RegexMatcher(const RegexPattern *pat) { in RegexMatcher() function in RegexMatcher 86 RegexMatcher::RegexMatcher(const UnicodeString ®exp, 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 ®exp, 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 …]
|
D | repattrn.cpp | 468 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()
|
D | uregex.cpp | 43 RegexMatcher *fMatcher; 1369 RegexMatcher *m = regexp->fMatcher; in appendReplacement() 1641 RegexMatcher *m = regexp->fMatcher; in appendTail()
|
/external/libtextclassifier/datetime/ |
D | extractor.cc | 172 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()
|
D | parser.cc | 210 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()
|
D | extractor.h | 48 const CompiledRule& rule, const UniLib::RegexMatcher& matcher, in DatetimeExtractor() 101 const UniLib::RegexMatcher& matcher_;
|
D | parser.h | 86 const UniLib::RegexMatcher& matcher, 95 const UniLib::RegexMatcher& matcher,
|
/external/icu/icu4c/source/test/intltest/ |
D | rbbimonkeytest.h | 90 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;
|
D | regextst.cpp | 338 RegexMatcher *REMatcher = NULL; in doRegexLMTest() 401 RegexMatcher *REMatcher = NULL; in doRegexLMTestUTF8() 554 … RegexMatcher *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() 1018 … RegexMatcher m("(?= ?)", 0, status); // This pattern will zero-length matches anywhere, in API_Match() [all …]
|
D | dcfmtest.cpp | 211 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()
|
D | rbbimonkeytest.cpp | 75 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()
|
D | rbbitst.cpp | 1092 … RegexMatcher localeMatcher(UnicodeString(u"<locale *([\\p{L}\\p{Nd}_@&=-]*) *>"), 0, status); in TestExtended() 1762 …RegexMatcher 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()
|
D | ssearch.cpp | 1275 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()
|
D | itspoof.cpp | 358 … RegexMatcher parseLine("(?m)^([0-9A-F]{4}[^#;]*?);([^#;]*?);([^#]*)", confusablesTxt, 0, status); in testConfData()
|
/external/icu/icu4c/source/tools/genrb/ |
D | prscmnts.cpp | 57 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/ |
D | text-classifier.cc | 970 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/ |
D | ugrep.cpp | 126 RegexMatcher *matcher = rePat->matcher(empty, status); in main()
|