Searched refs:REG_ESCAPE (Results 1 - 5 of 5) sorted by relevance

/ast/src/cmd/re/
H A Dsed3.c37 if (code = regcomp((regex_t*)rebuf->w,(char*)t->w,reflags|REG_DELIMITED|REG_MUSTDELIM|((reflags&REG_LENIENT)?0:REG_ESCAPE)))
41 if (!(reflags&REG_ICASE) && (code = regcomp((regex_t*)rebuf->w,(char*)t->w-((regex_t*)rebuf->w)->re_npat,reflags|REG_ICASE|REG_DELIMITED|REG_MUSTDELIM|((reflags&REG_LENIENT)?0:REG_ESCAPE))))
H A Dtestregex.c227 T(" k REG_ESCAPE \\ to ecape [...] delimiter\n");
351 #ifndef REG_ESCAPE
432 #ifndef REG_ESCAPE
433 #define REG_ESCAPE NOTEST macro
1632 cflags |= REG_ESCAPE;
/ast/src/lib/libast/include/
H A Dregex.h61 #define REG_ESCAPE 0x00004000 /* \ escapes delimiter in [...] */ macro
/ast/src/lib/libast/regex/
H A Dregdecomp.c234 if (flags & REG_ESCAPE)
248 if (flags & REG_ESCAPE)
H A Dregcomp.c862 if (env->type >= SRE && !(env->flags & REG_SHELL_ESCAPED) || (env->flags & REG_ESCAPE) && (c == '[' || c == '-' || c == ']' || env->delimiter && c == env->delimiter))
1204 if (*env->cursor == 0 || *(env->cursor + 1) == 0 || *env->cursor == env->terminator || *(env->cursor + 1) == env->terminator || (env->flags & REG_ESCAPE) && (*env->cursor == env->delimiter || *env->cursor != '\\' && *(env->cursor + 1) == env->delimiter))
1215 if (!(c = *env->cursor) || c == env->terminator || c == env->delimiter && (env->flags & REG_ESCAPE))
1218 if (c == '\\' && ((env->flags & REG_CLASS_ESCAPE) || *env->cursor == env->delimiter && (env->flags & REG_ESCAPE)))
1387 if (*env->cursor == env->terminator || *env->cursor == env->delimiter && (env->flags & REG_ESCAPE))
1482 if ((c = *env->cursor) == 0 || c == env->terminator || (env->flags & REG_ESCAPE) && c == env->delimiter)
1486 if (c == '\\' && ((env->flags & REG_CLASS_ESCAPE) || *env->cursor == env->delimiter && (env->flags & REG_ESCAPE)))
1685 if (*env->cursor == env->terminator || *env->cursor == env->delimiter && (env->flags & REG_ESCAPE))

Completed in 25 milliseconds