Lines Matching refs:uchar
99 uchar *text;
168 one_utf8_to_cppchar (const uchar **inbufp, size_t *inbytesleftp,
171 static const uchar masks[6] = { 0x7F, 0x1F, 0x0F, 0x07, 0x03, 0x01 };
172 static const uchar patns[6] = { 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
175 const uchar *inbuf = *inbufp;
228 one_cppchar_to_utf8 (cppchar_t c, uchar **outbufp, size_t *outbytesleftp)
230 static const uchar masks[6] = { 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
231 static const uchar limits[6] = { 0x80, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE };
233 uchar buf[6], *p = &buf[6];
234 uchar *outbuf = *outbufp;
263 int (*)(iconv_t bigend, const uchar **inbufp, size_t *inbytesleftp,
264 uchar **outbufp, size_t *outbytesleftp)
279 one_utf8_to_utf32 (iconv_t bigend, const uchar **inbufp, size_t *inbytesleftp,
280 uchar **outbufp, size_t *outbytesleftp)
282 uchar *outbuf;
306 one_utf32_to_utf8 (iconv_t bigend, const uchar **inbufp, size_t *inbytesleftp,
307 uchar **outbufp, size_t *outbytesleftp)
311 const uchar *inbuf;
336 one_utf8_to_utf16 (iconv_t bigend, const uchar **inbufp, size_t *inbytesleftp,
337 uchar **outbufp, size_t *outbytesleftp)
341 const uchar *save_inbuf = *inbufp;
343 uchar *outbuf = *outbufp;
399 one_utf16_to_utf8 (iconv_t bigend, const uchar **inbufp, size_t *inbytesleftp,
400 uchar **outbufp, size_t *outbytesleftp)
403 const uchar *inbuf = *inbufp;
452 as long as it is one uchar per character. */
455 one_count_chars (iconv_t, const uchar **inbufp, size_t *inbytesleftp,
456 uchar **outbufp, size_t *outbytesleftp)
472 static const uchar utf_ebcdic_map[256] = {
521 uchar **, size_t *,
522 uchar **, size_t *),
523 iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to)
525 const uchar *inbuf;
526 uchar *outbuf;
555 to->text = XRESIZEVEC (uchar, to->text, to->asize);
564 bool (*)(iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to);
572 convert_utf8_utf16 (iconv_t cd, const uchar *from, size_t flen,
579 convert_utf8_utf32 (iconv_t cd, const uchar *from, size_t flen,
586 convert_utf16_utf8 (iconv_t cd, const uchar *from, size_t flen,
593 convert_utf32_utf8 (iconv_t cd, const uchar *from, size_t flen,
602 convert_count_chars (iconv_t cd, const uchar *from,
611 const uchar *from, size_t flen, struct _cpp_strbuf *to)
617 to->text = XRESIZEVEC (uchar, to->text, to->asize);
632 to->text = XRESIZEVEC (uchar, to->text, to->asize); \
637 convert_using_iconv (iconv_t cd, const uchar *from, size_t flen,
861 uchar sbuf[1];
882 tbuf.text = XNEWVEC (uchar, tbuf.asize);
1537 _cpp_valid_ucn (cpp_reader *pfile, const uchar **pstr,
1538 const uchar *limit, int identifier_pos,
1545 const uchar *str = *pstr;
1546 const uchar *base = str - 2;
1605 const uchar *name = str;
1853 static const uchar *
1854 convert_ucn (cpp_reader *pfile, const uchar *from, const uchar *limit,
1861 uchar buf[6];
1862 uchar *bufp = buf;
1924 const uchar **pstr,
1925 const uchar *limit,
1930 const uchar *base = *pstr;
1986 const uchar *iter = (const uchar *)buffer;
2041 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize);
2059 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize);
2074 static const uchar *
2075 convert_hex (cpp_reader *pfile, const uchar *from, const uchar *limit,
2086 const uchar *base = from - 1;
2175 static const uchar *
2176 convert_oct (cpp_reader *pfile, const uchar *from, const uchar *limit,
2187 const uchar *base = from - 1;
2269 static const uchar *
2270 convert_escape (cpp_reader *pfile, const uchar *from, const uchar *limit,
2277 static const uchar charconsts[] = { 7, 8, 27, 12, 10, 13, 9, 11 };
2279 static const uchar charconsts[] = { 47, 22, 39, 12, 21, 13, 5, 11 };
2284 uchar c;
2427 const uchar *p, *base, *limit;
2437 tbuf.text = XNEWVEC (uchar, tbuf.asize);
2463 const uchar *prefix;
2562 tbuf.text = XRESIZEVEC (uchar, tbuf.text, tbuf.len);
2974 _cpp_interpret_identifier (cpp_reader *pfile, const uchar *id, size_t len)
2978 uchar * buf = (uchar *) alloca (len + 1);
2979 uchar * bufp = buf;
2997 const uchar *name = &id[idp];
3089 uchar *
3091 uchar *input, size_t size, size_t len,
3108 to.text = XNEWVEC (uchar, to.asize);
3140 to.text = XRESIZEVEC (uchar, to.text, to.len + 16);
3289 else if (one_utf8_to_cppchar ((const uchar **) &m_next, &m_bytes_left, &c)