Lines Matching refs:ac
134 static char* _sfsetclass(const char* form, Accept_t* ac, int flags)
136 static char* _sfsetclass(form, ac, flags)
138 Accept_t* ac; /* values of accepted characters */
148 { ac->yes = 0;
151 else ac->yes = 1;
154 ac->ok[c] = !ac->yes;
157 { ac->ok[*form] = ac->yes;
160 ac->form = (char*)form;
175 ac->ok[c] = ac->yes;
185 ac->ok[c] = ac->yes;
189 ac->endf = (char*)form;
195 static int _sfwaccept(wchar_t wc, Accept_t* ac)
197 static int _sfwaccept(wc, ac)
199 Accept_t* ac;
204 char *form = ac->form;
220 if((n = mbrtowc(&fwc, form, ac->endf-form, &mbs)) > 1 &&
222 return ac->yes;
226 return !ac->yes;
230 #define SFgetwc(sc,wc,fmt,ac,mbs) _sfgetwc(sc,wc,fmt,ac,(Void_t*)(mbs))
232 #define SFgetwc(sc,wc,fmt,ac,mbs) _sfgetwc(sc,wc,fmt,ac,NIL(Void_t*))
236 static int _sfgetwc(Scan_t* sc, wchar_t* wc, int fmt, Accept_t* ac, Void_t *mbs)
238 static int _sfgetwc(sc, wc, fmt, ac, mbs)
242 Accept_t* ac; /* accept handle for %[ */
280 { if((n == 1 && ac->ok[b[0]]) ||
281 (n > 1 && _sfwaccept(*wc,ac)) )
286 { if(*wc == ac->wc)