Lines Matching +defs:from +defs:end
2 * This code is derived from OpenBSD's libc/regex, original license follows:
8 * This code is derived from software contributed to Berkeley by
20 * may be used to endorse or promote products derived from this software
194 const char *end; /* end of string (-> NUL normally) */
252 #define MORE() (p->end - p->next > 0)
253 #define MORE2() (p->end - p->next > 1)
333 p->end = p->next + len;
393 p_ere(struct parse *p, int stop) /* character this ERE should end at */
424 if (!first) { /* tail-end fixups */
671 pos = HERE(); /* repetition op, if any, covers from here */
803 if (p->end - p->next > 5) {
822 invert++; /* make note to invert set at end */
1052 const char *oldend = p->end;
1058 p->end = bracket+2;
1065 p->end = oldend;
1094 const char *oldend = p->end;
1098 p->end = bracket+3;
1102 p->end = oldend;
1110 sopno start, /* operand from here to end of strip */
1111 int from, /* repeated from this number */
1124 assert(from <= to);
1126 switch (REP(MAP(from), MAP(to))) {
1163 repeat(p, copy, from-1, to-1);
1167 repeat(p, copy, from-1, to);
1184 p->end = nuls;
1448 sopno start, /* from here */