Home | History | Annotate | Download | only in regex

Lines Matching refs:match

54 #define	match	smat
66 #define match lmat
71 struct match {
78 char *coldp; /* can be no match starting before here */
88 static char *dissect(struct match *, char *, char *, sopno, sopno);
89 static char *backref(struct match *, char *, char *, sopno, sopno, sopno, int);
90 static char *fast(struct match *, char *, char *, sopno, sopno);
91 static char *slow(struct match *, char *, char *, sopno, sopno);
104 static void print(struct match *, char *, states, int, FILE *);
107 static void at(struct match *, char *, char *, char *, sopno, sopno);
133 struct match mv;
134 struct match *m = &mv;
164 /* match struct setup */
232 /* uh-oh... we couldn't find a subexpression-level match */
256 /* despite initial appearances, there is no match here */
291 dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst)
345 /* cases where length of match is hard to find */
351 assert(rest != NULL); /* it did match */
352 /* could the rest match the rest? */
356 /* no -- try a shorter match for this one */
362 /* did innards match? */
375 assert(rest != NULL); /* it did match */
376 /* could the rest match the rest? */
380 /* no -- try a shorter match for this one */
388 for (;;) { /* find last match of innards */
396 /* last successful match */
411 assert(rest != NULL); /* it did match */
412 /* could the rest match the rest? */
416 /* no -- try a shorter match for this one */
472 backref(struct match *m, char *start, char *stop, sopno startst, sopno stopst,
583 return(NULL); /* not enough left to match */
671 static char * /* where tentative match ended, or NULL */
672 fast(struct match *m, char *start, char *stop, sopno startst, sopno stopst)
682 char *coldp; /* last p after which no match was underway */
756 slow(struct match *m, char *start, char *stop, sopno startst, sopno stopst)
766 char *matchp; /* last p at which a match ended */
857 /* only characters can match */
953 print(struct match *m, char *caption, states st, int ch, FILE *d)
977 at(struct match *m, char *title, char *start, char *stop, sopno startst,
1020 #undef match