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