regex_test.cpp | 24 regex_t re; local 25 ASSERT_EQ(0, regcomp(&re, "ab*c", 0)); 26 ASSERT_EQ(0, regexec(&re, "abbbc", 0, NULL, 0)); 27 ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, NULL, 0)); 30 regerror(REG_NOMATCH, &re, buf, sizeof(buf)); 37 regfree(&re); 41 regex_t re; local 43 ASSERT_EQ(0, regcomp(&re, "b", 0)); 44 ASSERT_EQ(0, regexec(&re, "abc", 1, matches, 0)); 47 regfree(&re); 51 regex_t re; local [all...] |