Home | History | Annotate | Download | only in common

Lines Matching full: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;
511 unsigned char *toUBytes = args->converter->toUBytes;
515 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
517 i = args->converter->toULength; /* restore # of bytes consumed */
518 args->converter->toULength = 0;
521 ch = args->converter->toUnicodeStatus - 1;
522 args->converter->toUnicodeStatus = 0;
542 args->converter->toUnicodeStatus = ch + 1;
543 args->converter->toULength = (int8_t) i;
563 args->converter->UCharErrorBuffer[0] = (UChar) ch;
564 args->converter->UCharErrorBufferLength = 1;
571 args->converter->toULength = (int8_t)i;
597 unsigned char *toUBytes = args->converter->toUBytes;
602 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
604 i = args->converter->toULength; /* restore # of bytes consumed */
605 args->converter->toULength = 0;
608 ch = args->converter->toUnicodeStatus - 1;
609 args->converter->toUnicodeStatus = 0;
629 args->converter->toUnicodeStatus = ch + 1;
630 args->converter->toULength = (int8_t) i;
657 args->converter->UCharErrorBuffer[0] = (UChar) ch;
658 args->converter->UCharErrorBufferLength = 1;
666 args->converter->toULength = (int8_t)i;
703 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
705 ucnv_fromUWriteBytes(args->converter,
710 args->converter->fromUnicodeStatus=0;
716 if (args->converter->fromUChar32)
718 ch = args->converter->fromUChar32;
719 args->converter->fromUChar32 = 0;
741 args->converter->fromUChar32 = ch;
748 args->converter->fromUChar32 = ch;
760 args->converter->fromUChar32 = ch;
779 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
814 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
816 ucnv_fromUWriteBytes(args->converter,
821 args->converter->fromUnicodeStatus=0;
828 if (args->converter->fromUChar32)
830 ch = args->converter->fromUChar32;
831 args->converter->fromUChar32 = 0;
854 args->converter->fromUChar32 = ch;
861 args->converter->fromUChar32 = ch;
873 args->converter->fromUChar32 = ch;
893 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
930 uprv_memcpy(args->converter->toUBytes, mySource, length);
931 args->converter->toULength = (int8_t)length;
948 uprv_memcpy(args->converter->toUBytes, mySource, 4);
949 args->converter->toULength = 4;
1041 UConverter *cnv=pArgs->converter;
1053 * offsets because the actual converter function will not see and count the BOM.
1182 switch(pArgs->converter->mode) {