Lines Matching refs:converter

14 *   UTF-32 converter implementation. Used to be in ucnv_utf.c.
51 unsigned char *toUBytes = args->converter->toUBytes;
55 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
56 i = args->converter->toULength; /* restore # of bytes consumed */
57 args->converter->toULength = 0;
59 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
60 args->converter->toUnicodeStatus = 0;
76 args->converter->toUnicodeStatus = ch + 1;
77 args->converter->toULength = (int8_t) i;
98 args->converter->UCharErrorBuffer[0] = (UChar) ch;
99 args->converter->UCharErrorBufferLength = 1;
106 args->converter->toULength = (int8_t)i;
131 unsigned char *toUBytes = args->converter->toUBytes;
136 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
137 i = args->converter->toULength; /* restore # of bytes consumed */
138 args->converter->toULength = 0;
140 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
141 args->converter->toUnicodeStatus = 0;
157 args->converter->toUnicodeStatus = ch + 1;
158 args->converter->toULength = (int8_t) i;
182 args->converter->UCharErrorBuffer[0] = (UChar) ch;
183 args->converter->UCharErrorBufferLength = 1;
190 args->converter->toULength = (int8_t)i;
227 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
229 ucnv_fromUWriteBytes(args->converter,
234 args->converter->fromUnicodeStatus=0;
240 if (args->converter->fromUChar32) {
241 ch = args->converter->fromUChar32;
242 args->converter->fromUChar32 = 0;
261 args->converter->fromUChar32 = ch;
268 args->converter->fromUChar32 = ch;
280 args->converter->fromUChar32 = ch;
296 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
330 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
332 ucnv_fromUWriteBytes(args->converter,
337 args->converter->fromUnicodeStatus=0;
344 if (args->converter->fromUChar32) {
345 ch = args->converter->fromUChar32;
346 args->converter->fromUChar32 = 0;
365 args->converter->fromUChar32 = ch;
372 args->converter->fromUChar32 = ch;
384 args->converter->fromUChar32 = ch;
401 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
437 uprv_memcpy(args->converter->toUBytes, mySource, length);
438 args->converter->toULength = (int8_t)length;
455 uprv_memcpy(args->converter->toUBytes, mySource, 4);
456 args->converter->toULength = 4;
513 unsigned char *toUBytes = args->converter->toUBytes;
517 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
519 i = args->converter->toULength; /* restore # of bytes consumed */
520 args->converter->toULength = 0;
523 ch = args->converter->toUnicodeStatus - 1;
524 args->converter->toUnicodeStatus = 0;
544 args->converter->toUnicodeStatus = ch + 1;
545 args->converter->toULength = (int8_t) i;
565 args->converter->UCharErrorBuffer[0] = (UChar) ch;
566 args->converter->UCharErrorBufferLength = 1;
573 args->converter->toULength = (int8_t)i;
599 unsigned char *toUBytes = args->converter->toUBytes;
604 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
606 i = args->converter->toULength; /* restore # of bytes consumed */
607 args->converter->toULength = 0;
610 ch = args->converter->toUnicodeStatus - 1;
611 args->converter->toUnicodeStatus = 0;
631 args->converter->toUnicodeStatus = ch + 1;
632 args->converter->toULength = (int8_t) i;
659 args->converter->UCharErrorBuffer[0] = (UChar) ch;
660 args->converter->UCharErrorBufferLength = 1;
668 args->converter->toULength = (int8_t)i;
705 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
707 ucnv_fromUWriteBytes(args->converter,
712 args->converter->fromUnicodeStatus=0;
718 if (args->converter->fromUChar32)
720 ch = args->converter->fromUChar32;
721 args->converter->fromUChar32 = 0;
743 args->converter->fromUChar32 = ch;
750 args->converter->fromUChar32 = ch;
762 args->converter->fromUChar32 = ch;
781 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
816 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
818 ucnv_fromUWriteBytes(args->converter,
823 args->converter->fromUnicodeStatus=0;
830 if (args->converter->fromUChar32)
832 ch = args->converter->fromUChar32;
833 args->converter->fromUChar32 = 0;
856 args->converter->fromUChar32 = ch;
863 args->converter->fromUChar32 = ch;
875 args->converter->fromUChar32 = ch;
895 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
932 uprv_memcpy(args->converter->toUBytes, mySource, length);
933 args->converter->toULength = (int8_t)length;
950 uprv_memcpy(args->converter->toUBytes, mySource, 4);
951 args->converter->toULength = 4;
1046 UConverter *cnv=pArgs->converter;
1058 * offsets because the actual converter function will not see and count the BOM.
1187 switch(pArgs->converter->mode) {