Lines Matching refs:slre
119 slre_dump(const struct slre *r, FILE *fp) in slre_dump()
166 set_jump_offset(struct slre *r, int pc, int offset) in set_jump_offset()
177 emit(struct slre *r, int code) in emit()
186 store_char_in_data(struct slre *r, int ch) in store_char_in_data()
195 exact(struct slre *r, const char **re) in exact()
243 anyof(struct slre *r, const char **re) in anyof()
280 relocate(struct slre *r, int begin, int shift) in relocate()
288 quantifier(struct slre *r, int prev, int op) in quantifier()
303 exact_one_char(struct slre *r, int ch) in exact_one_char()
312 fixup_branch(struct slre *r, int fixup) in fixup_branch()
321 compile(struct slre *r, const char **re) in compile()
412 slre_compile(struct slre *r, const char *re) in slre_compile()
436 static int match(const struct slre *, int,
440 loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) in loop_greedy()
457 loop_non_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs) in loop_non_greedy()
503 match(const struct slre *r, int pc, const char *s, int len, in match()
647 slre_match(const struct slre *r, const char *buf, int len, in slre_match()
669 struct slre slre; in main() local
687 if (!slre_compile(&slre, argv[1])) { in main()
688 fprintf(stderr, "Error compiling slre: %s\n", slre.err_str); in main()
692 slre_dump(&slre, stderr); in main()
708 res = slre_match(&slre, data, len, caps); in main()