Home | History | Annotate | Download | only in testsuite

Lines Matching defs:regex

30 #include <regex.h>
36 struct re_pattern_buffer regex;
40 memset (&regex, '\0', sizeof (regex));
42 s = re_compile_pattern ("xy$", 3, &regex);
49 match[0] = re_match_2(&regex,"xyz",3,NULL,0,0,NULL,2);
51 free (regex.buffer);
52 memset (&regex, '\0', sizeof (regex));
54 s = re_compile_pattern ("xy\\>", 4, &regex);
61 match[1] = re_search_2(&regex,"xyz",3,NULL,0,0,2,NULL,2);
63 free (regex.buffer);
64 memset (&regex, '\0', sizeof (regex));
66 s = re_compile_pattern ("xy \\<", 5, &regex);
74 match[2] = re_match_2(&regex,"xy ",4,NULL,0,0,NULL,3);
75 match[3] = re_match_2(&regex,"xy z",4,NULL,0,0,NULL,3);