Lines Matching refs:args

47 T_UConverter_toUnicode_UTF32_BE(UConverterToUnicodeArgs * args,  in T_UConverter_toUnicode_UTF32_BE()  argument
50 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_BE()
51 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_BE()
52 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE()
53 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE()
54 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE()
58 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
59 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE()
60 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE()
62 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE()
63 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE()
79 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE()
80 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE()
101 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE()
102 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE()
109 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_BE()
121 args->target = myTarget; in T_UConverter_toUnicode_UTF32_BE()
122 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_BE()
126 T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() argument
129 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
130 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
131 int32_t *myOffsets = args->offsets; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
132 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
133 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
134 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
139 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
140 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
141 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
143 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
144 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
160 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
161 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
185 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
186 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
193 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
207 args->target = myTarget; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
208 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
209 args->offsets = myOffsets; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
213 T_UConverter_fromUnicode_UTF32_BE(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_BE() argument
216 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_BE()
218 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_BE()
219 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_BE()
230 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_BE()
232 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_BE()
234 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_BE()
235 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_BE()
237 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_BE()
240 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_BE()
243 if (args->converter->fromUChar32) { in T_UConverter_fromUnicode_UTF32_BE()
244 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_BE()
245 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_BE()
264 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
271 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
272 if (args->flush) { in T_UConverter_fromUnicode_UTF32_BE()
283 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
299args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_BE()
309 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_BE()
310 args->source = mySource; in T_UConverter_fromUnicode_UTF32_BE()
314 T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() argument
317 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
320 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
321 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
333 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
335 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
337 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
338 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
340 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
343 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
344 myOffsets = args->offsets; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
347 if (args->converter->fromUChar32) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
348 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
349 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
368 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
375 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
376 if (args->flush) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
387 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
404args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
415 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
416 args->source = mySource; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
417 args->offsets = myOffsets; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
421 T_UConverter_getNextUChar_UTF32_BE(UConverterToUnicodeArgs* args, in T_UConverter_getNextUChar_UTF32_BE() argument
428 mySource = (const uint8_t *)args->source; in T_UConverter_getNextUChar_UTF32_BE()
429 if (mySource >= (const uint8_t *)args->sourceLimit) in T_UConverter_getNextUChar_UTF32_BE()
436 length = (int32_t)((const uint8_t *)args->sourceLimit - mySource); in T_UConverter_getNextUChar_UTF32_BE()
440 uprv_memcpy(args->converter->toUBytes, mySource, length); in T_UConverter_getNextUChar_UTF32_BE()
441 args->converter->toULength = (int8_t)length; in T_UConverter_getNextUChar_UTF32_BE()
442 args->source = (const char *)(mySource + length); in T_UConverter_getNextUChar_UTF32_BE()
453 args->source = (const char *)(mySource + 4); in T_UConverter_getNextUChar_UTF32_BE()
458 uprv_memcpy(args->converter->toUBytes, mySource, 4); in T_UConverter_getNextUChar_UTF32_BE()
459 args->converter->toULength = 4; in T_UConverter_getNextUChar_UTF32_BE()
509 T_UConverter_toUnicode_UTF32_LE(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_LE() argument
512 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_LE()
513 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_LE()
514 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_LE()
515 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_LE()
516 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_LE()
520 if (args->converter->toUnicodeStatus && myTarget < targetLimit) in T_UConverter_toUnicode_UTF32_LE()
522 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_LE()
523 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_LE()
526 ch = args->converter->toUnicodeStatus - 1; in T_UConverter_toUnicode_UTF32_LE()
527 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_LE()
547 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_LE()
548 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_LE()
568 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE()
569 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_LE()
576 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_LE()
589 args->target = myTarget; in T_UConverter_toUnicode_UTF32_LE()
590 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_LE()
594 T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC() argument
597 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
598 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
599 int32_t *myOffsets = args->offsets; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
600 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
601 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
602 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
607 if (args->converter->toUnicodeStatus && myTarget < targetLimit) in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
609 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
610 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
613 ch = args->converter->toUnicodeStatus - 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
614 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
634 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
635 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
662 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
663 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
671 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
685 args->target = myTarget; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
686 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
687 args->offsets = myOffsets; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
691 T_UConverter_fromUnicode_UTF32_LE(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_LE() argument
694 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_LE()
696 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_LE()
697 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_LE()
708 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_LE()
710 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_LE()
712 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_LE()
713 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_LE()
715 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_LE()
718 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_LE()
721 if (args->converter->fromUChar32) in T_UConverter_fromUnicode_UTF32_LE()
723 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_LE()
724 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_LE()
746 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
753 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
754 if (args->flush) { in T_UConverter_fromUnicode_UTF32_LE()
765 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
784args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_LE()
795 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_LE()
796 args->source = mySource; in T_UConverter_fromUnicode_UTF32_LE()
800 T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC() argument
803 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
806 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
807 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
819 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
821 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
823 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
824 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
826 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
829 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
830 myOffsets = args->offsets; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
833 if (args->converter->fromUChar32) in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
835 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
836 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
859 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
866 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
867 if (args->flush) { in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
878 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
898args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
910 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
911 args->source = mySource; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
912 args->offsets = myOffsets; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
916 T_UConverter_getNextUChar_UTF32_LE(UConverterToUnicodeArgs* args, in T_UConverter_getNextUChar_UTF32_LE() argument
923 mySource = (const uint8_t *)args->source; in T_UConverter_getNextUChar_UTF32_LE()
924 if (mySource >= (const uint8_t *)args->sourceLimit) in T_UConverter_getNextUChar_UTF32_LE()
931 length = (int32_t)((const uint8_t *)args->sourceLimit - mySource); in T_UConverter_getNextUChar_UTF32_LE()
935 uprv_memcpy(args->converter->toUBytes, mySource, length); in T_UConverter_getNextUChar_UTF32_LE()
936 args->converter->toULength = (int8_t)length; in T_UConverter_getNextUChar_UTF32_LE()
937 args->source = (const char *)(mySource + length); in T_UConverter_getNextUChar_UTF32_LE()
948 args->source = (const char *)(mySource + 4); in T_UConverter_getNextUChar_UTF32_LE()
953 uprv_memcpy(args->converter->toUBytes, mySource, 4); in T_UConverter_getNextUChar_UTF32_LE()
954 args->converter->toULength = 4; in T_UConverter_getNextUChar_UTF32_LE()