Lines Matching refs:str
71 switch (*s->str) {
83 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL);
89 s->str += clen;
94 if (s->str[0] == '-' && genrange(s, is_octal))
140 switch (s->str[1]) {
142 if ((p = strchr(s->str + 2, ']')) == NULL)
144 if (*(p - 1) != ':' || p - s->str < 4)
147 s->str += 2;
149 s->str = p + 1;
152 if ((p = strchr(s->str + 3, ']')) == NULL)
154 if (*(p - 1) != '=' || p - s->str < 4)
156 s->str += 2;
161 if ((p = strpbrk(s->str + 2, "*]")) == NULL)
165 s->str += 1;
177 if ((s->cclass = wctype(s->str)) == 0)
178 errx(1, "unknown class %s", s->str);
181 if (strcmp(s->str, "upper") == 0)
183 else if (strcmp(s->str, "lower") == 0)
198 if (*s->str == '\\') {
200 if (*s->str != '=')
202 s->str += 2;
204 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
210 if (s->str[clen] != '=')
212 s->str += clen + 2;
252 savestart = s->str;
253 if (*++s->str == '\\')
256 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
262 s->str += clen;
270 s->str = savestart;
279 s->str = savestart;
311 if (*s->str == '\\')
314 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
320 s->str += clen;
322 if (*s->str != '*')
325 switch (*++s->str) {
331 ++s->str;
334 if (isdigit((uchar_t)*s->str)) {
335 s->cnt = strtol(s->str, &ep, 0);
337 s->str = ep + 1;
360 ch = (uchar_t)*++s->str;
365 ++s->str;
375 ++s->str;