Home
last modified time | relevance | path

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

/external/u-boot/lib/
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 …]
Dhashtable.c544 struct slre *slrep = (struct slre *)priv; in match_string()
568 struct slre slre; in match_entry() local
570 if (slre_compile(&slre, argv[arg]) == 0) { in match_entry()
571 printf("Error compiling regex: %s\n", slre.err_str); in match_entry()
575 priv = (void *)&slre; in match_entry()
DMakefile86 obj-$(CONFIG_REGEX) += slre.o
/external/u-boot/include/
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);
/external/u-boot/cmd/
Dsetexpr.c132 struct slre slre; in regex_sub() local
141 if (slre_compile(&slre, r) == 0) { in regex_sub()
142 printf("Error compiling regex: %s\n", slre.err_str); in regex_sub()
175 struct cap caps[slre.num_caps + 2]; in regex_sub()
183 res = slre_match(&slre, datap, len, caps); in regex_sub()
187 for (i = 0; i < slre.num_caps; i++) { in regex_sub()
/external/u-boot/env/
Dattr.c123 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()