Lines Matching defs:regex
3303 " <regex-instance>legacy/[0-9]+</regex-instance>\n"
3304 " <regex-instance>slot[0-9]+</regex-instance>\n"
3305 " <regex-instance>.*</regex-instance>\n"
3322 " <regex-instance>e{1,2,3}</regex-instance>\n"
3323 " <regex-instance>*</regex-instance>\n"
3324 " <regex-instance>+</regex-instance>\n"
3325 " <regex-instance>[0-9]+</regex-instance>\n"
3326 " <regex-instance>[0-9]+</regex-instance>\n"
3334 EXPECT_IN("Duplicated regex-instance '[0-9]+'", error);
3350 " <regex-instance>legacy/[0-9]+</regex-instance>\n"
3416 TEST_F(LibVintfTest, Regex) {
3417 details::Regex regex;
3419 EXPECT_FALSE(regex.compile("+"));
3420 EXPECT_FALSE(regex.compile("*"));
3422 ASSERT_TRUE(regex.compile("legacy/[0-9]+"));
3423 EXPECT_TRUE(regex.matches("legacy/0"));
3424 EXPECT_TRUE(regex.matches("legacy/000"));
3425 EXPECT_FALSE(regex.matches("legacy/"));
3426 EXPECT_FALSE(regex.matches("ssslegacy/0"));
3427 EXPECT_FALSE(regex.matches("legacy/0sss"));