Lines Matching refs:FullMatch
28 CHECK(RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \ in TEST()
30 CHECK(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ in TEST()
52 CHECK(RE2::FullMatch(#value, "([0-7]+)[uUlL]*", RE2::Octal(&v))); \ in TEST()
54 CHECK(RE2::FullMatch("0" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ in TEST()
76 CHECK(RE2::FullMatch(#value, "(-?[0-9]+)[uUlL]*", &v)); \ in TEST()
78 CHECK(RE2::FullMatch(#value, "(-?[0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ in TEST()
339 CHECK(RE2::FullMatch("hello", "(foo)|hello", &a)); in TEST()
379 RE2::FullMatch(domain, re); in TestRecursion()
388 EXPECT_TRUE_M(RE2::FullMatch(unquoted, re), in TestQuoteMeta()
398 EXPECT_FALSE_M(RE2::FullMatch(should_not_match, re), in NegativeTestQuoteMeta()
508 CHECK(RE2::FullMatch("h", "h")); in TEST()
509 CHECK(RE2::FullMatch("hello", "hello")); in TEST()
510 CHECK(RE2::FullMatch("hello", "h.*o")); in TEST()
511 CHECK(!RE2::FullMatch("othello", "h.*o")); // Must be anchored at front in TEST()
512 CHECK(!RE2::FullMatch("hello!", "h.*o")); // Must be anchored at end in TEST()
549 CHECK(RE2::FullMatch("1001", "\\d+")); in TEST()
556 CHECK(RE2::FullMatch("1001", "(\\d+)", &i)); in TEST()
558 CHECK(RE2::FullMatch("-123", "(-?\\d+)", &i)); in TEST()
560 CHECK(!RE2::FullMatch("10", "()\\d+", &i)); in TEST()
561 CHECK(!RE2::FullMatch("1234567890123456789012345678901234567890", in TEST()
569 CHECK(RE2::FullMatch("1234", "1(\\d*)4", &i)); in TEST()
571 CHECK(RE2::FullMatch("1234", "(\\d)\\d+", &i)); in TEST()
573 CHECK(RE2::FullMatch("-1234", "(-\\d)\\d+", &i)); in TEST()
584 CHECK(RE2::FullMatch("hello", "h(.*)o", &s)); in TEST()
592 CHECK(RE2::FullMatch("ruby:1234", "(\\w+):(\\d+)", &sp, &i)); in TEST()
602 CHECK(RE2::FullMatch("ruby:1234", "(\\w+):(\\d+)", &s, &i)); in TEST()
635 CHECK(RE2::FullMatch("ruby:1234", "(\\w+)(:)(\\d+)", &s, (void*)NULL, &i)); in TEST()
644 CHECK(RE2::FullMatch("hello", "he(.*)lo", (char*)NULL)); in TEST()
645 CHECK(RE2::FullMatch("hello", "h(.*)o", (string*)NULL)); in TEST()
646 CHECK(RE2::FullMatch("hello", "h(.*)o", (StringPiece*)NULL)); in TEST()
647 CHECK(RE2::FullMatch("1234", "(.*)", (int*)NULL)); in TEST()
648 CHECK(RE2::FullMatch("1234567890123456", "(.*)", (long long*)NULL)); in TEST()
649 CHECK(RE2::FullMatch("123.4567890123456", "(.*)", (double*)NULL)); in TEST()
650 CHECK(RE2::FullMatch("123.4567890123456", "(.*)", (float*)NULL)); in TEST()
653 CHECK(!RE2::FullMatch("hello", "h(.*)lo", &s, (char*)NULL)); in TEST()
654 CHECK(!RE2::FullMatch("hello", "(.*)", (int*)NULL)); in TEST()
655 CHECK(!RE2::FullMatch("1234567890123456", "(.*)", (int*)NULL)); in TEST()
656 CHECK(!RE2::FullMatch("hello", "(.*)", (double*)NULL)); in TEST()
657 CHECK(!RE2::FullMatch("hello", "(.*)", (float*)NULL)); in TEST()
678 CHECK(RE2::FullMatch(StringPiece(v + pagesize - 1, 1), "(.*)", &x)); in TEST()
687 CHECK(RE2::FullMatch("Hello", "(H)ello", &c)); in TEST()
692 CHECK(RE2::FullMatch("Hello", "(H)ello", &c)); in TEST()
697 CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); in TEST()
698 CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v)); CHECK_EQ(v, -100); in TEST()
699 CHECK(RE2::FullMatch("32767", "(-?\\d+)", &v)); CHECK_EQ(v, 32767); in TEST()
700 CHECK(RE2::FullMatch("-32768", "(-?\\d+)", &v)); CHECK_EQ(v, -32768); in TEST()
701 CHECK(!RE2::FullMatch("-32769", "(-?\\d+)", &v)); in TEST()
702 CHECK(!RE2::FullMatch("32768", "(-?\\d+)", &v)); in TEST()
706 CHECK(RE2::FullMatch("100", "(\\d+)", &v)); CHECK_EQ(v, 100); in TEST()
707 CHECK(RE2::FullMatch("32767", "(\\d+)", &v)); CHECK_EQ(v, 32767); in TEST()
708 CHECK(RE2::FullMatch("65535", "(\\d+)", &v)); CHECK_EQ(v, 65535); in TEST()
709 CHECK(!RE2::FullMatch("65536", "(\\d+)", &v)); in TEST()
715 CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); in TEST()
716 CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v)); CHECK_EQ(v, -100); in TEST()
717 CHECK(RE2::FullMatch("2147483647", "(-?\\d+)", &v)); CHECK_EQ(v, max); in TEST()
718 CHECK(RE2::FullMatch("-2147483648", "(-?\\d+)", &v)); CHECK_EQ(v, min); in TEST()
719 CHECK(!RE2::FullMatch("-2147483649", "(-?\\d+)", &v)); in TEST()
720 CHECK(!RE2::FullMatch("2147483648", "(-?\\d+)", &v)); in TEST()
722 CHECK(RE2::FullMatch(zeros + "2147483647", "(-?\\d+)", &v)); in TEST()
724 CHECK(RE2::FullMatch("-" + zeros + "2147483648", "(-?\\d+)", &v)); in TEST()
727 CHECK(!RE2::FullMatch("-" + zeros + "2147483649", "(-?\\d+)", &v)); in TEST()
728 CHECK(RE2::FullMatch("0x7fffffff", "(.*)", RE2::CRadix(&v))); in TEST()
730 CHECK(!RE2::FullMatch("000x7fffffff", "(.*)", RE2::CRadix(&v))); in TEST()
735 CHECK(RE2::FullMatch("100", "(\\d+)", &v)); CHECK_EQ(v, 100); in TEST()
736 CHECK(RE2::FullMatch("4294967295", "(\\d+)", &v)); CHECK_EQ(v, max); in TEST()
737 CHECK(!RE2::FullMatch("4294967296", "(\\d+)", &v)); in TEST()
738 CHECK(!RE2::FullMatch("-1", "(\\d+)", &v)); in TEST()
740 CHECK(RE2::FullMatch(zeros + "4294967295", "(\\d+)", &v)); CHECK_EQ(v, max); in TEST()
748 CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); in TEST()
749 CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v)); CHECK_EQ(v, -100); in TEST()
752 CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, max); in TEST()
755 CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, min); in TEST()
760 CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); in TEST()
765 CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); in TEST()
773 CHECK(RE2::FullMatch("100", "(-?\\d+)", &v)); CHECK_EQ(v, 100); in TEST()
774 CHECK(RE2::FullMatch("-100", "(-?\\d+)", &v2)); CHECK_EQ(v2, -100); in TEST()
777 CHECK(RE2::FullMatch(buf, "(-?\\d+)", &v)); CHECK_EQ(v, max); in TEST()
781 CHECK(!RE2::FullMatch(buf, "(-?\\d+)", &v)); in TEST()
789 CHECK(RE2::FullMatch("100", "(.*)", &v)); CHECK_EQ(v, 100); in TEST()
790 CHECK(RE2::FullMatch("-100.", "(.*)", &v)); CHECK_EQ(v, -100); in TEST()
791 CHECK(RE2::FullMatch("1e23", "(.*)", &v)); CHECK_EQ(v, float(1e23)); in TEST()
793 CHECK(RE2::FullMatch(zeros + "1e23", "(.*)", &v)); in TEST()
808 CHECK(RE2::FullMatch("0.1", "(.*)", &v)); in TEST()
810 CHECK(RE2::FullMatch("6700000000081920.1", "(.*)", &v)); in TEST()
816 CHECK(RE2::FullMatch("100", "(.*)", &v)); CHECK_EQ(v, 100); in TEST()
817 CHECK(RE2::FullMatch("-100.", "(.*)", &v)); CHECK_EQ(v, -100); in TEST()
818 CHECK(RE2::FullMatch("1e23", "(.*)", &v)); CHECK_EQ(v, 1e23); in TEST()
819 CHECK(RE2::FullMatch(zeros + "1e23", "(.*)", &v)); in TEST()
822 CHECK(RE2::FullMatch("0.1", "(.*)", &v)); in TEST()
824 CHECK(RE2::FullMatch("1.00000005960464485", "(.*)", &v)); in TEST()
833 CHECK(!RE2::FullMatch("x1001", "(\\d+)", &i)); in TEST()
834 CHECK(!RE2::FullMatch("1001x", "(\\d+)", &i)); in TEST()
835 CHECK(RE2::FullMatch("x1001", "x(\\d+)", &i)); CHECK_EQ(i, 1001); in TEST()
836 CHECK(RE2::FullMatch("1001x", "(\\d+)x", &i)); CHECK_EQ(i, 1001); in TEST()
841 CHECK(RE2::FullMatch("0abcd", "[0-9a-f+.-]{5,}")); in TEST()
842 CHECK(RE2::FullMatch("0abcde", "[0-9a-f+.-]{5,}")); in TEST()
843 CHECK(!RE2::FullMatch("0abc", "[0-9a-f+.-]{5,}")); in TEST()
848 CHECK(RE2::FullMatch("foo", "foo|bar|[A-Z]")); in TEST()
849 CHECK(RE2::FullMatch("bar", "foo|bar|[A-Z]")); in TEST()
850 CHECK(RE2::FullMatch("X", "foo|bar|[A-Z]")); in TEST()
851 CHECK(!RE2::FullMatch("XY", "foo|bar|[A-Z]")); in TEST()
856 CHECK(RE2::FullMatch("fo", "fo|foo")); in TEST()
857 CHECK(RE2::FullMatch("foo", "fo|foo")); in TEST()
858 CHECK(RE2::FullMatch("fo", "fo|foo$")); in TEST()
859 CHECK(RE2::FullMatch("foo", "fo|foo$")); in TEST()
860 CHECK(RE2::FullMatch("foo", "foo$")); in TEST()
861 CHECK(!RE2::FullMatch("foo$bar", "foo\\$")); in TEST()
862 CHECK(!RE2::FullMatch("fox", "fo|bar")); in TEST()
876 CHECK(RE2::FullMatch("", "")); in TEST()
879 CHECK(RE2::FullMatch("1", in TEST()
885 CHECK(RE2::FullMatch("12", in TEST()
892 CHECK(RE2::FullMatch("123", in TEST()
900 CHECK(RE2::FullMatch("1234", in TEST()
909 CHECK(RE2::FullMatch("12345", in TEST()
920 CHECK(RE2::FullMatch("123456", in TEST()
932 CHECK(RE2::FullMatch("1234567", in TEST()
945 CHECK(RE2::FullMatch("1234567890123456", in TEST()
1005 CHECK(RE2::FullMatch(utf8_string, re_test1)); in TEST()
1007 CHECK(RE2::FullMatch(utf8_string, re_test2)); in TEST()
1021 CHECK(RE2::FullMatch(utf8_string, re_test5)); in TEST()
1023 CHECK(RE2::FullMatch(utf8_string, re_test6)); in TEST()
1027 CHECK(!RE2::FullMatch(utf8_string, re_test7)); in TEST()
1029 CHECK(RE2::FullMatch(utf8_string, re_test8)); in TEST()
1042 CHECK(!RE2::FullMatch(target, match_sentence)); in TEST()
1043 CHECK(!RE2::FullMatch(target, match_sentence_re)); in TEST()
1052 CHECK(!RE2::FullMatch(target, match_sentence)); in TEST()
1053 CHECK(!RE2::FullMatch(target, match_sentence_re)); in TEST()
1141 CHECK(RE2::FullMatch(comment, re)); in TEST()
1171 EXPECT_TRUE(RE2::FullMatch("D", "([^\\\\])")); // ok in TEST()
1172 EXPECT_TRUE(RE2::FullMatch("D", "([^\\\\])", &dir)); // fails in TEST()
1272 EXPECT_TRUE(RE2::FullMatch("A", "\\p{L}")); in TEST()
1273 EXPECT_TRUE(RE2::FullMatch("A", "\\p{Lu}")); in TEST()
1274 EXPECT_FALSE(RE2::FullMatch("A", "\\p{Ll}")); in TEST()
1275 EXPECT_FALSE(RE2::FullMatch("A", "\\P{L}")); in TEST()
1276 EXPECT_FALSE(RE2::FullMatch("A", "\\P{Lu}")); in TEST()
1277 EXPECT_TRUE(RE2::FullMatch("A", "\\P{Ll}")); in TEST()
1279 EXPECT_TRUE(RE2::FullMatch("譚", "\\p{L}")); in TEST()
1280 EXPECT_FALSE(RE2::FullMatch("譚", "\\p{Lu}")); in TEST()
1281 EXPECT_FALSE(RE2::FullMatch("譚", "\\p{Ll}")); in TEST()
1282 EXPECT_FALSE(RE2::FullMatch("譚", "\\P{L}")); in TEST()
1283 EXPECT_TRUE(RE2::FullMatch("譚", "\\P{Lu}")); in TEST()
1284 EXPECT_TRUE(RE2::FullMatch("譚", "\\P{Ll}")); in TEST()
1286 EXPECT_TRUE(RE2::FullMatch("永", "\\p{L}")); in TEST()
1287 EXPECT_FALSE(RE2::FullMatch("永", "\\p{Lu}")); in TEST()
1288 EXPECT_FALSE(RE2::FullMatch("永", "\\p{Ll}")); in TEST()
1289 EXPECT_FALSE(RE2::FullMatch("永", "\\P{L}")); in TEST()
1290 EXPECT_TRUE(RE2::FullMatch("永", "\\P{Lu}")); in TEST()
1291 EXPECT_TRUE(RE2::FullMatch("永", "\\P{Ll}")); in TEST()
1293 EXPECT_TRUE(RE2::FullMatch("鋒", "\\p{L}")); in TEST()
1294 EXPECT_FALSE(RE2::FullMatch("鋒", "\\p{Lu}")); in TEST()
1295 EXPECT_FALSE(RE2::FullMatch("鋒", "\\p{Ll}")); in TEST()
1296 EXPECT_FALSE(RE2::FullMatch("鋒", "\\P{L}")); in TEST()
1297 EXPECT_TRUE(RE2::FullMatch("鋒", "\\P{Lu}")); in TEST()
1298 EXPECT_TRUE(RE2::FullMatch("鋒", "\\P{Ll}")); in TEST()
1329 EXPECT_TRUE(RE2::FullMatch(v1, re2)); in TEST()
1332 EXPECT_TRUE(RE2::FullMatch(v2, re2)); in TEST()