Lines Matching refs:re
180 // Defines StringTypes as the list of all string types that class RE
191 // Tests RE's implicit constructors.
193 const RE empty(TypeParam(""));
196 const RE simple(TypeParam("hello"));
199 const RE normal(TypeParam(".*(\\w+)"));
203 // Tests that RE's constructors reject invalid regular expressions.
206 const RE invalid(TypeParam("?"));
210 // Tests RE::FullMatch().
212 const RE empty(TypeParam(""));
213 EXPECT_TRUE(RE::FullMatch(TypeParam(""), empty));
214 EXPECT_FALSE(RE::FullMatch(TypeParam("a"), empty));
216 const RE re(TypeParam("a.*z"));
217 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re));
218 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re));
219 EXPECT_FALSE(RE::FullMatch(TypeParam("baz"), re));
220 EXPECT_FALSE(RE::FullMatch(TypeParam("azy"), re));
223 // Tests RE::PartialMatch().
225 const RE empty(TypeParam(""));
226 EXPECT_TRUE(RE::PartialMatch(TypeParam(""), empty));
227 EXPECT_TRUE(RE::PartialMatch(TypeParam("a"), empty));
229 const RE re(TypeParam("a.*z"));
230 EXPECT_TRUE(RE::PartialMatch(TypeParam("az"), re));
231 EXPECT_TRUE(RE::PartialMatch(TypeParam("axyz"), re));
232 EXPECT_TRUE(RE::PartialMatch(TypeParam("baz"), re));
233 EXPECT_TRUE(RE::PartialMatch(TypeParam("azy"), re));
234 EXPECT_FALSE(RE::PartialMatch(TypeParam("zza"), re));
649 // Tests RE's implicit constructors.
651 const RE empty("");
654 const RE simple("hello");
658 // Tests that RE's constructors reject invalid regular expressions.
661 const RE normal(NULL);
665 const RE normal(".*(\\w+");
669 const RE invalid("^?");
673 // Tests RE::FullMatch().
675 const RE empty("");
676 EXPECT_TRUE(RE::FullMatch("", empty));
677 EXPECT_FALSE(RE::FullMatch("a", empty));
679 const RE re1("a");
680 EXPECT_TRUE(RE::FullMatch("a", re1));
682 const RE re("a.*z");
683 EXPECT_TRUE(RE::FullMatch("az", re));
684 EXPECT_TRUE(RE::FullMatch("axyz", re));
685 EXPECT_FALSE(RE::FullMatch("baz", re));
686 EXPECT_FALSE(RE::FullMatch("azy", re));
689 // Tests RE::PartialMatch().
691 const RE empty("");
692 EXPECT_TRUE(RE::PartialMatch("", empty));
693 EXPECT_TRUE(RE::PartialMatch("a", empty));
695 const RE re("a.*z");
696 EXPECT_TRUE(RE::PartialMatch("az", re));
697 EXPECT_TRUE(RE::PartialMatch("axyz", re));
698 EXPECT_TRUE(RE::PartialMatch("baz", re));
699 EXPECT_TRUE(RE::PartialMatch("azy", re));
700 EXPECT_FALSE(RE::PartialMatch("zza", re));