Lines Matching refs:form
45 static Fmtpos_t* sffmtpos(Sfio_t* f,const char* form,va_list args,Sffmt_t* ft,int type) in sffmtpos() argument
47 static Fmtpos_t* sffmtpos(f,form,args,ft,type) in sffmtpos()
49 char* form;
68 else if(!(fp = sffmtpos(f,form,args,ft,-1)) )
73 while((n = *form) )
75 { sp = (char*)form;
77 { form += SFMBLEN(form, &fmbs);
78 if(*form == 0 || *form == '%')
83 else form += 1;
84 if(*form == 0)
86 else if(*form == '%')
87 { form += 1;
91 if(*form == '*' && type > 0) /* skip in scanning */
93 form += 1;
98 sp = sffmtint(form,&argp);
101 form = sp+1;
113 switch((fmt = *form++) )
116 t_str = (char*)form;
118 { switch(*form++)
121 form = t_str;
131 n_str = form-t_str;
141 fp[n].ft.form = (char*)form;
177 if(isdigit(*form))
178 { fmt = *form++;
181 else if(*form != '*')
183 else form += 1; /* drop thru below */
186 form = sffmtint(form,&n);
187 if(*form == '$' )
189 form += 1;
197 fp[n].ft.form = (char*)form;
207 for(v = fmt - '0', fmt = *form; isdigit(fmt); fmt = *++form)
219 if(isdigit(*form) )
220 { for(size = 0, n = *form; isdigit(n); n = *++form)
223 else if(*form == '*')
224 { form = sffmtint(form+1,&n);
225 if(*form == '$' )
227 form += 1;
235 fp[n].ft.form = (char*)form;
243 if(*form == 'l')
244 { form += 1;
251 if(*form == 'h')
252 { form += 1;
320 { fp[argp].ft.form = (char*)form;
416 if(ft->form)