8 #include <linux/ctype.h>
9 #include <linux/types.h>
10 #include <linux/export.h>
12 #include <linux/slab.h>
13 #include <linux/string.h>
26 static int match_one(
char *
s,
const char *
p,
substring_t args[])
61 size_t str_len =
strlen(s);
65 if (len == -1 || len > str_len)
82 if (args[argc].to == args[argc].
from)
111 for (p = table; !match_one(s, p->
pattern, args) ; p++)
133 size_t len = s->
to - s->
from;
164 return match_number(s, result, 0);
178 return match_number(s, result, 8);
192 return match_number(s, result, 16);
207 size_t ret = src->
to - src->
from;
210 size_t len = ret >= size ? size - 1 :
ret;
227 size_t sz = s->
to - s->
from + 1;