Lines Matching refs:form
45 static Fmtpos_t* sffmtpos(Sfio_t* f,const char* form,va_list args,Sffmt_t* ft,int type)
47 static Fmtpos_t* sffmtpos(f,form,args,ft,type)
49 char* form;
66 else if(!(fp = sffmtpos(f,form,args,ft,-1)) )
71 while((n = *form) )
73 { sp = (char*)form;
75 { form += SFMBLEN(form, &fmbs);
76 if(*form == 0 || *form == '%')
81 else form += 1;
82 if(*form == 0)
84 else if(*form == '%')
85 { form += 1;
89 if(*form == '*' && type > 0) /* skip in scanning */
91 form += 1;
96 sp = sffmtint(form,&argp);
99 form = sp+1;
111 switch((fmt = *form++) )
114 t_str = (char*)form;
116 { switch(*form++)
119 form = t_str;
129 n_str = form-t_str;
139 fp[n].ft.form = (char*)form;
175 if(isdigit(*form))
176 { fmt = *form++;
179 else if(*form != '*')
181 else form += 1; /* drop thru below */
184 form = sffmtint(form,&n);
185 if(*form == '$' )
187 form += 1;
195 fp[n].ft.form = (char*)form;
205 for(v = fmt - '0', fmt = *form; isdigit(fmt); fmt = *++form)
217 if(isdigit(*form) )
218 { for(size = 0, n = *form; isdigit(n); n = *++form)
221 else if(*form == '*')
222 { form = sffmtint(form+1,&n);
223 if(*form == '$' )
225 form += 1;
233 fp[n].ft.form = (char*)form;
241 if(*form == 'l')
242 { form += 1;
249 if(*form == 'h')
250 { form += 1;
318 { fp[argp].ft.form = (char*)form;
414 if(ft->form)