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)
344 /* cases where length of match is hard to find */
350 assert(rest != NULL); /* it did match */
351 /* could the rest match the rest? */
355 /* no -- try a shorter match for this one */
361 /* 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 */
412 assert(rest != NULL); /* it did match */
413 /* could the rest match the rest? */
417 /* no -- try a shorter match for this one */
474 backref(struct match *m, char *start, char *stop, sopno startst, sopno stopst,
585 return(NULL); /* not enough left to match */
673 static char * /* where tentative match ended, or NULL */
674 fast(struct match *m, char *start, char *stop, sopno startst, sopno stopst)
684 char *coldp; /* last p after which no match was underway */
758 slow(struct match *m, char *start, char *stop, sopno startst, sopno stopst)
768 char *matchp; /* last p at which a match ended */
859 /* only characters can match */
955 print(struct match *m, char *caption, states st, int ch, FILE *d)
979 at(struct match *m, char *title, char *start, char *stop, sopno startst,
1022 #undef match