Lines Matching refs:resultSz
623 int32_t resultSz;
637 resultSz = uregex_group(re, 0, buf, sizeof(buf)/2, &status);
640 TEST_ASSERT(resultSz == (int32_t)strlen("abc interior def"));
644 resultSz = uregex_group(re, 1, buf, sizeof(buf)/2, &status);
647 TEST_ASSERT(resultSz == (int32_t)strlen(" interior "));
656 resultSz = uregex_group(re, 0, NULL, 0, &status);
658 TEST_ASSERT(resultSz == (int32_t)strlen("abc interior def"));
663 resultSz = uregex_group(re, 0, buf, 5, &status);
667 TEST_ASSERT(resultSz == (int32_t)strlen("abc interior def"));
671 resultSz = uregex_group(re, 0, buf, (int32_t)strlen("abc interior def"), &status);
674 TEST_ASSERT(resultSz == (int32_t)strlen("abc interior def"));
818 int32_t resultSz;
829 resultSz = uregex_replaceFirst(re, replText, -1, buf, sizeof(buf)/2, &status);
832 TEST_ASSERT(resultSz == (int32_t)strlen("Replace xaax x1x x...x."));
837 resultSz = uregex_replaceFirst(re, replText, -1, buf, sizeof(buf)/2, &status);
840 TEST_ASSERT(resultSz == (int32_t)strlen("No match here."));
846 resultSz = uregex_replaceFirst(re, replText, -1, buf, strlen("Replace <aa> x1x x...x."), &status);
849 TEST_ASSERT(resultSz == (int32_t)strlen("Replace xaax x1x x...x."));
850 TEST_ASSERT(buf[resultSz] == (UChar)0xffff);
857 resultSz = uregex_replaceFirst(re, replText, -1, buf, strlen("Replace <aa> x1x x...x."), &status);
860 TEST_ASSERT(resultSz == (int32_t)strlen("Replace xaax x1x x...x."));
861 TEST_ASSERT(buf[resultSz] == (UChar)0xffff);
865 resultSz = uregex_replaceFirst(re, replText, -1, NULL, 0, &status);
867 TEST_ASSERT(resultSz == (int32_t)strlen("Replace xaax x1x x...x."));
872 resultSz = uregex_replaceFirst(re, replText, -1, buf, strlen("Replace <aa> x1x x...x.")-1, &status);
875 TEST_ASSERT(resultSz == (int32_t)strlen("Replace xaax x1x x...x."));
876 TEST_ASSERT(buf[resultSz] == (UChar)0xffff);