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

/external/chromium/third_party/icu/public/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
60 class RegexMatcher;
119 * RegexMatcher objects that were created from the RegexPattern are active.
166 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
173 * <p>Note that it is often more convenient to construct a RegexMatcher directly
175 * then creating a RegexMatcher objec
451 class U_I18N_API RegexMatcher: public UObject { class in inherits:UObject
[all...]
/external/chromium/third_party/icu/source/i18n/
H A Drematch.cpp10 // Contains the implementation of class RegexMatcher,
52 RegexMatcher::RegexMatcher(const RegexPattern *pat) { function in class:RegexMatcher
68 RegexMatcher::RegexMatcher(const UnicodeString &regexp, const UnicodeString &input, function in class:RegexMatcher
81 RegexMatcher::RegexMatcher(const UnicodeString &regexp, function in class:RegexMatcher
96 RegexMatcher::~RegexMatcher() {
119 void RegexMatcher
[all...]
/external/icu4c/i18n/
H A Drematch.cpp10 // Contains the implementation of class RegexMatcher,
70 RegexMatcher::RegexMatcher(const RegexPattern *pat) { function in class:RegexMatcher
86 RegexMatcher::RegexMatcher(const UnicodeString &regexp, const UnicodeString &input, function in class:RegexMatcher
105 RegexMatcher::RegexMatcher(UText *regexp, UText *input, function in class:RegexMatcher
122 RegexMatcher::RegexMatcher(const UnicodeString &regexp, function in class:RegexMatcher
137 RegexMatcher function in class:RegexMatcher
[all...]
/external/icu4c/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
61 class RegexMatcher;
122 * RegexMatcher objects that were created from the RegexPattern are active.
169 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
176 * <p>Note that it is often more convenient to construct a RegexMatcher directly
178 * then creating a RegexMatcher objec
648 class U_I18N_API RegexMatcher: public UObject { class in inherits:UObject
[all...]
/external/chromium/third_party/icu/source/test/intltest/
H A Drbbitst.cpp1802 RegexMatcher localeMatcher(UNICODE_STRING_SIMPLE("<locale *([\\p{L}\\p{Nd}_]*) *>"), 0, status);
2544 RegexMatcher tokenMatcher(tokenExpr, testFileAsString, UREGEX_MULTILINE | UREGEX_DOTALL, status);
2975 RegexMatcher *fMatcher;
3614 RegexMatcher *fNumberMatcher;
3615 RegexMatcher *fLB11Matcher;
3719 fNumberMatcher = new RegexMatcher(
4206 RegexMatcher m(name, params, 0, status);
4635 RegexMatcher m(" *type *= *(char|word|line|sent|title) *", p, 0, status);
4642 RegexMatcher u(" *utext", p, 0, status);
4651 if (RegexMatcher(UNICODE_STRING_SIMPL
4540 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
[all...]
/external/icu4c/test/intltest/
H A Drbbitst.cpp1463 RegexMatcher localeMatcher(UNICODE_STRING_SIMPLE("<locale *([\\p{L}\\p{Nd}_]*) *>"), 0, status);
2237 RegexMatcher tokenMatcher(tokenExpr, testFileAsString, UREGEX_MULTILINE | UREGEX_DOTALL, status);
2665 RegexMatcher *fMatcher;
3292 RegexMatcher *fNumberMatcher;
3293 RegexMatcher *fLB11Matcher;
3399 fNumberMatcher = new RegexMatcher(
3898 RegexMatcher m(name, params, 0, status);
4324 RegexMatcher m(" *type *= *(char|word|line|sent|title) *", p, 0, status);
4331 RegexMatcher u(" *utext", p, 0, status);
4340 if (RegexMatcher(UNICODE_STRING_SIMPL
4229 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
[all...]
/external/webkit/JavaScriptCore/icu/unicode/
H A Durename.h1371 #define RegexMatcher RegexMatcher_3_2 macro
/external/webkit/JavaScriptGlue/icu/unicode/
H A Durename.h1371 #define RegexMatcher RegexMatcher_3_2 macro
/external/webkit/WebCore/icu/unicode/
H A Durename.h1371 #define RegexMatcher RegexMatcher_3_2 macro
/external/webkit/WebKit/mac/icu/unicode/
H A Durename.h1371 #define RegexMatcher RegexMatcher_3_2 macro
/external/chromium/third_party/icu/public/common/unicode/
H A Durename.h1793 #define RegexMatcher RegexMatcher_4_2 macro
/external/icu4c/common/unicode/
H A Durename.h2047 #define RegexMatcher U_ICU_ENTRY_POINT_RENAME(RegexMatcher) macro

Completed in 1508 milliseconds