Searched defs:errcheckln (Results 1 - 4 of 4) sorted by relevance

/external/chromium_org/third_party/icu/source/test/intltest/
H A Dintltest.cpp917 void IntlTest::errcheckln(UErrorCode status, const UnicodeString &message ) { function in class:IntlTest
1047 void IntlTest::errcheckln(UErrorCode status, const char *fmt, ...) function in class:IntlTest
1800 errcheckln(ec, "FAIL: %s:%d: %s (%s)", file, line, message, u_errorName(ec));
H A Drbbitst.cpp46 errcheckln(errcode, "Failure in file %s, line %d, status = \"%s\"", __FILE__, __LINE__, u_errorName(errcode));}}
413 errcheckln(status, "Fail at file %s, line %d, status = %s", __FILE__, __LINE__, u_errorName(status));
696 errcheckln(status, "Failed to create the BreakIterator for default locale in TestEmptyString. - %s", u_errorName(status));
743 errcheckln(status, "Failed to create the BreakIterator for default locale in TestEndBehaviour. - %s", u_errorName(status));
764 errcheckln(status, "Failed to create the BreakIterator for default locale in TestBug4153072 - %s", u_errorName(status));
3547 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3613 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3781 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3871 errcheckln(status, "Creation of character break iterator failed %s", u_errorName(status));
3884 errcheckln(statu
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
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dintltest.cpp917 void IntlTest::errcheckln(UErrorCode status, const UnicodeString &message ) { function in class:IntlTest
1049 void IntlTest::errcheckln(UErrorCode status, const char *fmt, ...) function in class:IntlTest
1802 errcheckln(ec, "FAIL: %s:%d: %s (%s)", file, line, message, u_errorName(ec));
H A Drbbitst.cpp46 errcheckln(errcode, "Failure in file %s, line %d, status = \"%s\"", __FILE__, __LINE__, u_errorName(errcode));}}
413 errcheckln(status, "Fail at file %s, line %d, status = %s", __FILE__, __LINE__, u_errorName(status));
696 errcheckln(status, "Failed to create the BreakIterator for default locale in TestEmptyString. - %s", u_errorName(status));
743 errcheckln(status, "Failed to create the BreakIterator for default locale in TestEndBehaviour. - %s", u_errorName(status));
764 errcheckln(status, "Failed to create the BreakIterator for default locale in TestBug4153072 - %s", u_errorName(status));
3547 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3613 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3781 errcheckln(status, "Creation of break iterator failed %s", u_errorName(status));
3871 errcheckln(status, "Creation of character break iterator failed %s", u_errorName(status));
3884 errcheckln(statu
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
[all...]

Completed in 993 milliseconds