Lines Matching refs:format
112 static char *BuildCharSet(CharSet *cset, char *format);
135 static char * BuildCharSet(CharSet *cset, char *format) in BuildCharSet() argument
143 ch = format; in BuildCharSet()
146 ch = ++format; in BuildCharSet()
148 end = format + 1; /* verify this - cc */ in BuildCharSet()
164 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); in BuildCharSet()
175 ch = format++; in BuildCharSet()
179 ch = format++; in BuildCharSet()
182 if (*format == '-') { in BuildCharSet()
194 if (*format == ']') { in BuildCharSet()
198 ch = format++; in BuildCharSet()
215 ch = format++; in BuildCharSet()
217 return format; in BuildCharSet()
305 PHPAPI int ValidateFormat(char *format, int numVars, int *totalSubs) in ValidateFormat() argument
329 while (*format != '\0') { in ValidateFormat()
330 ch = format++; in ValidateFormat()
336 ch = format++; in ValidateFormat()
342 ch = format++; in ValidateFormat()
352 value = ZEND_STRTOUL(format-1, &end, 10); in ValidateFormat()
356 format = end+1; in ValidateFormat()
357 ch = format++; in ValidateFormat()
399 value = ZEND_STRTOUL(format-1, &format, 10); in ValidateFormat()
401 ch = format++; in ValidateFormat()
408 ch = format++; in ValidateFormat()
448 if (*format == '\0') { in ValidateFormat()
451 ch = format++; in ValidateFormat()
453 if (*format == '\0') { in ValidateFormat()
456 ch = format++; in ValidateFormat()
459 if (*format == '\0') { in ValidateFormat()
462 ch = format++; in ValidateFormat()
465 if (*format == '\0') { in ValidateFormat()
468 ch = format++; in ValidateFormat()
572 PHPAPI int php_sscanf_internal( char *string, char *format, in php_sscanf_internal() argument
604 if (ValidateFormat(format, numVars, &totalVars) != SCAN_SUCCESS) { in php_sscanf_internal()
650 while (*format != '\0') { in php_sscanf_internal()
651 ch = format++; in php_sscanf_internal()
683 ch = format++; in php_sscanf_internal()
694 ch = format++; in php_sscanf_internal()
696 value = ZEND_STRTOUL(format-1, &end, 10); in php_sscanf_internal()
698 format = end+1; in php_sscanf_internal()
699 ch = format++; in php_sscanf_internal()
708 width = ZEND_STRTOUL(format-1, &format, 10); in php_sscanf_internal()
709 ch = format++; in php_sscanf_internal()
718 ch = format++; in php_sscanf_internal()
865 format = BuildCharSet(&cset, format); in php_sscanf_internal()