Lines Matching refs:str
23 static int get_range(char **str, int *pint, int n)
27 (*str)++;
28 upper_range = simple_strtol((*str), NULL, 0);
37 * @str: option string
38 * @pint: (output) integer value parsed from @str
50 int get_option(char **str, int *pint)
52 char *cur = *str;
56 *pint = simple_strtol(cur, str, 0);
57 if (cur == *str)
59 if (**str == ',') {
60 (*str)++;
63 if (**str == '-')
72 * @str: String to be parsed
83 * the parse to end (typically a null terminator, if @str is
87 char *get_options(const char *str, int nints, int *ints)
92 res = get_option((char **)&str, ints + i);
97 range_nums = get_range((char **)&str, ints + i, nints - i);
112 return (char *)str;
169 * @str: String to be parsed
177 bool parse_option_str(const char *str, const char *option)
179 while (*str) {
180 if (!strncmp(str, option, strlen(option))) {
181 str += strlen(option);
182 if (!*str || *str == ',')
186 while (*str && *str != ',')
187 str++;
189 if (*str == ',')
190 str++;