diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-31 22:52:23 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-31 22:52:23 +0300 |
commit | c2efba1b80559c475a74622d16aa7361fa566251 (patch) | |
tree | d4bb02d4240e5e59670e45bdaff0876131d6545d /regex.h | |
parent | 2c126c4972966714e2c3af8826c4161c30570041 (diff) | |
download | egawk-c2efba1b80559c475a74622d16aa7361fa566251.tar.gz egawk-c2efba1b80559c475a74622d16aa7361fa566251.tar.bz2 egawk-c2efba1b80559c475a74622d16aa7361fa566251.zip |
Rationalize range expansion in regexps.
Diffstat (limited to 'regex.h')
-rw-r--r-- | regex.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -184,6 +184,10 @@ typedef unsigned long int reg_syntax_t; /* If this bit is set, then no_sub will be set to 1 during re_compile_pattern. */ # define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1) + +/* If this bit is set, then ranges act like they are in + the "C" locale. */ +# define RE_RANGES_IGNORE_LOCALES (RE_NO_SUB << 1) #endif /* This global variable defines the particular regexp syntax to use (for @@ -209,6 +213,7 @@ extern reg_syntax_t re_syntax_options; #define RE_SYNTAX_GNU_AWK \ ((RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS \ + | RE_RANGES_IGNORE_LOCALES \ | RE_INVALID_INTERVAL_ORD) \ & ~(RE_DOT_NOT_NULL | RE_CONTEXT_INDEP_OPS \ | RE_CONTEXT_INVALID_OPS )) |