Lines Matching refs:converter

14 *   UTF-32 converter implementation. Used to be in ucnv_utf.c.
52 unsigned char *toUBytes = args->converter->toUBytes;
56 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
57 i = args->converter->toULength; /* restore # of bytes consumed */
58 args->converter->toULength = 0;
60 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
61 args->converter->toUnicodeStatus = 0;
77 args->converter->toUnicodeStatus = ch + 1;
78 args->converter->toULength = (int8_t) i;
99 args->converter->UCharErrorBuffer[0] = (UChar) ch;
100 args->converter->UCharErrorBufferLength = 1;
107 args->converter->toULength = (int8_t)i;
132 unsigned char *toUBytes = args->converter->toUBytes;
137 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
138 i = args->converter->toULength; /* restore # of bytes consumed */
139 args->converter->toULength = 0;
141 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
142 args->converter->toUnicodeStatus = 0;
158 args->converter->toUnicodeStatus = ch + 1;
159 args->converter->toULength = (int8_t) i;
183 args->converter->UCharErrorBuffer[0] = (UChar) ch;
184 args->converter->UCharErrorBufferLength = 1;
191 args->converter->toULength = (int8_t)i;
228 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
230 ucnv_fromUWriteBytes(args->converter,
235 args->converter->fromUnicodeStatus=0;
241 if (args->converter->fromUChar32) {
242 ch = args->converter->fromUChar32;
243 args->converter->fromUChar32 = 0;
262 args->converter->fromUChar32 = ch;
269 args->converter->fromUChar32 = ch;
281 args->converter->fromUChar32 = ch;
297 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
331 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
333 ucnv_fromUWriteBytes(args->converter,
338 args->converter->fromUnicodeStatus=0;
345 if (args->converter->fromUChar32) {
346 ch = args->converter->fromUChar32;
347 args->converter->fromUChar32 = 0;
366 args->converter->fromUChar32 = ch;
373 args->converter->fromUChar32 = ch;
385 args->converter->fromUChar32 = ch;
402 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
438 uprv_memcpy(args->converter->toUBytes, mySource, length);
439 args->converter->toULength = (int8_t)length;
456 uprv_memcpy(args->converter->toUBytes, mySource, 4);
457 args->converter->toULength = 4;
514 unsigned char *toUBytes = args->converter->toUBytes;
518 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
520 i = args->converter->toULength; /* restore # of bytes consumed */
521 args->converter->toULength = 0;
524 ch = args->converter->toUnicodeStatus - 1;
525 args->converter->toUnicodeStatus = 0;
545 args->converter->toUnicodeStatus = ch + 1;
546 args->converter->toULength = (int8_t) i;
566 args->converter->UCharErrorBuffer[0] = (UChar) ch;
567 args->converter->UCharErrorBufferLength = 1;
574 args->converter->toULength = (int8_t)i;
600 unsigned char *toUBytes = args->converter->toUBytes;
605 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
607 i = args->converter->toULength; /* restore # of bytes consumed */
608 args->converter->toULength = 0;
611 ch = args->converter->toUnicodeStatus - 1;
612 args->converter->toUnicodeStatus = 0;
632 args->converter->toUnicodeStatus = ch + 1;
633 args->converter->toULength = (int8_t) i;
660 args->converter->UCharErrorBuffer[0] = (UChar) ch;
661 args->converter->UCharErrorBufferLength = 1;
669 args->converter->toULength = (int8_t)i;
706 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
708 ucnv_fromUWriteBytes(args->converter,
713 args->converter->fromUnicodeStatus=0;
719 if (args->converter->fromUChar32)
721 ch = args->converter->fromUChar32;
722 args->converter->fromUChar32 = 0;
744 args->converter->fromUChar32 = ch;
751 args->converter->fromUChar32 = ch;
763 args->converter->fromUChar32 = ch;
782 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
817 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
819 ucnv_fromUWriteBytes(args->converter,
824 args->converter->fromUnicodeStatus=0;
831 if (args->converter->fromUChar32)
833 ch = args->converter->fromUChar32;
834 args->converter->fromUChar32 = 0;
857 args->converter->fromUChar32 = ch;
864 args->converter->fromUChar32 = ch;
876 args->converter->fromUChar32 = ch;
896 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
933 uprv_memcpy(args->converter->toUBytes, mySource, length);
934 args->converter->toULength = (int8_t)length;
951 uprv_memcpy(args->converter->toUBytes, mySource, 4);
952 args->converter->toULength = 4;
1047 UConverter *cnv=pArgs->converter;
1059 * offsets because the actual converter function will not see and count the BOM.
1188 switch(pArgs->converter->mode) {