Lines Matching refs:ch
115 static int CharInSet(CharSet *cset, int ch);
139 char *ch, start; in BuildCharSet() local
145 ch = format; in BuildCharSet()
146 if (*ch == '^') { in BuildCharSet()
148 ch = ++format; in BuildCharSet()
155 if (*ch == ']') { in BuildCharSet()
156 ch = end++; in BuildCharSet()
159 while (*ch != ']') { in BuildCharSet()
160 if (*ch == '-') { in BuildCharSet()
163 ch = end++; in BuildCharSet()
177 ch = format++; in BuildCharSet()
178 start = *ch; in BuildCharSet()
179 if (*ch == ']' || *ch == '-') { in BuildCharSet()
180 cset->chars[cset->nchars++] = *ch; in BuildCharSet()
181 ch = format++; in BuildCharSet()
183 while (*ch != ']') { in BuildCharSet()
189 start = *ch; in BuildCharSet()
190 } else if (*ch == '-') { in BuildCharSet()
198 cset->chars[cset->nchars++] = *ch; in BuildCharSet()
200 ch = format++; in BuildCharSet()
205 if (start < *ch) { in BuildCharSet()
207 cset->ranges[cset->nranges].end = *ch; in BuildCharSet()
209 cset->ranges[cset->nranges].start = *ch; in BuildCharSet()
215 cset->chars[cset->nchars++] = *ch; in BuildCharSet()
217 ch = format++; in BuildCharSet()
240 char ch = (char) c; in CharInSet() local
244 if (cset->chars[i] == ch) { in CharInSet()
251 if ((cset->ranges[i].start <= ch) in CharInSet()
252 && (ch <= cset->ranges[i].end)) { in CharInSet()
311 char *end, *ch = NULL; in ValidateFormat() local
332 ch = format++; in ValidateFormat()
335 if (*ch != '%') { in ValidateFormat()
338 ch = format++; in ValidateFormat()
339 if (*ch == '%') { in ValidateFormat()
342 if (*ch == '*') { in ValidateFormat()
344 ch = format++; in ValidateFormat()
348 if ( isdigit( (int)*ch ) ) { in ValidateFormat()
359 ch = format++; in ValidateFormat()
400 if (isdigit(UCHAR(*ch))) { in ValidateFormat()
403 ch = format++; in ValidateFormat()
409 if ((*ch == 'l') || (*ch == 'L') || (*ch == 'h')) { in ValidateFormat()
410 ch = format++; in ValidateFormat()
420 switch (*ch) { in ValidateFormat()
453 ch = format++; in ValidateFormat()
454 if (*ch == '^') { in ValidateFormat()
458 ch = format++; in ValidateFormat()
460 if (*ch == ']') { in ValidateFormat()
464 ch = format++; in ValidateFormat()
466 while (*ch != ']') { in ValidateFormat()
470 ch = format++; in ValidateFormat()
478 zend_value_error("Bad scan conversion character \"%c\"", *ch); in ValidateFormat()
589 char *ch, sch; in php_sscanf_internal() local
653 ch = format++; in php_sscanf_internal()
659 if ( isspace( (int)*ch ) ) { in php_sscanf_internal()
671 if (*ch != '%') { in php_sscanf_internal()
679 if (*ch != sch) { in php_sscanf_internal()
685 ch = format++; in php_sscanf_internal()
686 if (*ch == '%') { in php_sscanf_internal()
694 if (*ch == '*') { in php_sscanf_internal()
696 ch = format++; in php_sscanf_internal()
697 } else if ( isdigit(UCHAR(*ch))) { in php_sscanf_internal()
701 ch = format++; in php_sscanf_internal()
709 if ( isdigit(UCHAR(*ch))) { in php_sscanf_internal()
711 ch = format++; in php_sscanf_internal()
719 if ((*ch == 'l') || (*ch == 'L') || (*ch == 'h')) { in php_sscanf_internal()
720 ch = format++; in php_sscanf_internal()
726 switch (*ch) { in php_sscanf_internal()