Lines Matching refs:REGEX_TESTLM
361 #define REGEX_TESTLM(pat, text, looking, match) UPRV_BLOCK_MACRO_BEGIN { \ macro
601 REGEX_TESTLM("st(abc)ring", "stabcring thing", TRUE, FALSE); in Basic()
602 REGEX_TESTLM("st(abc)ring", "stabcring", TRUE, TRUE); in Basic()
603 REGEX_TESTLM("st(abc)ring", "stabcrung", FALSE, FALSE); in Basic()
608 REGEX_TESTLM("st(abc)*ring", "string", TRUE, TRUE); in Basic()
609 REGEX_TESTLM("st(abc)*ring", "stabcring", TRUE, TRUE); in Basic()
610 REGEX_TESTLM("st(abc)*ring", "stabcabcring", TRUE, TRUE); in Basic()
611 REGEX_TESTLM("st(abc)*ring", "stabcabcdring", FALSE, FALSE); in Basic()
612 REGEX_TESTLM("st(abc)*ring", "stabcabcabcring etc.", TRUE, FALSE); in Basic()
614 REGEX_TESTLM("a*", "", TRUE, TRUE); in Basic()
615 REGEX_TESTLM("a*", "b", TRUE, FALSE); in Basic()
621 REGEX_TESTLM(".", "abc", TRUE, FALSE); in Basic()
622 REGEX_TESTLM("...", "abc", TRUE, TRUE); in Basic()
623 REGEX_TESTLM("....", "abc", FALSE, FALSE); in Basic()
624 REGEX_TESTLM(".*", "abcxyz123", TRUE, TRUE); in Basic()
625 REGEX_TESTLM("ab.*xyz", "abcdefghij", FALSE, FALSE); in Basic()
626 REGEX_TESTLM("ab.*xyz", "abcdefg...wxyz", TRUE, TRUE); in Basic()
627 REGEX_TESTLM("ab.*xyz", "abcde...wxyz...abc..xyz", TRUE, TRUE); in Basic()
628 REGEX_TESTLM("ab.*xyz", "abcde...wxyz...abc..xyz...", TRUE, FALSE); in Basic()
633 REGEX_TESTLM("abc*", "ab", TRUE, TRUE); in Basic()
634 REGEX_TESTLM("abc*", "abccccc", TRUE, TRUE); in Basic()
639 REGEX_TESTLM(".", "\\U00011000", TRUE, TRUE); in Basic()
640 REGEX_TESTLM("...", "\\U00011000x\\U00012002", TRUE, TRUE); in Basic()
641 REGEX_TESTLM("...", "\\U00011000x\\U00012002y", TRUE, FALSE); in Basic()
647 REGEX_TESTLM("[1-6]", "1", TRUE, TRUE); in Basic()
648 REGEX_TESTLM("[1-6]", "3", TRUE, TRUE); in Basic()
649 REGEX_TESTLM("[1-6]", "7", FALSE, FALSE); in Basic()
650 REGEX_TESTLM("a[1-6]", "a3", TRUE, TRUE); in Basic()
651 REGEX_TESTLM("a[1-6]", "a3", TRUE, TRUE); in Basic()
652 REGEX_TESTLM("a[1-6]b", "a3b", TRUE, TRUE); in Basic()
654 REGEX_TESTLM("a[0-9]*b", "a123b", TRUE, TRUE); in Basic()
655 REGEX_TESTLM("a[0-9]*b", "abc", TRUE, FALSE); in Basic()
656 REGEX_TESTLM("[\\p{Nd}]*", "123456", TRUE, TRUE); in Basic()
657 REGEX_TESTLM("[\\p{Nd}]*", "a123456", TRUE, FALSE); // note that * matches 0 occurences. in Basic()
658 REGEX_TESTLM("[a][b][[:Zs:]]*", "ab ", TRUE, TRUE); in Basic()
663 REGEX_TESTLM("(a|b)", "a", TRUE, TRUE); in Basic()
664 REGEX_TESTLM("(a|b)", "b", TRUE, TRUE); in Basic()
665 REGEX_TESTLM("(a|b)", "c", FALSE, FALSE); in Basic()
666 REGEX_TESTLM("a|b", "b", TRUE, TRUE); in Basic()
668 REGEX_TESTLM("(a|b|c)*", "aabcaaccbcabc", TRUE, TRUE); in Basic()
669 REGEX_TESTLM("(a|b|c)*", "aabcaaccbcabdc", TRUE, FALSE); in Basic()
670 REGEX_TESTLM("(a(b|c|d)(x|y|z)*|123)", "ac", TRUE, TRUE); in Basic()
671 REGEX_TESTLM("(a(b|c|d)(x|y|z)*|123)", "123", TRUE, TRUE); in Basic()
672 REGEX_TESTLM("(a|(1|2)*)(b|c|d)(x|y|z)*|123", "123", TRUE, TRUE); in Basic()
673 REGEX_TESTLM("(a|(1|2)*)(b|c|d)(x|y|z)*|123", "222211111czzzzw", TRUE, FALSE); in Basic()
678 REGEX_TESTLM("ab+", "abbc", TRUE, FALSE); in Basic()
679 REGEX_TESTLM("ab+c", "ac", FALSE, FALSE); in Basic()
680 REGEX_TESTLM("b+", "", FALSE, FALSE); in Basic()
681 REGEX_TESTLM("(abc|def)+", "defabc", TRUE, TRUE); in Basic()
682 REGEX_TESTLM(".+y", "zippity dooy dah ", TRUE, FALSE); in Basic()
683 REGEX_TESTLM(".+y", "zippity dooy", TRUE, TRUE); in Basic()
688 REGEX_TESTLM("ab?", "ab", TRUE, TRUE); in Basic()
689 REGEX_TESTLM("ab?", "a", TRUE, TRUE); in Basic()
690 REGEX_TESTLM("ab?", "ac", TRUE, FALSE); in Basic()
691 REGEX_TESTLM("ab?", "abb", TRUE, FALSE); in Basic()
692 REGEX_TESTLM("a(b|c)?d", "abd", TRUE, TRUE); in Basic()
693 REGEX_TESTLM("a(b|c)?d", "acd", TRUE, TRUE); in Basic()
694 REGEX_TESTLM("a(b|c)?d", "ad", TRUE, TRUE); in Basic()
695 REGEX_TESTLM("a(b|c)?d", "abcd", FALSE, FALSE); in Basic()
696 REGEX_TESTLM("a(b|c)?d", "ab", FALSE, FALSE); in Basic()
704 REGEX_TESTLM("\\a", "\\u0007", TRUE, TRUE); // BEL in Basic()
705 REGEX_TESTLM("\\cL", "\\u000c", TRUE, TRUE); // Control-L in Basic()
706 REGEX_TESTLM("\\e", "\\u001b", TRUE, TRUE); // Escape in Basic()
707 REGEX_TESTLM("\\f", "\\u000c", TRUE, TRUE); // Form Feed in Basic()
708 REGEX_TESTLM("\\n", "\\u000a", TRUE, TRUE); // new line in Basic()
709 REGEX_TESTLM("\\r", "\\u000d", TRUE, TRUE); // CR in Basic()
710 REGEX_TESTLM("\\t", "\\u0009", TRUE, TRUE); // Tab in Basic()
711 REGEX_TESTLM("\\u1234", "\\u1234", TRUE, TRUE); in Basic()
712 REGEX_TESTLM("\\U00001234", "\\u1234", TRUE, TRUE); in Basic()
714 REGEX_TESTLM(".*\\Ax", "xyz", TRUE, FALSE); // \A matches only at the beginning of input in Basic()
715 REGEX_TESTLM(".*\\Ax", " xyz", FALSE, FALSE); // \A matches only at the beginning of input in Basic()
718 REGEX_TESTLM("\\\\\\|\\(\\)\\[\\{\\~\\$\\*\\+\\?\\.", "\\\\|()[{~$*+?.", TRUE, TRUE); in Basic()