Lines Matching refs:m1
682 RegexMatcher *m1 = pat2->matcher(inStr1, status);
684 REGEX_ASSERT(m1->lookingAt(status) == TRUE);
685 REGEX_ASSERT(m1->input() == inStr1);
686 m1->reset(instr2);
687 REGEX_ASSERT(m1->lookingAt(status) == FALSE);
688 REGEX_ASSERT(m1->input() == instr2);
689 m1->reset(inStr1);
690 REGEX_ASSERT(m1->input() == inStr1);
691 REGEX_ASSERT(m1->lookingAt(status) == TRUE);
692 m1->reset(empty);
693 REGEX_ASSERT(m1->lookingAt(status) == FALSE);
694 REGEX_ASSERT(m1->input() == empty);
695 REGEX_ASSERT(&m1->pattern() == pat2);
700 m1->reset(inStr1);
701 m1->reset(4, status);
703 REGEX_ASSERT(m1->input() == inStr1);
704 REGEX_ASSERT(m1->lookingAt(status) == TRUE);
706 m1->reset(-1, status);
710 m1->reset(0, status);
714 int32_t len = m1->input().length();
715 m1->reset(len-1, status);
719 m1->reset(len, status);
723 m1->reset(len+1, status);
730 m1->reset(instr2);
731 REGEX_ASSERT(m1->matches(4, status) == TRUE);
732 m1->reset();
733 REGEX_ASSERT(m1->matches(3, status) == FALSE);
734 m1->reset();
735 REGEX_ASSERT(m1->matches(5, status) == FALSE);
736 REGEX_ASSERT(m1->matches(4, status) == TRUE);
737 REGEX_ASSERT(m1->matches(-1, status) == FALSE);
743 len = m1->input().length();
744 REGEX_ASSERT(m1->matches(len, status) == FALSE);
749 REGEX_ASSERT(m1->matches(len+1, status) == FALSE);
771 m1->reset(instr2); // "not abc"
772 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE);
773 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE);
774 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE);
775 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE);
776 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE);
779 len = m1->input().length();
780 REGEX_ASSERT(m1->lookingAt(len, status) == FALSE);
782 REGEX_ASSERT(m1->lookingAt(len+1, status) == FALSE);
785 delete m1;
1075 RegexMatcher m1(".*", testString, 0, status);
1076 REGEX_ASSERT(m1.lookingAt(status) == TRUE);
1077 REGEX_ASSERT(m1.hitEnd() == TRUE);
1078 REGEX_ASSERT(m1.requireEnd() == FALSE);
1721 RegexMatcher *m1 = pat2->matcher(&input1, RegexPattern::PATTERN_IS_UTEXT, status);
1723 REGEX_ASSERT(m1->lookingAt(status) == TRUE);
1725 REGEX_ASSERT_UTEXT_UTF8(str_abcdefthisisatest, m1->inputText());
1726 m1->reset(&input2);
1727 REGEX_ASSERT(m1->lookingAt(status) == FALSE);
1729 REGEX_ASSERT_UTEXT_UTF8(str_notabc, m1->inputText());
1730 m1->reset(&input1);
1731 REGEX_ASSERT_UTEXT_UTF8(str_abcdefthisisatest, m1->inputText());
1732 REGEX_ASSERT(m1->lookingAt(status) == TRUE);
1733 m1->reset(&empty);
1734 REGEX_ASSERT(m1->lookingAt(status) == FALSE);
1740 m1->reset(&input1);
1741 m1->reset(4, status);
1743 REGEX_ASSERT_UTEXT_UTF8(str_abcdefthisisatest, m1->inputText());
1744 REGEX_ASSERT(m1->lookingAt(status) == TRUE);
1746 m1->reset(-1, status);
1750 m1->reset(0, status);
1754 m1->reset(input1Len-1, status);
1758 m1->reset(input1Len, status);
1762 m1->reset(input1Len+1, status);
1769 m1->reset(&input2);
1770 REGEX_ASSERT(m1->matches(4, status) == TRUE);
1771 m1->reset();
1772 REGEX_ASSERT(m1->matches(3, status) == FALSE);
1773 m1->reset();
1774 REGEX_ASSERT(m1->matches(5, status) == FALSE);
1775 REGEX_ASSERT(m1->matches(4, status) == TRUE);
1776 REGEX_ASSERT(m1->matches(-1, status) == FALSE);
1782 REGEX_ASSERT(m1->matches(input2Len, status) == FALSE);
1787 REGEX_ASSERT(m1->matches(input2Len+1, status) == FALSE);
1808 m1->reset(&input2); // "not abc"
1809 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE);
1810 REGEX_ASSERT(m1->lookingAt(5, status) == FALSE);
1811 REGEX_ASSERT(m1->lookingAt(3, status) == FALSE);
1812 REGEX_ASSERT(m1->lookingAt(4, status) == TRUE);
1813 REGEX_ASSERT(m1->lookingAt(-1, status) == FALSE);
1816 REGEX_ASSERT(m1->lookingAt(input2Len, status) == FALSE);
1818 REGEX_ASSERT(m1->lookingAt(input2Len+1, status) == FALSE);
1821 delete m1;
2214 RegexMatcher m1(&testPattern, &testText, 0, status);
2215 REGEX_ASSERT(m1.lookingAt(status) == TRUE);
2216 REGEX_ASSERT(m1.hitEnd() == TRUE);
2217 REGEX_ASSERT(m1.requireEnd() == FALSE);