Lines Matching refs:form
96 int sfvprintf(Sfio_t* f, const char* form, va_list args) in sfvprintf() argument
98 int sfvprintf(f,form,args) in sfvprintf()
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,
337 if(*form != '.')
342 v = form[0] == 'l' ? form[1] : form[0];
345 if(*form && !isalnum(*form))
346 { v = form[1] == 'l' ? form[2] : form[1];
348 { if(*form == '*')
351 { base = *form++;
358 if(isdigit(*form) )
359 { fmt = *form++;
362 else if(*form != '*')
365 form += 1; /* fall thru for '*' */
367 form = (*_Sffmtintf)(form,&n);
368 if(*form == '$')
369 { form += 1;
379 { FMTSET(ft, form,args, '.',dot, 0, 0,0,0, NIL(char*), 0);
395 for(v = fmt - '0'; isdigit(*form); ++form)
396 v = v*10 + (*form - '0');
397 if(*form == '$')
398 { form += 1;
419 if(isdigit(*form) )
420 { for(size = 0, n = *form; isdigit(n); n = *++form)
423 else if(*form == '*')
424 { form = (*_Sffmtintf)(form+1,&n);
425 if(*form == '$')
426 { form += 1;
437 { FMTSET(ft, form,args, 'I',sizeof(int), 0, 0,0,0,
451 if(*form == 'l')
452 { form += 1;
459 if(*form == 'h')
460 { form += 1;
538 { FMTSET(ft, form,args, fmt, size,flags, width,precis,base,
551 { FMTGET(ft, form,args, fmt, size,flags, width,precis,base);
622 form -= 1;
633 if(!argv.ft->form && ft ) /* change extension functions */
635 (*ft->eventf)(f,SF_DPOP,(Void_t*)form,ft) < 0)
645 if(ft->form)
646 { fm->form = (char*)form; SFMBCPY(&fm->mbs,&fmbs);
654 form = ft->form; SFMBCLR(ft->mbs);
658 oform = (char*)form;
661 else fm->form = NIL(char*);
1351 { if(!form || !form[0])
1353 else if((*fm->eventf)(f,SF_DPOP,(Void_t*)form,ft) < 0)
1358 if((form = fm->form) )
1368 if(form && form[0])