Lines Matching refs:slre
13 * http://slre.sourceforge.net/1.0/slre.c
30 #include <slre.h>
120 slre_dump(const struct slre *r, FILE *fp)
167 set_jump_offset(struct slre *r, int pc, int offset)
178 emit(struct slre *r, int code)
187 store_char_in_data(struct slre *r, int ch)
196 exact(struct slre *r, const char **re)
244 anyof(struct slre *r, const char **re)
281 relocate(struct slre *r, int begin, int shift)
289 quantifier(struct slre *r, int prev, int op)
304 exact_one_char(struct slre *r, int ch)
313 fixup_branch(struct slre *r, int fixup)
322 compile(struct slre *r, const char **re)
413 slre_compile(struct slre *r, const char *re)
437 static int match(const struct slre *, int,
441 loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs)
458 loop_non_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs)
504 match(const struct slre *r, int pc, const char *s, int len,
648 slre_match(const struct slre *r, const char *buf, int len,
670 struct slre slre;
677 fprintf(stderr, "Usage: %s 'slre' <file>\n", argv[0]);
688 if (!slre_compile(&slre, argv[1])) {
690 fprintf(stderr, "Error compiling slre: %s\n", slre.err_str);
694 slre_dump(&slre, stderr);
708 res = slre_match(&slre, data, len, caps);