Searched refs:slre (Results 1 – 6 of 6) sorted by relevance
/u-boot/include/ |
A D | slre.h | 60 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);
|
/u-boot/lib/ |
A D | slre.c | 120 slre_dump(const struct slre *r, FILE *fp) in slre_dump() 178 emit(struct slre *r, int code) in emit() 187 store_char_in_data(struct slre *r, int ch) in store_char_in_data() 196 exact(struct slre *r, const char **re) in exact() 244 anyof(struct slre *r, const char **re) in anyof() 304 exact_one_char(struct slre *r, int ch) in exact_one_char() 313 fixup_branch(struct slre *r, int fixup) in fixup_branch() 322 compile(struct slre *r, const char **re) in compile() 670 struct slre slre; in main() local 688 if (!slre_compile(&slre, argv[1])) { in main() [all …]
|
A D | hashtable.c | 566 struct slre *slrep = (struct slre *)priv; in match_string() 589 struct slre slre; in match_entry() local 591 if (slre_compile(&slre, argv[arg]) == 0) { in match_entry() 592 printf("Error compiling regex: %s\n", slre.err_str); in match_entry() 596 priv = (void *)&slre; in match_entry()
|
A D | Makefile | 107 obj-$(CONFIG_REGEX) += slre.o
|
/u-boot/cmd/ |
A D | setexpr.c | 183 struct slre slre; in setexpr_regex_sub() local 187 if (slre_compile(&slre, r) == 0) { in setexpr_regex_sub() 188 printf("Error compiling regex: %s\n", slre.err_str); in setexpr_regex_sub() 194 struct cap caps[slre.num_caps + 2]; in setexpr_regex_sub() 201 res = slre_match(&slre, datap, len - (datap - data), caps); in setexpr_regex_sub() 205 for (i = 0; i <= slre.num_caps; i++) { in setexpr_regex_sub() 316 struct slre slre; in regex_sub_var() local 326 if (slre_compile(&slre, r) == 0) { in regex_sub_var() 327 printf("Error compiling regex: %s\n", slre.err_str); in regex_sub_var()
|
/u-boot/env/ |
A D | attr.c | 123 struct slre slre; in regex_callback() local 128 if (slre_compile(&slre, regex)) { in regex_callback() 129 struct cap caps[slre.num_caps + 2]; in regex_callback() 131 if (slre_match(&slre, cbp->searched_for, in regex_callback() 158 printf("Error compiling regex: %s\n", slre.err_str); in regex_callback()
|
Completed in 8 milliseconds