Home | History | Annotate | Download | only in libxml2

Lines Matching refs:outlen

164  * @outlen:  the length of @out
173 * The value of @outlen after return is the number of octets consumed.
176 asciiToUTF8(unsigned char* out, int *outlen,
181 unsigned char* outend = out + *outlen;
186 while ((in < inend) && (out - outstart + 5 < *outlen)) {
194 *outlen = out - outstart;
201 *outlen = out - outstart;
203 return(*outlen);
210 * @outlen: the length of @out
220 * The value of @outlen after return is the number of octets consumed.
223 UTF8Toascii(unsigned char* out, int *outlen,
233 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1);
238 *outlen = 0;
243 outend = out + (*outlen);
249 *outlen = out - outstart;
257 *outlen = out - outstart;
280 *outlen = out - outstart;
286 *outlen = out - outstart;
288 return(*outlen);
295 * @outlen: the length of @out
304 * The value of @outlen after return is the number of octets consumed.
307 isolat1ToUTF8(unsigned char* out, int *outlen,
315 if ((out == NULL) || (in == NULL) || (outlen == NULL) || (inlen == NULL))
318 outend = out + *outlen;
336 *outlen = out - outstart;
338 return(*outlen);
344 * @outlen: the length of @out
355 UTF8ToUTF8(unsigned char* out, int *outlen,
360 if ((out == NULL) || (outlen == NULL) || (inlenb == NULL))
364 *outlen = 0;
368 if (*outlen > *inlenb) {
371 len = *outlen;
378 *outlen = len;
380 return(*outlen);
388 * @outlen: the length of @out
399 * The value of @outlen after return is the number of octets consumed.
402 UTF8Toisolat1(unsigned char* out, int *outlen,
412 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1);
417 *outlen = 0;
422 outend = out + (*outlen);
428 *outlen = out - outstart;
436 *outlen = out - outstart;
449 *outlen = out - outstart;
464 *outlen = out - outstart;
470 *outlen = out - outstart;
472 return(*outlen);
479 * @outlen: the length of @out
494 UTF16LEToUTF8(unsigned char* out, int *outlen,
499 unsigned char* outend = out + *outlen;
510 while ((in < inend) && (out - outstart + 5 < *outlen)) {
538 *outlen = out - outstart;
559 *outlen = out - outstart;
561 return(*outlen);
568 * @outlen: the length of @outb
579 UTF8ToUTF16LE(unsigned char* outb, int *outlen,
594 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1);
596 *outlen = 0;
601 outend = out + (*outlen / 2);
607 *outlen = (out - outstart) * 2;
615 *outlen = (out - outstart) * 2;
669 *outlen = (out - outstart) * 2;
671 return(*outlen);
677 * @outlen: the length of @outb
688 UTF8ToUTF16(unsigned char* outb, int *outlen,
695 if (*outlen >= 2) {
698 *outlen = 2;
706 *outlen = 0;
710 return (UTF8ToUTF16LE(outb, outlen, in, inlen));
717 * @outlen: the length of @out
732 UTF16BEToUTF8(unsigned char* out, int *outlen,
737 unsigned char* outend = out + *outlen;
760 *outlen = out - outstart;
780 *outlen = out - outstart;
801 *outlen = out - outstart;
803 return(*outlen);
810 * @outlen: the length of @outb
821 UTF8ToUTF16BE(unsigned char* outb, int *outlen,
836 if ((outb == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1);
838 *outlen = 0;
843 outend = out + (*outlen / 2);
849 *outlen = out - outstart;
857 *outlen = out - outstart;
908 *outlen = (out - outstart) * 2;
910 return(*outlen);
1786 * @outlen: the length of @out
1798 * The value of @outlen after return is the number of ocetes consumed.
1801 xmlIconvWrapper(iconv_t cd, unsigned char *out, int *outlen,
1808 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL)) {
1809 if (outlen != NULL) *outlen = 0;
1813 icv_outlen = *outlen;
1816 *outlen -= icv_outlen;
1853 * @outlen: the length of @out
1866 * The value of @outlen after return is the number of ocetes consumed.
1869 xmlUconvWrapper(uconv_t *cd, int toUnicode, unsigned char *out, int *outlen,
1875 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL)) {
1876 if (outlen != NULL) *outlen = 0;
1882 ucnv_convertEx(cd->utf8, cd->uconv, &ucv_out, ucv_out + *outlen,
1888 ucnv_convertEx(cd->uconv, cd->utf8, &ucv_out, ucv_out + *outlen,
1894 *outlen = ucv_out - (char *) out;
1917 int *outlen, const unsigned char *in, int *inlen, int flush) {
1922 ret = handler->input(out, outlen, in, inlen);
1926 ret = xmlIconvWrapper(handler->iconv_in, out, outlen, in, inlen);
1931 ret = xmlUconvWrapper(handler->uconv_in, 1, out, outlen, in, inlen,
1936 *outlen = 0;
1947 int *outlen, const unsigned char *in, int *inlen) {
1951 ret = handler->output(out, outlen, in, inlen);
1955 ret = xmlIconvWrapper(handler->iconv_out, out, outlen, in, inlen);
1960 ret = xmlUconvWrapper(handler->uconv_out, 0, out, outlen, in, inlen,
1965 *outlen = 0;
2854 * @outlen: the length of @out
2865 * The value of @outlen after return is the number of ocetes consumed.
2868 UTF8ToISO8859x(unsigned char* out, int *outlen,
2876 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) ||
2883 *outlen = 0;
2894 *outlen = out - outstart;
2901 *outlen = out - outstart;
2908 *outlen = out - outstart;
2917 *outlen = out - outstart;
2927 *outlen = out - outstart;
2934 *outlen = out - outstart;
2941 *outlen = out - outstart;
2952 *outlen = out - outstart;
2959 *outlen = out - outstart;
2965 *outlen = out - outstart;
2967 return(*outlen);
2973 * @outlen: the length of @out
2981 * The value of @outlen after return is the number of ocetes produced.
2984 ISO8859xToUTF8(unsigned char* out, int *outlen,
2994 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) ||
2997 outend = out + *outlen;
3006 *outlen = out - outstart;
3031 *outlen = out - outstart;
3033 return (*outlen);
3772 static int ISO8859_2ToUTF8 (unsigned char* out, int *outlen,
3774 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_2);
3776 static int UTF8ToISO8859_2 (unsigned char* out, int *outlen,
3778 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_2);
3781 static int ISO8859_3ToUTF8 (unsigned char* out, int *outlen,
3783 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_3);
3785 static int UTF8ToISO8859_3 (unsigned char* out, int *outlen,
3787 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_3);
3790 static int ISO8859_4ToUTF8 (unsigned char* out, int *outlen,
3792 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_4);
3794 static int UTF8ToISO8859_4 (unsigned char* out, int *outlen,
3796 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_4);
3799 static int ISO8859_5ToUTF8 (unsigned char* out, int *outlen,
3801 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_5);
3803 static int UTF8ToISO8859_5 (unsigned char* out, int *outlen,
3805 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_5);
3808 static int ISO8859_6ToUTF8 (unsigned char* out, int *outlen,
3810 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_6);
3812 static int UTF8ToISO8859_6 (unsigned char* out, int *outlen,
3814 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_6);
3817 static int ISO8859_7ToUTF8 (unsigned char* out, int *outlen,
3819 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_7);
3821 static int UTF8ToISO8859_7 (unsigned char* out, int *outlen,
3823 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_7);
3826 static int ISO8859_8ToUTF8 (unsigned char* out, int *outlen,
3828 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_8);
3830 static int UTF8ToISO8859_8 (unsigned char* out, int *outlen,
3832 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_8);
3835 static int ISO8859_9ToUTF8 (unsigned char* out, int *outlen,
3837 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_9);
3839 static int UTF8ToISO8859_9 (unsigned char* out, int *outlen,
3841 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_9);
3844 static int ISO8859_10ToUTF8 (unsigned char* out, int *outlen,
3846 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_10);
3848 static int UTF8ToISO8859_10 (unsigned char* out, int *outlen,
3850 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_10);
3853 static int ISO8859_11ToUTF8 (unsigned char* out, int *outlen,
3855 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_11);
3857 static int UTF8ToISO8859_11 (unsigned char* out, int *outlen,
3859 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_11);
3862 static int ISO8859_13ToUTF8 (unsigned char* out, int *outlen,
3864 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_13);
3866 static int UTF8ToISO8859_13 (unsigned char* out, int *outlen,
3868 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_13);
3871 static int ISO8859_14ToUTF8 (unsigned char* out, int *outlen,
3873 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_14);
3875 static int UTF8ToISO8859_14 (unsigned char* out, int *outlen,
3877 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_14);
3880 static int ISO8859_15ToUTF8 (unsigned char* out, int *outlen,
3882 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_15);
3884 static int UTF8ToISO8859_15 (unsigned char* out, int *outlen,
3886 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_15);
3889 static int ISO8859_16ToUTF8 (unsigned char* out, int *outlen,
3891 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_16);
3893 static int UTF8ToISO8859_16 (unsigned char* out, int *outlen,
3895 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_16);