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
335 while (*format != '\0') { in ValidateFormat()
336 ch = format++; in ValidateFormat()
342 ch = format++; in ValidateFormat()
348 ch = format++; in ValidateFormat()
358 value = ZEND_STRTOUL(format-1, &end, 10); in ValidateFormat()
362 format = end+1; in ValidateFormat()
363 ch = format++; in ValidateFormat()
405 value = ZEND_STRTOUL(format-1, &format, 10); in ValidateFormat()
407 ch = format++; in ValidateFormat()
414 ch = format++; in ValidateFormat()
454 if (*format == '\0') { in ValidateFormat()
457 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()
471 if (*format == '\0') { in ValidateFormat()
474 ch = format++; in ValidateFormat()
578 PHPAPI int php_sscanf_internal( char *string, char *format, in php_sscanf_internal() argument
609 string, format, numVars, varStart); in php_sscanf_internal()
614 if (ValidateFormat(format, numVars, &totalVars) != SCAN_SUCCESS) { in php_sscanf_internal()
664 while (*format != '\0') { in php_sscanf_internal()
665 ch = format++; in php_sscanf_internal()
697 ch = format++; in php_sscanf_internal()
708 ch = format++; in php_sscanf_internal()
710 value = ZEND_STRTOUL(format-1, &end, 10); in php_sscanf_internal()
712 format = end+1; in php_sscanf_internal()
713 ch = format++; in php_sscanf_internal()
722 width = ZEND_STRTOUL(format-1, &format, 10); in php_sscanf_internal()
723 ch = format++; in php_sscanf_internal()
732 ch = format++; in php_sscanf_internal()
881 format = BuildCharSet(&cset, format); in php_sscanf_internal()