Lines Matching refs:outlen
169 asciiToUTF8(unsigned char* out, int *outlen, in asciiToUTF8() argument
174 unsigned char* outend = out + *outlen; in asciiToUTF8()
179 while ((in < inend) && (out - outstart + 5 < *outlen)) { in asciiToUTF8()
187 *outlen = out - outstart; in asciiToUTF8()
194 *outlen = out - outstart; in asciiToUTF8()
196 return(*outlen); in asciiToUTF8()
216 UTF8Toascii(unsigned char* out, int *outlen, in UTF8Toascii() argument
226 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toascii()
231 *outlen = 0; in UTF8Toascii()
236 outend = out + (*outlen); in UTF8Toascii()
242 *outlen = out - outstart; in UTF8Toascii()
250 *outlen = out - outstart; in UTF8Toascii()
273 *outlen = out - outstart; in UTF8Toascii()
279 *outlen = out - outstart; in UTF8Toascii()
281 return(*outlen); in UTF8Toascii()
300 isolat1ToUTF8(unsigned char* out, int *outlen, in isolat1ToUTF8() argument
308 if ((out == NULL) || (in == NULL) || (outlen == NULL) || (inlen == NULL)) in isolat1ToUTF8()
311 outend = out + *outlen; in isolat1ToUTF8()
329 *outlen = out - outstart; in isolat1ToUTF8()
331 return(*outlen); in isolat1ToUTF8()
348 UTF8ToUTF8(unsigned char* out, int *outlen, in UTF8ToUTF8() argument
353 if ((out == NULL) || (inb == NULL) || (outlen == NULL) || (inlenb == NULL)) in UTF8ToUTF8()
355 if (*outlen > *inlenb) { in UTF8ToUTF8()
358 len = *outlen; in UTF8ToUTF8()
365 *outlen = len; in UTF8ToUTF8()
367 return(*outlen); in UTF8ToUTF8()
389 UTF8Toisolat1(unsigned char* out, int *outlen, in UTF8Toisolat1() argument
399 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toisolat1()
404 *outlen = 0; in UTF8Toisolat1()
409 outend = out + (*outlen); in UTF8Toisolat1()
415 *outlen = out - outstart; in UTF8Toisolat1()
423 *outlen = out - outstart; in UTF8Toisolat1()
436 *outlen = out - outstart; in UTF8Toisolat1()
451 *outlen = out - outstart; in UTF8Toisolat1()
457 *outlen = out - outstart; in UTF8Toisolat1()
459 return(*outlen); in UTF8Toisolat1()
481 UTF16LEToUTF8(unsigned char* out, int *outlen, in UTF16LEToUTF8() argument
486 unsigned char* outend = out + *outlen; in UTF16LEToUTF8()
497 while ((in < inend) && (out - outstart + 5 < *outlen)) { in UTF16LEToUTF8()
525 *outlen = out - outstart; in UTF16LEToUTF8()
546 *outlen = out - outstart; in UTF16LEToUTF8()
548 return(*outlen); in UTF16LEToUTF8()
566 UTF8ToUTF16LE(unsigned char* outb, int *outlen, in UTF8ToUTF16LE() argument
581 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8ToUTF16LE()
583 *outlen = 0; in UTF8ToUTF16LE()
588 outend = out + (*outlen / 2); in UTF8ToUTF16LE()
594 *outlen = (out - outstart) * 2; in UTF8ToUTF16LE()
602 *outlen = (out - outstart) * 2; in UTF8ToUTF16LE()
656 *outlen = (out - outstart) * 2; in UTF8ToUTF16LE()
658 return(*outlen); in UTF8ToUTF16LE()
675 UTF8ToUTF16(unsigned char* outb, int *outlen, in UTF8ToUTF16() argument
682 if (*outlen >= 2) { in UTF8ToUTF16()
685 *outlen = 2; in UTF8ToUTF16()
693 *outlen = 0; in UTF8ToUTF16()
697 return (UTF8ToUTF16LE(outb, outlen, in, inlen)); in UTF8ToUTF16()
719 UTF16BEToUTF8(unsigned char* out, int *outlen, in UTF16BEToUTF8() argument
724 unsigned char* outend = out + *outlen; in UTF16BEToUTF8()
747 *outlen = out - outstart; in UTF16BEToUTF8()
767 *outlen = out - outstart; in UTF16BEToUTF8()
788 *outlen = out - outstart; in UTF16BEToUTF8()
790 return(*outlen); in UTF16BEToUTF8()
808 UTF8ToUTF16BE(unsigned char* outb, int *outlen, in UTF8ToUTF16BE() argument
823 if ((outb == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8ToUTF16BE()
825 *outlen = 0; in UTF8ToUTF16BE()
830 outend = out + (*outlen / 2); in UTF8ToUTF16BE()
836 *outlen = out - outstart; in UTF8ToUTF16BE()
844 *outlen = out - outstart; in UTF8ToUTF16BE()
895 *outlen = (out - outstart) * 2; in UTF8ToUTF16BE()
897 return(*outlen); in UTF8ToUTF16BE()
1786 xmlIconvWrapper(iconv_t cd, unsigned char *out, int *outlen, in xmlIconvWrapper() argument
1793 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL)) { in xmlIconvWrapper()
1794 if (outlen != NULL) *outlen = 0; in xmlIconvWrapper()
1798 icv_outlen = *outlen; in xmlIconvWrapper()
1801 *outlen -= icv_outlen; in xmlIconvWrapper()
1853 xmlUconvWrapper(uconv_t *cd, int toUnicode, unsigned char *out, int *outlen, in xmlUconvWrapper() argument
1859 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL)) { in xmlUconvWrapper()
1860 if (outlen != NULL) *outlen = 0; in xmlUconvWrapper()
1873 ucnv_convertEx(cd->utf8, cd->uconv, &ucv_out, ucv_out + *outlen, in xmlUconvWrapper()
1878 ucnv_convertEx(cd->uconv, cd->utf8, &ucv_out, ucv_out + *outlen, in xmlUconvWrapper()
1883 *outlen = ucv_out - (char *) out; in xmlUconvWrapper()
2525 UTF8ToISO8859x(unsigned char* out, int *outlen, in UTF8ToISO8859x() argument
2533 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || in UTF8ToISO8859x()
2540 *outlen = 0; in UTF8ToISO8859x()
2551 *outlen = out - outstart; in UTF8ToISO8859x()
2558 *outlen = out - outstart; in UTF8ToISO8859x()
2565 *outlen = out - outstart; in UTF8ToISO8859x()
2574 *outlen = out - outstart; in UTF8ToISO8859x()
2584 *outlen = out - outstart; in UTF8ToISO8859x()
2591 *outlen = out - outstart; in UTF8ToISO8859x()
2598 *outlen = out - outstart; in UTF8ToISO8859x()
2609 *outlen = out - outstart; in UTF8ToISO8859x()
2616 *outlen = out - outstart; in UTF8ToISO8859x()
2622 *outlen = out - outstart; in UTF8ToISO8859x()
2624 return(*outlen); in UTF8ToISO8859x()
2641 ISO8859xToUTF8(unsigned char* out, int *outlen, in ISO8859xToUTF8() argument
2651 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || in ISO8859xToUTF8()
2654 outend = out + *outlen; in ISO8859xToUTF8()
2663 *outlen = out - outstart; in ISO8859xToUTF8()
2688 *outlen = out - outstart; in ISO8859xToUTF8()
2690 return (*outlen); in ISO8859xToUTF8()
3429 static int ISO8859_2ToUTF8 (unsigned char* out, int *outlen, in ISO8859_2ToUTF8() argument
3431 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_2); in ISO8859_2ToUTF8()
3433 static int UTF8ToISO8859_2 (unsigned char* out, int *outlen, in UTF8ToISO8859_2() argument
3435 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_2); in UTF8ToISO8859_2()
3438 static int ISO8859_3ToUTF8 (unsigned char* out, int *outlen, in ISO8859_3ToUTF8() argument
3440 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_3); in ISO8859_3ToUTF8()
3442 static int UTF8ToISO8859_3 (unsigned char* out, int *outlen, in UTF8ToISO8859_3() argument
3444 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_3); in UTF8ToISO8859_3()
3447 static int ISO8859_4ToUTF8 (unsigned char* out, int *outlen, in ISO8859_4ToUTF8() argument
3449 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_4); in ISO8859_4ToUTF8()
3451 static int UTF8ToISO8859_4 (unsigned char* out, int *outlen, in UTF8ToISO8859_4() argument
3453 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_4); in UTF8ToISO8859_4()
3456 static int ISO8859_5ToUTF8 (unsigned char* out, int *outlen, in ISO8859_5ToUTF8() argument
3458 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_5); in ISO8859_5ToUTF8()
3460 static int UTF8ToISO8859_5 (unsigned char* out, int *outlen, in UTF8ToISO8859_5() argument
3462 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_5); in UTF8ToISO8859_5()
3465 static int ISO8859_6ToUTF8 (unsigned char* out, int *outlen, in ISO8859_6ToUTF8() argument
3467 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_6); in ISO8859_6ToUTF8()
3469 static int UTF8ToISO8859_6 (unsigned char* out, int *outlen, in UTF8ToISO8859_6() argument
3471 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_6); in UTF8ToISO8859_6()
3474 static int ISO8859_7ToUTF8 (unsigned char* out, int *outlen, in ISO8859_7ToUTF8() argument
3476 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_7); in ISO8859_7ToUTF8()
3478 static int UTF8ToISO8859_7 (unsigned char* out, int *outlen, in UTF8ToISO8859_7() argument
3480 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_7); in UTF8ToISO8859_7()
3483 static int ISO8859_8ToUTF8 (unsigned char* out, int *outlen, in ISO8859_8ToUTF8() argument
3485 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_8); in ISO8859_8ToUTF8()
3487 static int UTF8ToISO8859_8 (unsigned char* out, int *outlen, in UTF8ToISO8859_8() argument
3489 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_8); in UTF8ToISO8859_8()
3492 static int ISO8859_9ToUTF8 (unsigned char* out, int *outlen, in ISO8859_9ToUTF8() argument
3494 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_9); in ISO8859_9ToUTF8()
3496 static int UTF8ToISO8859_9 (unsigned char* out, int *outlen, in UTF8ToISO8859_9() argument
3498 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_9); in UTF8ToISO8859_9()
3501 static int ISO8859_10ToUTF8 (unsigned char* out, int *outlen, in ISO8859_10ToUTF8() argument
3503 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_10); in ISO8859_10ToUTF8()
3505 static int UTF8ToISO8859_10 (unsigned char* out, int *outlen, in UTF8ToISO8859_10() argument
3507 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_10); in UTF8ToISO8859_10()
3510 static int ISO8859_11ToUTF8 (unsigned char* out, int *outlen, in ISO8859_11ToUTF8() argument
3512 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_11); in ISO8859_11ToUTF8()
3514 static int UTF8ToISO8859_11 (unsigned char* out, int *outlen, in UTF8ToISO8859_11() argument
3516 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_11); in UTF8ToISO8859_11()
3519 static int ISO8859_13ToUTF8 (unsigned char* out, int *outlen, in ISO8859_13ToUTF8() argument
3521 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_13); in ISO8859_13ToUTF8()
3523 static int UTF8ToISO8859_13 (unsigned char* out, int *outlen, in UTF8ToISO8859_13() argument
3525 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_13); in UTF8ToISO8859_13()
3528 static int ISO8859_14ToUTF8 (unsigned char* out, int *outlen, in ISO8859_14ToUTF8() argument
3530 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_14); in ISO8859_14ToUTF8()
3532 static int UTF8ToISO8859_14 (unsigned char* out, int *outlen, in UTF8ToISO8859_14() argument
3534 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_14); in UTF8ToISO8859_14()
3537 static int ISO8859_15ToUTF8 (unsigned char* out, int *outlen, in ISO8859_15ToUTF8() argument
3539 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_15); in ISO8859_15ToUTF8()
3541 static int UTF8ToISO8859_15 (unsigned char* out, int *outlen, in UTF8ToISO8859_15() argument
3543 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_15); in UTF8ToISO8859_15()
3546 static int ISO8859_16ToUTF8 (unsigned char* out, int *outlen, in ISO8859_16ToUTF8() argument
3548 return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_16); in ISO8859_16ToUTF8()
3550 static int UTF8ToISO8859_16 (unsigned char* out, int *outlen, in UTF8ToISO8859_16() argument
3552 return UTF8ToISO8859x (out, outlen, in, inlen, xmltranscodetable_ISO8859_16); in UTF8ToISO8859_16()