Searched defs:RegexMatcher (Results 1 - 6 of 6) sorted by relevance

/external/icu/icu4c/source/i18n/unicode/
H A Dregex.h28 * <code>RegexPattern</code> and <code>RegexMatcher</code>.
31 * and can be used to create <code>RegexMatcher</code> objects for the pattern.</p>
33 * <p>Class <code>RegexMatcher</code> bundles together a regular expression
35 * <code>RegexMatcher</code> includes API for doing plain find or search
39 * <p>Note that by constructing <code>RegexMatcher</code> objects directly from regular
62 class RegexMatcher;
105 * RegexMatcher objects that were created from the RegexPattern are active.
152 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
159 * <p>Note that it is often more convenient to construct a RegexMatcher directly
161 * then creating a RegexMatcher objec
625 class U_I18N_API RegexMatcher: public UObject { class in inherits:UObject
[all...]
/external/chromium_org/third_party/icu/source/i18n/unicode/
H A Dregex.h28 * <code>RegexPattern</code> and <code>RegexMatcher</code>.
31 * and can be used to create <code>RegexMatcher</code> objects for the pattern.</p>
33 * <p>Class <code>RegexMatcher</code> bundles together a regular expression
35 * <code>RegexMatcher</code> includes API for doing plain find or search
39 * <p>Note that by constructing <code>RegexMatcher</code> objects directly from regular
62 class RegexMatcher;
120 * RegexMatcher objects that were created from the RegexPattern are active.
167 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
174 * <p>Note that it is often more convenient to construct a RegexMatcher directly
176 * then creating a RegexMatcher objec
634 class U_I18N_API RegexMatcher: public UObject { class in inherits:UObject
[all...]
/external/chromium_org/third_party/icu/source/i18n/
H A Drematch.cpp10 // Contains the implementation of class RegexMatcher,
77 RegexMatcher::RegexMatcher(const RegexPattern *pat) { function in class:RegexMatcher
93 RegexMatcher::RegexMatcher(const UnicodeString &regexp, const UnicodeString &input, function in class:RegexMatcher
112 RegexMatcher::RegexMatcher(UText *regexp, UText *input, function in class:RegexMatcher
129 RegexMatcher::RegexMatcher(const UnicodeString &regexp, function in class:RegexMatcher
144 RegexMatcher function in class:RegexMatcher
[all...]
/external/icu/icu4c/source/i18n/
H A Drematch.cpp10 // Contains the implementation of class RegexMatcher,
77 RegexMatcher::RegexMatcher(const RegexPattern *pat) { function in class:RegexMatcher
93 RegexMatcher::RegexMatcher(const UnicodeString &regexp, const UnicodeString &input, function in class:RegexMatcher
112 RegexMatcher::RegexMatcher(UText *regexp, UText *input, function in class:RegexMatcher
129 RegexMatcher::RegexMatcher(const UnicodeString &regexp, function in class:RegexMatcher
144 RegexMatcher function in class:RegexMatcher
[all...]
/external/chromium_org/third_party/icu/source/test/intltest/
H A Drbbitst.cpp1020 RegexMatcher localeMatcher(UNICODE_STRING_SIMPLE("<locale *([\\p{L}\\p{Nd}_]*) *>"), 0, status);
1611 RegexMatcher tokenMatcher(tokenExpr, testFileAsString, UREGEX_MULTILINE | UREGEX_DOTALL, status);
2757 RegexMatcher *fNumberMatcher;
2870 fNumberMatcher = new RegexMatcher(
3401 RegexMatcher m(name, params, 0, status);
3832 RegexMatcher m(" *type *= *(char|word|line|sent|title) *", p, 0, status);
3839 RegexMatcher u(" *utext", p, 0, status);
3848 if (RegexMatcher(UNICODE_STRING_SIMPLE("\\S"), p, 0, status).find()) {
3737 TEST_ASSERT(expectedcount < EXPECTEDSIZE); return; } expected[expectedcount ++] = i; } testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } delete bi; } void RBBITest::TestSentBreaks(void) { Locale locale(�); UErrorCode status = U_ZERO_ERROR; BreakIterator *bi = BreakIterator::createSentenceInstance(locale, status); UChar str[200]; static const char *strlist[] = { �, �, �, �, �, �, �, �, �, �, � � � �, � � � � � � }; int loop; if (U_FAILURE(status)) { errcheckln(status, �, u_errorName(status)); return; } for (loop = 0; loop < (int)(sizeof(strlist) / sizeof(char *)); loop ++) { u_unescape(strlist[loop], str, (int32_t)(sizeof(str) / sizeof(str[0]))); UnicodeString ustr(str); RBBISentMonkey monkey; if (U_FAILURE(monkey.deferredStatus)) { continue; } const int EXPECTEDSIZE = 50; int expected[EXPECTEDSIZE]; int expectedcount = 0; monkey.setText(ustr); int i; for (i = 0; i != BreakIterator::DONE; i = monkey.next(i)) { if (expectedcount >= EXPECTEDSIZE) { TEST_ASSERT(expectedcount < EXPECTEDSIZE); return; } expected[expectedcount ++] = i; } testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } delete bi; } void RBBITest::TestMonkey(char *params) { UErrorCode status = U_ZERO_ERROR; int32_t loopCount = 500; int32_t seed = 1; UnicodeString breakType = �; Locale locale(�); UBool useUText = FALSE; if (quick == FALSE) { loopCount = 10000; } if (params) { UnicodeString p(params); loopCount = getIntParam(�, p, loopCount); seed = getIntParam(�, p, seed); RegexMatcher m(�, p, 0, status); if (m.find()) { breakType = m.group(1, status); m.reset(); p = m.replaceFirst(�, status); } RegexMatcher u(�, p, 0, status); if (u.find()) { useUText = TRUE; u.reset(); p = u.replaceFirst(�, status); } if (RegexMatcher(UNICODE_STRING_SIMPLE(�), p, 0, status).find()) { char buf[100]; p.extract(buf, sizeof(buf), NULL, status); buf[sizeof(buf)-1] = 0; errln(�, buf); return; } } if (breakType == � || breakType == �) { RBBICharMonkey m; BreakIterator *bi = BreakIterator::createCharacterInstance(locale, status); if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); if (breakType == � && useUText==FALSE) { RunMonkey(bi, m, �, seed, loopCount, TRUE); } } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == �) { logln(�); RBBIWordMonkey m; BreakIterator *bi = BreakIterator::createWordInstance(locale, status); if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == �) { logln(�); RBBILineMonkey m; BreakIterator *bi = BreakIterator::createLineInstance(locale, status); if (loopCount >= 10) { loopCount = loopCount / 5; } if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == � ) { logln(�); RBBISentMonkey m; BreakIterator *bi = BreakIterator::createSentenceInstance(locale, status); if (loopCount >= 10) argument
/external/icu/icu4c/source/test/intltest/
H A Drbbitst.cpp1020 RegexMatcher localeMatcher(UNICODE_STRING_SIMPLE("<locale *([\\p{L}\\p{Nd}_]*) *>"), 0, status);
1611 RegexMatcher tokenMatcher(tokenExpr, testFileAsString, UREGEX_MULTILINE | UREGEX_DOTALL, status);
2757 RegexMatcher *fNumberMatcher;
2870 fNumberMatcher = new RegexMatcher(
3401 RegexMatcher m(name, params, 0, status);
3832 RegexMatcher m(" *type *= *(char|word|line|sent|title) *", p, 0, status);
3839 RegexMatcher u(" *utext", p, 0, status);
3848 if (RegexMatcher(UNICODE_STRING_SIMPLE("\\S"), p, 0, status).find()) {
3737 TEST_ASSERT(expectedcount < EXPECTEDSIZE); return; } expected[expectedcount ++] = i; } testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } delete bi; } void RBBITest::TestSentBreaks(void) { Locale locale(�); UErrorCode status = U_ZERO_ERROR; BreakIterator *bi = BreakIterator::createSentenceInstance(locale, status); UChar str[200]; static const char *strlist[] = { �, �, �, �, �, �, �, �, �, �, � � � �, � � � � � � }; int loop; if (U_FAILURE(status)) { errcheckln(status, �, u_errorName(status)); return; } for (loop = 0; loop < (int)(sizeof(strlist) / sizeof(char *)); loop ++) { u_unescape(strlist[loop], str, (int32_t)(sizeof(str) / sizeof(str[0]))); UnicodeString ustr(str); RBBISentMonkey monkey; if (U_FAILURE(monkey.deferredStatus)) { continue; } const int EXPECTEDSIZE = 50; int expected[EXPECTEDSIZE]; int expectedcount = 0; monkey.setText(ustr); int i; for (i = 0; i != BreakIterator::DONE; i = monkey.next(i)) { if (expectedcount >= EXPECTEDSIZE) { TEST_ASSERT(expectedcount < EXPECTEDSIZE); return; } expected[expectedcount ++] = i; } testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } delete bi; } void RBBITest::TestMonkey(char *params) { UErrorCode status = U_ZERO_ERROR; int32_t loopCount = 500; int32_t seed = 1; UnicodeString breakType = �; Locale locale(�); UBool useUText = FALSE; if (quick == FALSE) { loopCount = 10000; } if (params) { UnicodeString p(params); loopCount = getIntParam(�, p, loopCount); seed = getIntParam(�, p, seed); RegexMatcher m(�, p, 0, status); if (m.find()) { breakType = m.group(1, status); m.reset(); p = m.replaceFirst(�, status); } RegexMatcher u(�, p, 0, status); if (u.find()) { useUText = TRUE; u.reset(); p = u.replaceFirst(�, status); } if (RegexMatcher(UNICODE_STRING_SIMPLE(�), p, 0, status).find()) { char buf[100]; p.extract(buf, sizeof(buf), NULL, status); buf[sizeof(buf)-1] = 0; errln(�, buf); return; } } if (breakType == � || breakType == �) { RBBICharMonkey m; BreakIterator *bi = BreakIterator::createCharacterInstance(locale, status); if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); if (breakType == � && useUText==FALSE) { RunMonkey(bi, m, �, seed, loopCount, TRUE); } } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == �) { logln(�); RBBIWordMonkey m; BreakIterator *bi = BreakIterator::createWordInstance(locale, status); if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == �) { logln(�); RBBILineMonkey m; BreakIterator *bi = BreakIterator::createLineInstance(locale, status); if (loopCount >= 10) { loopCount = loopCount / 5; } if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == � ) { logln(�); RBBISentMonkey m; BreakIterator *bi = BreakIterator::createSentenceInstance(locale, status); if (loopCount >= 10) argument

Completed in 2894 milliseconds