Home | History | Annotate | Download | only in common

Lines Matching full:args

44 T_UConverter_toUnicode_UTF32_BE(UConverterToUnicodeArgs * args,
47 const unsigned char *mySource = (unsigned char *) args->source;
48 UChar *myTarget = args->target;
49 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit;
50 const UChar *targetLimit = args->targetLimit;
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;
118 args->target = myTarget;
119 args->source = (const char *) mySource;
123 T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC(UConverterToUnicodeArgs * args,
126 const unsigned char *mySource = (unsigned char *) args->source;
127 UChar *myTarget = args->target;
128 int32_t *myOffsets = args->offsets;
129 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit;
130 const UChar *targetLimit = args->targetLimit;
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;
204 args->target = myTarget;
205 args->source = (const char *) mySource;
206 args->offsets = myOffsets;
210 T_UConverter_fromUnicode_UTF32_BE(UConverterFromUnicodeArgs * args,
213 const UChar *mySource = args->source;
215 const UChar *sourceLimit = args->sourceLimit;
216 const unsigned char *targetLimit = (unsigned char *) args->targetLimit;
227 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
229 ucnv_fromUWriteBytes(args->converter,
231 &args->target, args->targetLimit,
232 &args->offsets, -1,
234 args->converter->fromUnicodeStatus=0;
237 myTarget = (unsigned char *) args->target;
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;
269 if (args->flush) {
280 args->converter->fromUChar32 = ch;
296 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
306 args->target = (char *) myTarget;
307 args->source = mySource;
311 T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC(UConverterFromUnicodeArgs * args,
314 const UChar *mySource = args->source;
317 const UChar *sourceLimit = args->sourceLimit;
318 const unsigned char *targetLimit = (unsigned char *) args->targetLimit;
330 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
332 ucnv_fromUWriteBytes(args->converter,
334 &args->target, args->targetLimit,
335 &args->offsets, -1,
337 args->converter->fromUnicodeStatus=0;
340 myTarget = (unsigned char *) args->target;
341 myOffsets = args->offsets;
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;
373 if (args->flush) {
384 args->converter->fromUChar32 = ch;
401 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
412 args->target = (char *) myTarget;
413 args->source = mySource;
414 args->offsets = myOffsets;
418 T_UConverter_getNextUChar_UTF32_BE(UConverterToUnicodeArgs* args,
425 mySource = (const uint8_t *)args->source;
426 if (mySource >= (const uint8_t *)args->sourceLimit)
433 length = (int32_t)((const uint8_t *)args->sourceLimit - mySource);
437 uprv_memcpy(args->converter->toUBytes, mySource, length);
438 args->converter->toULength = (int8_t)length;
439 args->source = (const char *)(mySource + length);
450 args->source = (const char *)(mySource + 4);
455 uprv_memcpy(args->converter->toUBytes, mySource, 4);
456 args->converter->toULength = 4;
506 T_UConverter_toUnicode_UTF32_LE(UConverterToUnicodeArgs * args,
509 const unsigned char *mySource = (unsigned char *) args->source;
510 UChar *myTarget = args->target;
511 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit;
512 const UChar *targetLimit = args->targetLimit;
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;
586 args->target = myTarget;
587 args->source = (const char *) mySource;
591 T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC(UConverterToUnicodeArgs * args,
594 const unsigned char *mySource = (unsigned char *) args->source;
595 UChar *myTarget = args->target;
596 int32_t *myOffsets = args->offsets;
597 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit;
598 const UChar *targetLimit = args->targetLimit;
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;
682 args->target = myTarget;
683 args->source = (const char *) mySource;
684 args->offsets = myOffsets;
688 T_UConverter_fromUnicode_UTF32_LE(UConverterFromUnicodeArgs * args,
691 const UChar *mySource = args->source;
693 const UChar *sourceLimit = args->sourceLimit;
694 const unsigned char *targetLimit = (unsigned char *) args->targetLimit;
705 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
707 ucnv_fromUWriteBytes(args->converter,
709 &args->target, args->targetLimit,
710 &args->offsets, -1,
712 args->converter->fromUnicodeStatus=0;
715 myTarget = (unsigned char *) args->target;
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;
751 if (args->flush) {
762 args->converter->fromUChar32 = ch;
781 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
792 args->target = (char *) myTarget;
793 args->source = mySource;
797 T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC(UConverterFromUnicodeArgs * args,
800 const UChar *mySource = args->source;
803 const UChar *sourceLimit = args->sourceLimit;
804 const unsigned char *targetLimit = (unsigned char *) args->targetLimit;
816 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) {
818 ucnv_fromUWriteBytes(args->converter,
820 &args->target, args->targetLimit,
821 &args->offsets, -1,
823 args->converter->fromUnicodeStatus=0;
826 myTarget = (unsigned char *) args->target;
827 myOffsets = args->offsets;
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;
864 if (args->flush) {
875 args->converter->fromUChar32 = ch;
895 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite];
907 args->target = (char *) myTarget;
908 args->source = mySource;
909 args->offsets = myOffsets;
913 T_UConverter_getNextUChar_UTF32_LE(UConverterToUnicodeArgs* args,
920 mySource = (const uint8_t *)args->source;
921 if (mySource >= (const uint8_t *)args->sourceLimit)
928 length = (int32_t)((const uint8_t *)args->sourceLimit - mySource);
932 uprv_memcpy(args->converter->toUBytes, mySource, length);
933 args->converter->toULength = (int8_t)length;
934 args->source = (const char *)(mySource + length);
945 args->source = (const char *)(mySource + 4);
950 uprv_memcpy(args->converter->toUBytes, mySource, 4);
951 args->converter->toULength = 4;