Lines Matching refs:form
127 char *form, *endf; member
134 static char* _sfsetclass(const char* form, Accept_t* ac, int flags) in _sfsetclass() argument
136 static char* _sfsetclass(form, ac, flags) in _sfsetclass()
137 char* form; /* format string */ in _sfsetclass()
147 if(*form == '^') /* complementing this set */
149 form += 1;
156 if(*form == ']' || *form == '-') /* special first char */
157 { ac->ok[*form] = ac->yes;
158 form += 1;
160 ac->form = (char*)form;
164 for(n = 1; *form != ']'; form += n)
165 { if((c = *((uchar*)form)) == 0)
168 if(*(form+1) == '-')
169 { endc = *((uchar*)(form+2));
181 if((flags&SFFMT_LONG) && (n = (int)SFMBLEN(form,&mbs)) <= 0)
189 ac->endf = (char*)form;
190 return (char*)(form+1);
204 char *form = ac->form; local
208 for(n = 1; *form != ']'; form += n)
209 { if((c = *((uchar*)form)) == 0)
212 if(*(form+1) == '-')
213 { endc = *((uchar*)(form+2));
220 if((n = mbrtowc(&fwc, form, ac->endf-form, &mbs)) > 1 &&
302 int sfvscanf(Sfio_t* f, reg const char* form, va_list args) in sfvscanf() argument
304 int sfvscanf(f,form,args) in sfvscanf()
306 reg char* form; /* scanning format */
357 if(!form || f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
370 oform = (char*)form;
377 while((fmt = *form++))
394 if((n = (int)mbrtowc(&wc,form-1,SFMBMAX,&fmbs)) <= 0)
403 form += n-1;
417 if(*form == '%')
418 { form += 1;
424 if(*form == '\0')
427 if(*form == '*')
429 form += 1;
441 switch((fmt = *form++) )
444 t_str = (char*)form;
446 { switch(*form++)
449 form = t_str;
460 n_str = (form-1) - t_str;
476 { FMTSET(ft, form,args,
505 if(isdigit(*form))
506 { fmt = *form++;
509 else if(*form == '*')
510 { form = (*_Sffmtintf)(form+1,&n);
511 if(*form == '$')
512 { form += 1;
523 { FMTSET(ft, form,args, '.',dot, 0, 0,0,0,
541 for(v = fmt-'0'; isdigit(*form); ++form)
542 v = v*10 + (*form - '0');
544 if(*form == '$')
545 { form += 1;
561 if(isdigit(*form))
562 { for(size = 0, n = *form; isdigit(n); n = *++form)
565 else if(*form == '*')
566 { form = (*_Sffmtintf)(form+1,&n);
567 if(*form == '$')
568 { form += 1;
579 { FMTSET(ft, form,args, 'I',sizeof(int), 0, 0,0,0,
593 if(*form == 'l')
594 { form += 1;
601 if(*form == 'h')
602 { form += 1;
685 { FMTSET(ft, form,args, fmt, size,flags, width,0,base, t_str,n_str);
699 { FMTGET(ft, form,args, fmt, size, flags, width,n,base);
716 if(!argv.ft->form && ft ) /* change extension functions */
718 (*ft->eventf)(f,SF_DPOP,(Void_t*)form,ft) < 0)
728 if(ft->form)
729 { fm->form = (char*)form; SFMBCPY(&fm->mbs,&fmbs);
737 form = ft->form; SFMBCLR(ft->mbs);
741 oform = (char*)form;
744 else fm->form = NIL(char*);
987 if(fmt == '[' && !(form = _sfsetclass(form,&acc,flags)) )
1061 { if(!form || !form[0])
1063 else if((*fm->eventf)(f,SF_DPOP,(Void_t*)form,ft) < 0)
1068 if((form = fm->form) )
1078 if(form && form[0])