Lines Matching refs:format
118 static char *BuildCharSet(CharSet *cset, char *format);
141 static char * BuildCharSet(CharSet *cset, char *format) in BuildCharSet() argument
149 ch = format; in BuildCharSet()
152 ch = ++format; in BuildCharSet()
154 end = format + 1; /* verify this - cc */ in BuildCharSet()
170 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); in BuildCharSet()
181 ch = format++; in BuildCharSet()
185 ch = format++; in BuildCharSet()
188 if (*format == '-') { in BuildCharSet()
200 if (*format == ']') { in BuildCharSet()
204 ch = format++; in BuildCharSet()
221 ch = format++; in BuildCharSet()
223 return format; in BuildCharSet()
311 PHPAPI int ValidateFormat(char *format, int numVars, int *totalSubs) in ValidateFormat() argument
336 while (*format != '\0') { in ValidateFormat()
337 ch = format++; in ValidateFormat()
343 ch = format++; in ValidateFormat()
349 ch = format++; in ValidateFormat()
359 value = strtoul(format-1, &end, 10); in ValidateFormat()
363 format = end+1; in ValidateFormat()
364 ch = format++; in ValidateFormat()
406 value = strtoul(format-1, &format, 10); in ValidateFormat()
408 ch = format++; in ValidateFormat()
415 ch = format++; in ValidateFormat()
455 if (*format == '\0') { in ValidateFormat()
458 ch = format++; in ValidateFormat()
460 if (*format == '\0') { in ValidateFormat()
463 ch = format++; in ValidateFormat()
466 if (*format == '\0') { in ValidateFormat()
469 ch = format++; in ValidateFormat()
472 if (*format == '\0') { in ValidateFormat()
475 ch = format++; in ValidateFormat()
579 PHPAPI int php_sscanf_internal( char *string, char *format, in php_sscanf_internal() argument
610 string, format, numVars, varStart); in php_sscanf_internal()
615 if (ValidateFormat(format, numVars, &totalVars) != SCAN_SUCCESS) { in php_sscanf_internal()
666 while (*format != '\0') { in php_sscanf_internal()
667 ch = format++; in php_sscanf_internal()
699 ch = format++; in php_sscanf_internal()
710 ch = format++; in php_sscanf_internal()
712 value = strtoul(format-1, &end, 10); in php_sscanf_internal()
714 format = end+1; in php_sscanf_internal()
715 ch = format++; in php_sscanf_internal()
724 width = strtoul(format-1, &format, 10); in php_sscanf_internal()
725 ch = format++; in php_sscanf_internal()
734 ch = format++; in php_sscanf_internal()
893 format = BuildCharSet(&cset, format); in php_sscanf_internal()