Lines Matching defs:form
96 int sfvprintf(Sfio_t* f, const char* form, va_list args)
98 int sfvprintf(f,form,args)
100 char* form; /* format to use */
181 if(!form)
201 oform = (char*)form;
208 while((n = *form) )
210 { sp = (char*)form;
212 { if((n = SFMBLEN(form, &fmbs)) <= 0)
216 } while(*(form += n) && *form != '%');
218 n = form-sp;
222 else form += 1;
236 switch((fmt = *form++) )
246 t_str = (char*)form;
248 { switch(*form++)
251 form = t_str;
262 n_str = (form-1)-t_str;
278 { FMTSET(ft, form,args,
343 if(*form != '.' && !(flags & SFFMT_CHOP))
348 v = form[0] == 'l' ? form[1] : form[0];
351 if(*form && !isalnum(*form))
352 { v = form[1] == 'l' ? form[2] : form[1];
354 { if(*form == '*')
357 { base = *form++;
364 if(isdigit(*form) )
365 { fmt = *form++;
368 else if(*form != '*')
371 form += 1; /* fall thru for '*' */
373 form = (*_Sffmtintf)(form,&n);
374 if(*form == '$')
375 { form += 1;
385 { FMTSET(ft, form,args, '.',dot, 0, 0,0,0, NIL(char*), 0);
401 for(v = fmt - '0'; isdigit(*form); ++form)
402 v = v*10 + (*form - '0');
403 if(*form == '$')
404 { form += 1;
428 if(*form == '*')
429 { form = (*_Sffmtintf)(form+1,&n);
430 if(*form == '$')
431 { form += 1;
442 { FMTSET(ft, form,args, 'I',sizeof(int), 0, 0,0,0,
456 else if(isdigit(*form) )
457 { for(size = 0, n = *form; isdigit(n); n = *++form)
464 if(*form == 'l')
465 { form += 1;
472 if(*form == 'h')
473 { form += 1;
544 { FMTSET(ft, form,args, fmt, size,flags, width,precis,base,
557 { FMTGET(ft, form,args, fmt, size,flags, width,precis,base);
628 form -= 1;
639 if(!argv.ft->form && ft ) /* change extension functions */
641 (*ft->eventf)(f,SF_DPOP,(Void_t*)form,ft) < 0)
651 if(ft->form)
652 { fm->form = (char*)form; SFMBCPY(&fm->mbs,&fmbs);
660 form = ft->form; SFMBCLR(ft->mbs);
664 oform = (char*)form;
667 else fm->form = NIL(char*);
1400 { if(!form || !form[0])
1402 else if((*fm->eventf)(f,SF_DPOP,(Void_t*)form,ft) < 0)
1407 if((form = fm->form) )
1417 if(form && form[0])