• Home
  • Raw
  • Download

Lines Matching refs:FullMatch

74     CHECK(pattern.FullMatch(p));  in Timing1()
83 CHECK(pattern.FullMatch("ruby:1234", &i)); in Timing2()
133 CHECK(RE("([0-9a-fA-F]+)[uUlL]*").FullMatch(#value, Hex(&v))); \ in RadixTests()
135 CHECK(RE("([0-9a-fA-FxX]+)[uUlL]*").FullMatch("0x" #value, CRadix(&v))); \ in RadixTests()
159 CHECK(RE("([0-7]+)[uUlL]*").FullMatch(#value, Octal(&v))); \ in RadixTests()
161 CHECK(RE("([0-9a-fA-FxX]+)[uUlL]*").FullMatch("0" #value, CRadix(&v))); \ in RadixTests()
185 CHECK(RE("(-?[0-9]+)[uUlL]*").FullMatch(#value, &v)); \ in RadixTests()
187 CHECK(RE("(-?[0-9a-fA-FxX]+)[uUlL]*").FullMatch(#value, CRadix(&v))); \ in RadixTests()
441 CHECK(RE("(foo)|hello").FullMatch("hello", &a)); in TestMatchNumberPeculiarity()
461 CHECK(re.FullMatch(text_good) == false); in TestRecursion()
462 CHECK(re.FullMatch(text_bad) == false); in TestRecursion()
468 CHECK(re2.FullMatch(text_good) == false); in TestRecursion()
469 CHECK(re2.FullMatch(text_bad) == false); in TestRecursion()
476 CHECK(re3.FullMatch(text_good) == false); in TestRecursion()
477 CHECK(re3.FullMatch(text_bad) == false); in TestRecursion()
483 CHECK(re4.FullMatch(text_good) == false); in TestRecursion()
484 CHECK(re4.FullMatch(text_bad) == false); in TestRecursion()
492 CHECK(re.FullMatch(unquoted)); in TestQuoteMeta()
501 CHECK(!re.FullMatch(should_not_match)); in NegativeTestQuoteMeta()
583 RE(regex,options).FullMatch(str, &captured); in GetOneOptionResult()
605 CHECK(RE(regex,options).FullMatch(str)); in TestOneOption()
610 CHECK(!RE(regex,options).FullMatch(str)); in TestOneOption()
780 CHECK(orig.FullMatch(str)); in TestConstructors()
783 CHECK(copy1.FullMatch(str)); in TestConstructors()
786 CHECK(!copy2.FullMatch(str)); in TestConstructors()
788 CHECK(copy2.FullMatch(str)); in TestConstructors()
790 CHECK(copy2.FullMatch(str)); in TestConstructors()
796 CHECK(orig.FullMatch(str)); in TestConstructors()
797 CHECK(copy1.FullMatch(str)); in TestConstructors()
798 CHECK(copy2.FullMatch(str)); in TestConstructors()
835 CHECK(RE("h.*o").FullMatch("hello")); in main()
836 CHECK(!RE("h.*o").FullMatch("othello")); // Must be anchored at front in main()
837 CHECK(!RE("h.*o").FullMatch("hello!")); // Must be anchored at end in main()
838 CHECK(RE("a*").FullMatch("aaaa")); // Fullmatch with normal op in main()
839 CHECK(RE("a*?").FullMatch("aaaa")); // Fullmatch with nongreedy op in main()
840 CHECK(RE("a*?\\z").FullMatch("aaaa")); // Two unusual ops in main()
845 CHECK(RE("\\d+").FullMatch("1001")); in main()
848 CHECK(RE("(\\d+)").FullMatch("1001", &i)); in main()
850 CHECK(RE("(-?\\d+)").FullMatch("-123", &i)); in main()
852 CHECK(!RE("()\\d+").FullMatch("10", &i)); in main()
853 CHECK(!RE("(\\d+)").FullMatch("1234567890123456789012345678901234567890", in main()
857 CHECK(RE("1(\\d*)4").FullMatch("1234", &i)); in main()
859 CHECK(RE("(\\d)\\d+").FullMatch("1234", &i)); in main()
861 CHECK(RE("(-\\d)\\d+").FullMatch("-1234", &i)); in main()
869 CHECK(RE("h(.*)o").FullMatch("hello", &s)); in main()
874 CHECK(RE("(\\w+):(\\d+)").FullMatch("ruby:1234", &sp, &i)); in main()
880 CHECK(RE("(\\w+):(\\d+)").FullMatch("ruby:1234", &s, &i)); in main()
885 CHECK(RE("he(.*)lo").FullMatch("hello", (char*)NULL)); in main()
886 CHECK(RE("h(.*)o").FullMatch("hello", (string*)NULL)); in main()
887 CHECK(RE("h(.*)o").FullMatch("hello", (StringPiece*)NULL)); in main()
888 CHECK(RE("(.*)").FullMatch("1234", (int*)NULL)); in main()
890 CHECK(RE("(.*)").FullMatch("1234567890123456", (long long*)NULL)); in main()
892 CHECK(RE("(.*)").FullMatch("123.4567890123456", (double*)NULL)); in main()
893 CHECK(RE("(.*)").FullMatch("123.4567890123456", (float*)NULL)); in main()
896 CHECK(!RE("h(.*)lo").FullMatch("hello", &s, (char*)NULL)); in main()
897 CHECK(!RE("(.*)").FullMatch("hello", (int*)NULL)); in main()
898 CHECK(!RE("(.*)").FullMatch("1234567890123456", (int*)NULL)); in main()
899 CHECK(!RE("(.*)").FullMatch("hello", (double*)NULL)); in main()
900 CHECK(!RE("(.*)").FullMatch("hello", (float*)NULL)); in main()
903 CHECK(RE("(\\w+)(:)(\\d+)").FullMatch("ruby:1234", &s, (void*)NULL, &i)); in main()
910 CHECK(RE("(H)ello").FullMatch("Hello", &c)); in main()
915 CHECK(RE("(H)ello").FullMatch("Hello", &c)); in main()
920 CHECK(RE("(-?\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); in main()
921 CHECK(RE("(-?\\d+)").FullMatch("-100", &v)); CHECK_EQ(v, -100); in main()
922 CHECK(RE("(-?\\d+)").FullMatch("32767", &v)); CHECK_EQ(v, 32767); in main()
923 CHECK(RE("(-?\\d+)").FullMatch("-32768", &v)); CHECK_EQ(v, -32768); in main()
924 CHECK(!RE("(-?\\d+)").FullMatch("-32769", &v)); in main()
925 CHECK(!RE("(-?\\d+)").FullMatch("32768", &v)); in main()
929 CHECK(RE("(\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); in main()
930 CHECK(RE("(\\d+)").FullMatch("32767", &v)); CHECK_EQ(v, 32767); in main()
931 CHECK(RE("(\\d+)").FullMatch("65535", &v)); CHECK_EQ(v, 65535); in main()
932 CHECK(!RE("(\\d+)").FullMatch("65536", &v)); in main()
938 CHECK(RE("(-?\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); in main()
939 CHECK(RE("(-?\\d+)").FullMatch("-100", &v)); CHECK_EQ(v, -100); in main()
940 CHECK(RE("(-?\\d+)").FullMatch("2147483647", &v)); CHECK_EQ(v, max_value); in main()
941 CHECK(RE("(-?\\d+)").FullMatch("-2147483648", &v)); CHECK_EQ(v, min_value); in main()
942 CHECK(!RE("(-?\\d+)").FullMatch("-2147483649", &v)); in main()
943 CHECK(!RE("(-?\\d+)").FullMatch("2147483648", &v)); in main()
948 CHECK(RE("(\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); in main()
949 CHECK(RE("(\\d+)").FullMatch("4294967295", &v)); CHECK_EQ(v, max_value); in main()
950 CHECK(!RE("(\\d+)").FullMatch("4294967296", &v)); in main()
966 CHECK(RE("(-?\\d+)").FullMatch("100", &v)); CHECK_EQ(v, 100); in main()
967 CHECK(RE("(-?\\d+)").FullMatch("-100",&v)); CHECK_EQ(v, -100); in main()
970 CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, max_value); in main()
973 CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, min_value); in main()
978 CHECK(!RE("(-?\\d+)").FullMatch(buf, &v)); in main()
983 CHECK(!RE("(-?\\d+)").FullMatch(buf, &v)); in main()
993 CHECK(RE("(-?\\d+)").FullMatch("100",&v)); CHECK_EQ(v, 100); in main()
994 CHECK(RE("(-?\\d+)").FullMatch("-100",&v2)); CHECK_EQ(v2, -100); in main()
997 CHECK(RE("(-?\\d+)").FullMatch(buf,&v)); CHECK_EQ(v, max_value); in main()
1001 CHECK(!RE("(-?\\d+)").FullMatch(buf, &v)); in main()
1006 CHECK(RE("(.*)").FullMatch("100", &v)); in main()
1007 CHECK(RE("(.*)").FullMatch("-100.", &v)); in main()
1008 CHECK(RE("(.*)").FullMatch("1e23", &v)); in main()
1012 CHECK(RE("(.*)").FullMatch("100", &v)); in main()
1013 CHECK(RE("(.*)").FullMatch("-100.", &v)); in main()
1014 CHECK(RE("(.*)").FullMatch("1e23", &v)); in main()
1018 CHECK(!RE("(\\d+)").FullMatch("x1001", &i)); in main()
1019 CHECK(!RE("(\\d+)").FullMatch("1001x", &i)); in main()
1020 CHECK(RE("x(\\d+)").FullMatch("x1001", &i)); CHECK_EQ(i, 1001); in main()
1021 CHECK(RE("(\\d+)x").FullMatch("1001x", &i)); CHECK_EQ(i, 1001); in main()
1024 CHECK(RE("[0-9a-f+.-]{5,}").FullMatch("0abcd")); in main()
1025 CHECK(RE("[0-9a-f+.-]{5,}").FullMatch("0abcde")); in main()
1026 CHECK(!RE("[0-9a-f+.-]{5,}").FullMatch("0abc")); in main()
1029 CHECK(RE("foo|bar|[A-Z]").FullMatch("foo")); in main()
1030 CHECK(RE("foo|bar|[A-Z]").FullMatch("bar")); in main()
1031 CHECK(RE("foo|bar|[A-Z]").FullMatch("X")); in main()
1032 CHECK(!RE("foo|bar|[A-Z]").FullMatch("XY")); in main()
1035 CHECK(RE("fo|foo").FullMatch("fo")); in main()
1036 CHECK(RE("fo|foo").FullMatch("foo")); in main()
1037 CHECK(RE("fo|foo$").FullMatch("fo")); in main()
1038 CHECK(RE("fo|foo$").FullMatch("foo")); in main()
1039 CHECK(RE("foo$").FullMatch("foo")); in main()
1040 CHECK(!RE("foo\\$").FullMatch("foo$bar")); in main()
1041 CHECK(!RE("fo|bar").FullMatch("fox")); in main()
1053 CHECK(RE("").FullMatch("")); in main()
1056 CHECK(RE("(\\d){1}").FullMatch("1", in main()
1061 CHECK(RE("(\\d)(\\d)").FullMatch("12", in main()
1067 CHECK(RE("(\\d)(\\d)(\\d)").FullMatch("123", in main()
1074 CHECK(RE("(\\d)(\\d)(\\d)(\\d)").FullMatch("1234", in main()
1082 CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch("12345", in main()
1092 CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch("123456", in main()
1103 CHECK(RE("(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch("1234567", in main()
1116 "(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)(\\d)").FullMatch( in main()
1192 CHECK(re_test1.FullMatch(utf8_string)); in main()
1194 CHECK(re_test2.FullMatch(utf8_string)); in main()
1208 CHECK(re_test5.FullMatch(utf8_string)); in main()
1210 CHECK(re_test6.FullMatch(utf8_string)); in main()
1214 CHECK(!re_test7.FullMatch(utf8_string)); in main()
1216 CHECK(re_test8.FullMatch(utf8_string)); in main()
1228 CHECK(!match_sentence.FullMatch(target)); in main()
1229 CHECK(!match_sentence_re.FullMatch(target)); in main()
1238 CHECK(!match_sentence.FullMatch(target)); in main()
1239 CHECK(!match_sentence_re.FullMatch(target)); in main()