Lines Matching refs:from

51    from whatever that encoding is to the source character set.
56 character set; note also that the conversion from source to
106 line, even if iconv quadruples its size (e.g. conversion from
162 An implementation note: the transformation from UTF-16 to UTF-8, or
165 /* Internal primitives which go from an UTF-8 byte stream to native-endian
457 iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to)
464 inbuf = from;
498 bool (*)(iconv_t cd, const uchar *from, size_t flen, struct _cpp_strbuf *to);
506 convert_utf8_utf16 (iconv_t cd, const uchar *from, size_t flen,
509 return conversion_loop (one_utf8_to_utf16, cd, from, flen, to);
513 convert_utf8_utf32 (iconv_t cd, const uchar *from, size_t flen,
516 return conversion_loop (one_utf8_to_utf32, cd, from, flen, to);
520 convert_utf16_utf8 (iconv_t cd, const uchar *from, size_t flen,
523 return conversion_loop (one_utf16_to_utf8, cd, from, flen, to);
527 convert_utf32_utf8 (iconv_t cd, const uchar *from, size_t flen,
530 return conversion_loop (one_utf32_to_utf8, cd, from, flen, to);
536 const uchar *from, size_t flen, struct _cpp_strbuf *to)
543 memcpy (to->text + to->len, from, flen);
552 convert_using_iconv (iconv_t cd, const uchar *from, size_t flen,
563 inbuf = (ICONV_CONST char *)from;
613 cset_converter structure for conversion from FROM to TO. If
618 init_iconv_desc (cpp_reader *pfile, const char *to, const char *from)
624 if (!strcasecmp (to, from))
631 pair = (char *) alloca(strlen(to) + strlen(from) + 2);
633 strcpy(pair, from);
648 ret.cd = iconv_open (to, from);
654 "conversion from %s to %s not supported by iconv",
655 from, to);
665 "no iconv implementation, cannot convert from %s to %s",
666 from, to);
674 for conversion from the source character set to the execution
719 from the *basic* source character set, encoded in the host's
865 /* Easy cases from Bengali, Oriya, Tamil, Jannada, and Malayalam. */
877 and are combined algorithmically from a sequence of the form
1037 convert_ucn (cpp_reader *pfile, const uchar *from, const uchar *limit,
1049 from++; /* Skip u/U. */
1050 ucn = _cpp_valid_ucn (pfile, &from, limit, 0, &nst);
1063 return from;
1122 convert_hex (cpp_reader *pfile, const uchar *from, const uchar *limit,
1135 from++; /* Skip 'x'. */
1136 while (from < limit)
1138 c = *from;
1141 from++;
1151 return from;
1163 return from;
1173 convert_oct (cpp_reader *pfile, const uchar *from, const uchar *limit,
1183 while (from < limit && count++ < 3)
1185 c = *from;
1188 from++;
1202 return from;
1210 convert_escape (cpp_reader *pfile, const uchar *from, const uchar *limit,
1226 c = *from;
1231 return convert_ucn (pfile, from, limit, tbuf, wide);
1234 return convert_hex (pfile, from, limit, tbuf, wide);
1239 return convert_oct (pfile, from, limit, tbuf, wide);
1248 Emacs or other text editors from getting confused. '\%' can
1249 be used to prevent SCCS from mangling printf format strings. */
1296 return from + 1;
1301 are to be converted from the source to the execution character set,
1307 cpp_interpret_string (cpp_reader *pfile, const cpp_string *from, size_t count,
1316 tbuf.asize = MAX (OUTBUF_BLOCK_SIZE, from->len);
1322 p = from[i].text;
1325 limit = from[i].text + from[i].len - 1; /* Skip trailing quote. */
1362 cpp_interpret_string_notranslate (cpp_reader *pfile, const cpp_string *from,
1371 retval = cpp_interpret_string (pfile, from, count, to, wide);
1586 source file) from INPUT_CHARSET to the source character set. INPUT