Lines Matching refs:c

132 	register int	c;  in decode()  local
136 if ((c = sfgetc(ip)) == EOF) in decode()
138 name[0] = c; in decode()
140 if (c != '#' && !isalpha(c)) in decode()
142 while ((c = sfgetc(ip)) != EOF && c != ';') in decode()
144 if (c == '&') in decode()
148 name[i++] = c; in decode()
149 if (!isalnum(c) && (i > 1 || c != '#') || i >= (elementsof(name) - 1)) in decode()
156 switch (c = strtol(name + 1, NiL, 10)) in decode()
159 c = '['; in decode()
162 c = ']'; in decode()
171 c = codes[i].code; in decode()
177 return c; in decode()
180 if (c == ';') in decode()
209 register int c; in sfnext() local
211 while (isspace(c = sfgetc(ip))); in sfnext()
212 return c; in sfnext()
218 register int c; in html2msg() local
222 while ((c = sfgetc(ip)) != EOF) in html2msg()
223 if (c == '<') in html2msg()
225 if ((c = sfnext(ip)) == 'O' && in html2msg()
226 (c = sfnext(ip)) == 'L' && in html2msg()
227 isspace(c = sfgetc(ip)) && in html2msg()
228 (c = sfnext(ip)) == 'S' && in html2msg()
229 (c = sfnext(ip)) == 'T' && in html2msg()
230 (c = sfnext(ip)) == 'A' && in html2msg()
231 (c = sfnext(ip)) == 'R' && in html2msg()
232 (c = sfnext(ip)) == 'T' && in html2msg()
233 (c = sfnext(ip)) == '=' && in html2msg()
234 (c = sfnext(ip)) == '"' && in html2msg()
235 (c = sfnext(ip)) == '5' && in html2msg()
236 (c = sfnext(ip)) == '5' && in html2msg()
237 (c = sfnext(ip)) == '0' && in html2msg()
238 (c = sfnext(ip)) == '7' && in html2msg()
239 (c = sfnext(ip)) == '1' && in html2msg()
240 (c = sfnext(ip)) == '7' && in html2msg()
241 (c = sfnext(ip)) == '"' && in html2msg()
242 (c = sfnext(ip)) == '>') in html2msg()
244 while (c != EOF && c != '>') in html2msg()
245 c = sfgetc(ip); in html2msg()
247 if ((c = sfnext(ip)) != EOF) in html2msg()
248 sfungetc(ip, c); in html2msg()
252 switch (c = sfgetc(ip)) in html2msg()
257 c = decode(ip); in html2msg()
258 sfpututf(op, c); in html2msg()
259 if (isspace(c)) in html2msg()
261 while (isspace(c = sfgetc(ip))); in html2msg()
262 if (c == EOF) in html2msg()
264 sfungetc(ip, c); in html2msg()
268 switch (c = sfnext(ip)) in html2msg()
271 if ((c = sfnext(ip)) == 'O' && in html2msg()
272 (c = sfgetc(ip)) == 'L' && in html2msg()
273 (c = sfnext(ip)) == '>') in html2msg()
284 if ((c = sfgetc(ip)) == 'R' && in html2msg()
285 (c = sfnext(ip)) == '>') in html2msg()
289 if ((c = sfgetc(ip)) == 'I' && in html2msg()
290 (c = sfnext(ip)) == '>' && in html2msg()
291 isdigit(c = sfnext(ip))) in html2msg()
300 sfputc(op, c); in html2msg()
301 } while (isdigit(c = sfgetc(ip))); in html2msg()
302 if (c == EOF) in html2msg()
306 if (isspace(c)) in html2msg()
307 c = sfnext(ip); in html2msg()
308 if (c == '<' && in html2msg()
309 (c = sfnext(ip)) == 'L' && in html2msg()
310 (c = sfgetc(ip)) == 'I' && in html2msg()
311 (c = sfnext(ip)) == '>') in html2msg()
317 if ((c = sfnext(ip)) == '>') in html2msg()
319 else if (c == 'C' && in html2msg()
320 (c = sfgetc(ip)) == 'L' && in html2msg()
321 (c = sfgetc(ip)) == 'A' && in html2msg()
322 (c = sfgetc(ip)) == 'S' && in html2msg()
323 (c = sfgetc(ip)) == 'S' && in html2msg()
324 (c = sfnext(ip)) == '=' && in html2msg()
325 (c = sfnext(ip)) == '"') in html2msg()
328 switch (c = sfgetc(ip)) in html2msg()
334 c = decode(ip); in html2msg()
335 sfpututf(op, c); in html2msg()
338 sfpututf(op, c); in html2msg()
345 while (c != EOF && c != '>') in html2msg()
346 c = sfgetc(ip); in html2msg()
347 if (c == EOF || (c = sfgetc(ip)) == EOF) in html2msg()
349 sfungetc(ip, c); in html2msg()
354 sfputc(op, c); in html2msg()
359 sfputc(op, c); in html2msg()
365 while ((c = sfgetc(ip)) != EOF) in html2msg()
366 if (c == '&') in html2msg()
368 c = decode(ip); in html2msg()
369 if (!isspace(c)) in html2msg()
371 sfpututf(op, c); in html2msg()
374 else if (!isspace(c)) in html2msg()
376 if (c == '<') in html2msg()
378 c = sfgetc(ip); in html2msg()
379 if (c == EOF) in html2msg()
381 sfungetc(ip, c); in html2msg()
383 if (c != 'L' && c != '/') in html2msg()
388 if (c != EOF) in html2msg()
389 sfungetc(ip, c); in html2msg()
400 sfpututf(op, c); in html2msg()
411 encode(Sfio_t* op, register int c) in encode() argument
413 if (c == '<') in encode()
415 else if (c == '>') in encode()
417 else if (c == '"') in encode()
419 else if (c == '&') in encode()
421 else if (c == '[') in encode()
423 else if (c == ']') in encode()
426 sfputc(op, c); in encode()
433 register int c; in msg2html() local
454 while (c = *s++) in msg2html()
455 encode(op, c); in msg2html()
463 while (isdigit(c = *s++)) in msg2html()
464 sfputc(op, c); in msg2html()
466 while (c && c != '"') in msg2html()
467 c = *s++; in msg2html()
468 if (!c) in msg2html()
478 switch (c = *s++) in msg2html()
510 sfputc(op, c); in msg2html()
511 while (isalnum(c = *s++)) in msg2html()
512 sfputc(op, c); in msg2html()
521 sfputc(op, c); in msg2html()
527 if (!(c = *s++) || c == '"') in msg2html()
532 encode(op, c); in msg2html()
533 } while (!isalpha(c) || (!islower(c) || c == 'h' || c == 'l') && isalpha(*s)); in msg2html()
557 sfputc(op, c); in msg2html()
562 if (!(c = *s++)) in msg2html()
567 if (c != 'n' && c != 't') in msg2html()
575 encode(op, c); in msg2html()
576 if (c == 'b') in msg2html()
580 if (!(c = *s++) || c == '"') in msg2html()
585 if (c == '?') in msg2html()
592 sfputc(op, c); in msg2html()
596 if (c == '\\') in msg2html()
600 sfputc(op, c); in msg2html()
606 c = *s++; in msg2html()
608 encode(op, c); in msg2html()
611 else if (isdigit(c) && isdigit(*s)) in msg2html()
637 c = ' '; in msg2html()
645 sfputc(op, c); in msg2html()