Lines Matching full:regex
19 AC_ARG_WITH([included-regex],
20 [AS_HELP_STRING([--without-included-regex],
21 [don't compile regex; this is the default on systems
29 # If the system regex support is good enough that it passes the
30 # following run test, then default to *not* using the included regex.c.
32 # regex.c.
42 #include <regex.h>
44 [[static struct re_pattern_buffer regex;
63 memset (®ex, 0, sizeof regex);
64 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
67 if (re_search (®ex, data, sizeof data - 1,
78 memset (®ex, 0, sizeof regex);
79 s = re_compile_pattern ("a[^x]b", 6, ®ex);
84 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
90 memset (®ex, 0, sizeof regex);
93 regex.translate = folded_chars;
94 s = re_compile_pattern ("a[[:@:>@:]]b\n", 11, ®ex);
100 memset (®ex, 0, sizeof regex);
101 s = re_compile_pattern ("{1", 2, ®ex);
108 memset (®ex, 0, sizeof regex);
109 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
114 if (re_match (®ex, "an", 2, 0, ®s) != 2)
117 memset (®ex, 0, sizeof regex);
118 s = re_compile_pattern ("x", 1, ®ex);
123 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
126 /* The version of regex.c in older versions of gnulib
129 memset (®ex, 0, sizeof regex);
130 s = re_compile_pattern ("x", 1, ®ex);
134 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
143 memset (®ex, 0, sizeof regex);
144 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
170 *) AC_MSG_ERROR([Invalid value for --with-included-regex: $with_included_regex])
207 AC_LIBOBJ([regex])
212 # Prerequisites of lib/regex.c and lib/regex_internal.c.