Home | History | Annotate | Download | only in libcpp

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;
454 conversion_loop (int (*const one_conversion)(iconv_t, const uchar **, size_t *,
455 uchar **, size_t *),
456 iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to)
458 const uchar *inbuf;
459 uchar *outbuf;
488 to->text = XRESIZEVEC (uchar, to->text, to->asize);
497 bool (*)(iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to);
505 convert_utf8_utf16 (iconv_t cd, const uchar *from, size_t flen,
512 convert_utf8_utf32 (iconv_t cd, const uchar *from, size_t flen,
519 convert_utf16_utf8 (iconv_t cd, const uchar *from, size_t flen,
526 convert_utf32_utf8 (iconv_t cd, const uchar *from, size_t flen,
535 const uchar *from, size_t flen, struct _cpp_strbuf *to)
541 to->text = XRESIZEVEC (uchar, to->text, to->asize);
556 to->text = XRESIZEVEC (uchar, to->text, to->asize); \
561 convert_using_iconv (iconv_t cd, const uchar *from, size_t flen,
785 uchar sbuf[1];
806 tbuf.text = XNEWVEC (uchar, tbuf.asize);
1076 _cpp_valid_ucn (cpp_reader *pfile, const uchar **pstr,
1077 const uchar *limit, int identifier_pos,
1084 const uchar *str = *pstr;
1085 const uchar *base = str - 2;
1198 static const uchar *
1199 convert_ucn (cpp_reader *pfile, const uchar *from, const uchar *limit,
1206 uchar buf[6];
1207 uchar *bufp = buf;
1270 const uchar **pstr,
1271 const uchar *limit,
1276 const uchar *base = *pstr;
1353 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize);
1371 tbuf->text = XRESIZEVEC (uchar, tbuf->text, tbuf->asize);
1386 static const uchar *
1387 convert_hex (cpp_reader *pfile, const uchar *from, const uchar *limit,
1456 static const uchar *
1457 convert_oct (cpp_reader *pfile, const uchar *from, const uchar *limit,
1504 static const uchar *
1505 convert_escape (cpp_reader *pfile, const uchar *from, const uchar *limit,
1512 static const uchar charconsts[] = { 7, 8, 27, 12, 10, 13, 9, 11 };
1514 static const uchar charconsts[] = { 47, 22, 39, 12, 21, 13, 5, 11 };
1519 uchar c;
1653 const uchar *p, *base, *limit;
1663 tbuf.text = XNEWVEC (uchar, tbuf.asize);
1689 const uchar *prefix;
1788 tbuf.text = XRESIZEVEC (uchar, tbuf.text, tbuf.len);
2110 _cpp_interpret_identifier (cpp_reader *pfile, const uchar *id, size_t len)
2114 uchar * buf = (uchar *) alloca (len + 1);
2115 uchar * bufp = buf;
2197 uchar *
2199 uchar *input, size_t size, size_t len,
2216 to.text = XNEWVEC (uchar, to.asize);
2248 to.text = XRESIZEVEC (uchar, to.text, to.len + 16);
2397 else if (one_utf8_to_cppchar ((const uchar **) &m_next, &m_bytes_left, &c)