Lines Matching refs:options

189 	int		options;	/* regex options		*/
256 if (!(state->options & REG_AUGMENTED))
263 if (!(state->options & REG_AUGMENTED))
269 b = (state->options & (REG_AUGMENTED|REG_EXTENDED)) ? "" : "\\";
390 if (c = regcomp(&state->re, s, state->options))
580 if (result = regrexec(&state->re, state->span, len, state->posnum, state->pos, state->options, '\n', (void*)state, record))
612 if (result = regrexec(&state->re, s, len, state->posnum, state->pos, state->options, '\n', (void*)state, record))
677 grep(char* id, int options, int argc, char** argv, Shbltin_t* context)
702 state.options = REG_FIRST|REG_NOSUB|REG_NULL|REG_DISCIPLINE|REG_MULTIPLE|options;
704 state.options |= REG_LENIENT;
723 state.options |= REG_EXTENDED;
726 state.options |= REG_LITERAL;
729 state.options &= ~(REG_AUGMENTED|REG_EXTENDED);
741 state.options |= REG_LENIENT;
744 state.options |= REG_EXTENDED|REG_LENIENT;
747 state.options &= ~REG_LENIENT;
769 state.options |= REG_FIRST;
772 state.options |= REG_LEFT;
778 state.options |= REG_RIGHT;
789 state.options |= REG_AUGMENTED;
794 state.options &= ~(REG_FIRST|REG_NOSUB);
811 state.options |= REG_ICASE;
837 state.options &= ~REG_INVERT;
839 state.options |= REG_INVERT;
845 state.options |= REG_LEFT|REG_RIGHT;
862 if ((state.options & REG_LITERAL) && (state.options & (REG_AUGMENTED|REG_EXTENDED)))
867 if ((state.options & REG_LITERAL) && state.words)
882 if (!(state.options & (REG_FIRST|REG_NOSUB)))
884 if (state.count || state.list || state.query || (state.options & REG_INVERT))
885 state.options |= REG_FIRST|REG_NOSUB;
975 int options;
978 options = 0;
988 options = REG_EXTENDED;
993 options = REG_LITERAL;
998 options = REG_EXTENDED|REG_LENIENT;
1003 options = REG_AUGMENTED;
1009 return grep(s, options, argc, argv, context);