Home | History | Annotate | Download | only in common

Lines Matching refs:converter

16 *   UTF-32 converter implementation. Used to be in ucnv_utf.c.
54 unsigned char *toUBytes = args->converter->toUBytes;
58 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
59 i = args->converter->toULength; /* restore # of bytes consumed */
60 args->converter->toULength = 0;
62 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
63 args->converter->toUnicodeStatus = 0;
79 args->converter->toUnicodeStatus = ch + 1;
80 args->converter->toULength = (int8_t) i;
101 args->converter->UCharErrorBuffer[0] = (UChar) ch;
102 args->converter->UCharErrorBufferLength = 1;
109 args->converter->toULength = (int8_t)i;
134 unsigned char *toUBytes = args->converter->toUBytes;
139 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
140 i = args->converter->toULength; /* restore # of bytes consumed */
141 args->converter->toULength = 0;
143 ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous call*/
144 args->converter->toUnicodeStatus = 0;
160 args->converter->toUnicodeStatus = ch + 1;
161 args->converter->toULength = (int8_t) i;
185 args->converter->UCharErrorBuffer[0] = (UChar) ch;
186 args->converter->UCharErrorBufferLength = 1;
193 args->converter->toULength = (int8_t)i;
230 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
232 ucnv_fromUWriteBytes(args->converter,
237 args->converter->fromUnicodeStatus=0;
243 if (args->converter->fromUChar32) {
244 ch = args->converter->fromUChar32;
245 args->converter->fromUChar32 = 0;
264 args->converter->fromUChar32 = ch;
271 args->converter->fromUChar32 = ch;
283 args->converter->fromUChar32 = ch;
299 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
333 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
335 ucnv_fromUWriteBytes(args->converter,
340 args->converter->fromUnicodeStatus=0;
347 if (args->converter->fromUChar32) {
348 ch = args->converter->fromUChar32;
349 args->converter->fromUChar32 = 0;
368 args->converter->fromUChar32 = ch;
375 args->converter->fromUChar32 = ch;
387 args->converter->fromUChar32 = ch;
404 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
440 uprv_memcpy(args->converter->toUBytes, mySource, length);
441 args->converter->toULength = (int8_t)length;
458 uprv_memcpy(args->converter->toUBytes, mySource, 4);
459 args->converter->toULength = 4;
516 unsigned char *toUBytes = args->converter->toUBytes;
520 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
522 i = args->converter->toULength; /* restore # of bytes consumed */
523 args->converter->toULength = 0;
526 ch = args->converter->toUnicodeStatus - 1;
527 args->converter->toUnicodeStatus = 0;
547 args->converter->toUnicodeStatus = ch + 1;
548 args->converter->toULength = (int8_t) i;
568 args->converter->UCharErrorBuffer[0] = (UChar) ch;
569 args->converter->UCharErrorBufferLength = 1;
576 args->converter->toULength = (int8_t)i;
602 unsigned char *toUBytes = args->converter->toUBytes;
607 if (args->converter->toUnicodeStatus && myTarget < targetLimit)
609 i = args->converter->toULength; /* restore # of bytes consumed */
610 args->converter->toULength = 0;
613 ch = args->converter->toUnicodeStatus - 1;
614 args->converter->toUnicodeStatus = 0;
634 args->converter->toUnicodeStatus = ch + 1;
635 args->converter->toULength = (int8_t) i;
662 args->converter->UCharErrorBuffer[0] = (UChar) ch;
663 args->converter->UCharErrorBufferLength = 1;
671 args->converter->toULength = (int8_t)i;
708 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
710 ucnv_fromUWriteBytes(args->converter,
715 args->converter->fromUnicodeStatus=0;
721 if (args->converter->fromUChar32)
723 ch = args->converter->fromUChar32;
724 args->converter->fromUChar32 = 0;
746 args->converter->fromUChar32 = ch;
753 args->converter->fromUChar32 = ch;
765 args->converter->fromUChar32 = ch;
784 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
819 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
821 ucnv_fromUWriteBytes(args->converter,
826 args->converter->fromUnicodeStatus=0;
833 if (args->converter->fromUChar32)
835 ch = args->converter->fromUChar32;
836 args->converter->fromUChar32 = 0;
859 args->converter->fromUChar32 = ch;
866 args->converter->fromUChar32 = ch;
878 args->converter->fromUChar32 = ch;
898 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
935 uprv_memcpy(args->converter->toUBytes, mySource, length);
936 args->converter->toULength = (int8_t)length;
953 uprv_memcpy(args->converter->toUBytes, mySource, 4);
954 args->converter->toULength = 4;
1049 UConverter *cnv=pArgs->converter;
1061 * offsets because the actual converter function will not see and count the BOM.
1190 switch(pArgs->converter->mode) {