Lines Matching refs:format
114 static char *BuildCharSet(CharSet *cset, char *format);
137 static char * BuildCharSet(CharSet *cset, char *format) in BuildCharSet() argument
145 ch = format; in BuildCharSet()
148 ch = ++format; in BuildCharSet()
150 end = format + 1; /* verify this - cc */ in BuildCharSet()
166 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); in BuildCharSet()
177 ch = format++; in BuildCharSet()
181 ch = format++; in BuildCharSet()
184 if (*format == '-') { in BuildCharSet()
196 if (*format == ']') { in BuildCharSet()
200 ch = format++; in BuildCharSet()
217 ch = format++; in BuildCharSet()
219 return format; in BuildCharSet()
307 PHPAPI int ValidateFormat(char *format, int numVars, int *totalSubs) in ValidateFormat() argument
331 while (*format != '\0') { in ValidateFormat()
332 ch = format++; in ValidateFormat()
338 ch = format++; in ValidateFormat()
344 ch = format++; in ValidateFormat()
354 value = ZEND_STRTOUL(format-1, &end, 10); in ValidateFormat()
358 format = end+1; in ValidateFormat()
359 ch = format++; in ValidateFormat()
401 value = ZEND_STRTOUL(format-1, &format, 10); in ValidateFormat()
403 ch = format++; in ValidateFormat()
410 ch = format++; in ValidateFormat()
450 if (*format == '\0') { in ValidateFormat()
453 ch = format++; in ValidateFormat()
455 if (*format == '\0') { in ValidateFormat()
458 ch = format++; in ValidateFormat()
461 if (*format == '\0') { in ValidateFormat()
464 ch = format++; in ValidateFormat()
467 if (*format == '\0') { in ValidateFormat()
470 ch = format++; in ValidateFormat()
574 PHPAPI int php_sscanf_internal( char *string, char *format, in php_sscanf_internal() argument
606 if (ValidateFormat(format, numVars, &totalVars) != SCAN_SUCCESS) { in php_sscanf_internal()
652 while (*format != '\0') { in php_sscanf_internal()
653 ch = format++; in php_sscanf_internal()
685 ch = format++; in php_sscanf_internal()
696 ch = format++; in php_sscanf_internal()
698 value = ZEND_STRTOUL(format-1, &end, 10); in php_sscanf_internal()
700 format = end+1; in php_sscanf_internal()
701 ch = format++; in php_sscanf_internal()
710 width = ZEND_STRTOUL(format-1, &format, 10); in php_sscanf_internal()
711 ch = format++; in php_sscanf_internal()
720 ch = format++; in php_sscanf_internal()
867 format = BuildCharSet(&cset, format); in php_sscanf_internal()