• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/libsecurity_utilities/lib/

Lines Matching +defs:format +defs:type

53 	: format(fmt), allocator(NULL), error(errSecSuccess)
69 while (*format && (isspace(*format) || *format == ',')) ++format;
70 return *format;
80 ++format;
93 switch (*++format) {
95 ++format;
99 ++format;
132 if (isdigit(*format) || *format == '-')
134 else if (isalpha(*format))
146 ++format;
147 switch (*format++) {
174 ++format;
175 switch (*format++) {
193 double value = strtod(format, (char **)&format);
205 if (*format == '\'') {
206 start = ++format; // next quote
207 if (!(end = strchr(format, '\''))) {
211 format = end + 1;
213 start = format;
215 format = end;
228 ++format; // next '{'
269 ++format;
290 ++format; // next '['
302 ++format;
308 // A CFScan processes its format by parsing through an existing CF object
315 CFScan(const char *format, va_list args)
316 : CFMake(format, args), suppress(false) { }
327 Typescan typescan(CFTypeRef obj, CFTypeID type);
361 ++format;
379 // Primitive type-match helper.
380 // Ensures the object has the CF runtime type required, and processes
381 // the %?o format (return CFTypeRef) and %?n format (ignore value).
383 CFScan::Typescan CFScan::typescan(CFTypeRef obj, CFTypeID type)
385 if (obj && CFGetTypeID(obj) != type)
387 switch (*++format) {
389 ++format;
393 ++format;
418 ++format; // consume format code
434 switch (*++format) {
443 switch (*format) {
482 ++format; // skip '{'
501 assert(false); // bad format
511 ++format; // skip '['
543 CFTypeRef cfmake(const char *format, ...)
546 va_start(args, format);
547 CFTypeRef result = CFMake(format, args).make();
552 CFTypeRef vcfmake(const char *format, va_list args)
554 return CFMake(format, args).make();
557 CFDictionaryRef cfadd(CFMutableDictionaryRef dict, const char *format, ...)
560 va_start(args, format);
561 CFDictionaryRef result = CFMake(format, args).addto(dict);
567 bool cfscan(CFTypeRef obj, const char *format, ...)
570 va_start(args, format);
571 bool result = vcfscan(obj, format, args);
576 bool vcfscan(CFTypeRef obj, const char *format, va_list args)
578 return CFScan(format, args).scan(obj);
582 CFTypeRef cfget(CFTypeRef obj, const char *format, ...)
585 va_start(args, format);
586 CFTypeRef result = vcfget(obj, format, args);
591 CFTypeRef vcfget(CFTypeRef obj, const char *format, va_list args)
593 return CFScan(format, args).dictpath(obj);