Home
last modified time | relevance | path

Searched refs:slre (Results 1 – 6 of 6) sorted by relevance

/rk3399_rockchip-uboot/include/
H A Dslre.h60 struct slre { struct
82 int slre_compile(struct slre *, const char *re);
94 int slre_match(const struct slre *, const char *buf, int buf_len,
98 void slre_dump(const struct slre *r, FILE *fp);
/rk3399_rockchip-uboot/lib/
H A Dslre.c119 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()
[all …]
H A Dhashtable.c545 struct slre *slrep = (struct slre *)priv; in match_string()
569 struct slre slre; in match_entry() local
571 if (slre_compile(&slre, argv[arg]) == 0) { in match_entry()
572 printf("Error compiling regex: %s\n", slre.err_str); in match_entry()
576 priv = (void *)&slre; in match_entry()
H A DMakefile95 obj-$(CONFIG_REGEX) += slre.o
/rk3399_rockchip-uboot/cmd/
H A Dsetexpr.c133 struct slre slre; in regex_sub() local
142 if (slre_compile(&slre, r) == 0) { in regex_sub()
143 printf("Error compiling regex: %s\n", slre.err_str); in regex_sub()
176 struct cap caps[slre.num_caps + 2]; in regex_sub()
184 res = slre_match(&slre, datap, len, caps); in regex_sub()
188 for (i = 0; i < slre.num_caps; i++) { in regex_sub()
/rk3399_rockchip-uboot/env/
H A Dattr.c124 struct slre slre; in regex_callback() local
129 if (slre_compile(&slre, regex)) { in regex_callback()
130 struct cap caps[slre.num_caps + 2]; in regex_callback()
132 if (slre_match(&slre, cbp->searched_for, in regex_callback()
159 printf("Error compiling regex: %s\n", slre.err_str); in regex_callback()