Lines Matching full:partialmatch
6 // TODO: Test extractions for PartialMatch/Consume
324 CHECK(RE2::PartialMatch("foo", r, &word1, &word2, &word3));
328 CHECK(RE2::PartialMatch("bar", r, &word1, &word2, &word3));
332 CHECK(RE2::PartialMatch("baz", r, &word1, &word2, &word3));
336 CHECK(!RE2::PartialMatch("f", r, &word1, &word2, &word3));
363 CHECK(RE2::PartialMatch("a chrisr:9000 here", re, &all, &host, &port));
515 TEST(RE2, PartialMatch) {
516 CHECK(RE2::PartialMatch("x", "x"));
517 CHECK(RE2::PartialMatch("hello", "h.*o"));
518 CHECK(RE2::PartialMatch("othello", "h.*o"));
519 CHECK(RE2::PartialMatch("hello!", "h.*o"));
520 CHECK(RE2::PartialMatch("x", "((((((((((((((((((((x))))))))))))))))))))"));
575 CHECK(RE2::PartialMatch
577 CHECK(RE2::PartialMatch("-1234", "(-\\d)", &i));
869 CHECK(!RE2::PartialMatch("foo\n", "foo$"));
1013 CHECK(RE2::PartialMatch(utf8_string, re_test3, &s));
1016 CHECK(RE2::PartialMatch(utf8_string, re_test4, &s));
1086 CHECK(!RE2::PartialMatch("a\\b", re));
1093 CHECK(!RE2::PartialMatch("aaa", re));
1103 CHECK(RE2::PartialMatch(s, re));
1128 CHECK(RE2::PartialMatch(s, re));
1151 EXPECT_TRUE(RE2::PartialMatch(sp, "(?i)([wand]{5})", &result));
1161 EXPECT_TRUE(RE2::PartialMatch("e", re_string));
1162 EXPECT_TRUE(RE2::PartialMatch("e", re_stringpiece));
1163 EXPECT_TRUE(RE2::PartialMatch("e", re_cstring));
1164 EXPECT_TRUE(RE2::PartialMatch("e", "."));
1176 EXPECT_TRUE(RE2::PartialMatch("bar:1,0x2F,030,4,5;baz:true;fooby:false,true",
1238 EXPECT_FALSE(re.PartialMatch(t.text, re));
1241 EXPECT_TRUE(re.PartialMatch(t.text, re, &m));
1300 EXPECT_TRUE(RE2::PartialMatch(str, "(.).*?(.).*?(.)", &a, &b, &c));
1305 EXPECT_TRUE(RE2::PartialMatch(str, "(.).*?([\\p{L}]).*?(.)", &a, &b, &c));
1310 EXPECT_FALSE(RE2::PartialMatch(str, "\\P{L}"));
1312 EXPECT_TRUE(RE2::PartialMatch(str, "(.).*?([\\p{Lu}]).*?(.)", &a, &b, &c));
1317 EXPECT_FALSE(RE2::PartialMatch(str, "[^\\p{Lu}\\p{Lo}]"));
1319 EXPECT_TRUE(RE2::PartialMatch(str, ".*(.).*?([\\p{Lu}\\p{Lo}]).*?(.)", &a, &b, &c));
1346 EXPECT_FALSE(RE2::PartialMatch("x", re)); // always worked
1347 EXPECT_FALSE(RE2::PartialMatch("k", re)); // broke because of kelvin
1348 EXPECT_FALSE(RE2::PartialMatch("s", re)); // broke because of latin long s