• Home
  • Raw
  • Download

Lines Matching refs:args

45 T_UConverter_toUnicode_UTF32_BE(UConverterToUnicodeArgs * args,  in T_UConverter_toUnicode_UTF32_BE()  argument
48 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_BE()
49 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_BE()
50 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE()
51 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE()
52 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE()
56 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
57 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE()
58 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE()
60 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE()
61 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE()
77 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE()
78 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE()
99 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE()
100 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE()
107 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_BE()
119 args->target = myTarget; in T_UConverter_toUnicode_UTF32_BE()
120 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_BE()
124 T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() argument
127 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
128 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
129 int32_t *myOffsets = args->offsets; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
130 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
131 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
132 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
137 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
138 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
139 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
141 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
142 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
158 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
159 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
183 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
184 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
191 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
205 args->target = myTarget; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
206 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
207 args->offsets = myOffsets; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
211 T_UConverter_fromUnicode_UTF32_BE(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_BE() argument
214 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_BE()
216 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_BE()
217 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_BE()
228 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_BE()
230 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_BE()
232 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_BE()
233 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_BE()
235 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_BE()
238 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_BE()
241 if (args->converter->fromUChar32) { in T_UConverter_fromUnicode_UTF32_BE()
242 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_BE()
243 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_BE()
262 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
269 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
270 if (args->flush) { in T_UConverter_fromUnicode_UTF32_BE()
281 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
297args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_BE()
307 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_BE()
308 args->source = mySource; in T_UConverter_fromUnicode_UTF32_BE()
312 T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() argument
315 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
318 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
319 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
331 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
333 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
335 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
336 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
338 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
341 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
342 myOffsets = args->offsets; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
345 if (args->converter->fromUChar32) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
346 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
347 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
366 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
373 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
374 if (args->flush) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
385 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
402args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
413 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
414 args->source = mySource; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
415 args->offsets = myOffsets; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
419 T_UConverter_getNextUChar_UTF32_BE(UConverterToUnicodeArgs* args, in T_UConverter_getNextUChar_UTF32_BE() argument
426 mySource = (const uint8_t *)args->source; in T_UConverter_getNextUChar_UTF32_BE()
427 if (mySource >= (const uint8_t *)args->sourceLimit) in T_UConverter_getNextUChar_UTF32_BE()
434 length = (int32_t)((const uint8_t *)args->sourceLimit - mySource); in T_UConverter_getNextUChar_UTF32_BE()
438 uprv_memcpy(args->converter->toUBytes, mySource, length); in T_UConverter_getNextUChar_UTF32_BE()
439 args->converter->toULength = (int8_t)length; in T_UConverter_getNextUChar_UTF32_BE()
440 args->source = (const char *)(mySource + length); in T_UConverter_getNextUChar_UTF32_BE()
451 args->source = (const char *)(mySource + 4); in T_UConverter_getNextUChar_UTF32_BE()
456 uprv_memcpy(args->converter->toUBytes, mySource, 4); in T_UConverter_getNextUChar_UTF32_BE()
457 args->converter->toULength = 4; in T_UConverter_getNextUChar_UTF32_BE()
507 T_UConverter_toUnicode_UTF32_LE(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_LE() argument
510 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_LE()
511 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_LE()
512 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_LE()
513 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_LE()
514 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_LE()
518 if (args->converter->toUnicodeStatus && myTarget < targetLimit) in T_UConverter_toUnicode_UTF32_LE()
520 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_LE()
521 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_LE()
524 ch = args->converter->toUnicodeStatus - 1; in T_UConverter_toUnicode_UTF32_LE()
525 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_LE()
545 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_LE()
546 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_LE()
566 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE()
567 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_LE()
574 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_LE()
587 args->target = myTarget; in T_UConverter_toUnicode_UTF32_LE()
588 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_LE()
592 T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC() argument
595 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
596 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
597 int32_t *myOffsets = args->offsets; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
598 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
599 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
600 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
605 if (args->converter->toUnicodeStatus && myTarget < targetLimit) in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
607 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
608 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
611 ch = args->converter->toUnicodeStatus - 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
612 args->converter->toUnicodeStatus = 0; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
632 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
633 args->converter->toULength = (int8_t) i; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
660 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
661 args->converter->UCharErrorBufferLength = 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
669 args->converter->toULength = (int8_t)i; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
683 args->target = myTarget; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
684 args->source = (const char *) mySource; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
685 args->offsets = myOffsets; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
689 T_UConverter_fromUnicode_UTF32_LE(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_LE() argument
692 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_LE()
694 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_LE()
695 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_LE()
706 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_LE()
708 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_LE()
710 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_LE()
711 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_LE()
713 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_LE()
716 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_LE()
719 if (args->converter->fromUChar32) in T_UConverter_fromUnicode_UTF32_LE()
721 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_LE()
722 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_LE()
744 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
751 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
752 if (args->flush) { in T_UConverter_fromUnicode_UTF32_LE()
763 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
782args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_LE()
793 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_LE()
794 args->source = mySource; in T_UConverter_fromUnicode_UTF32_LE()
798 T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC(UConverterFromUnicodeArgs * args, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC() argument
801 const UChar *mySource = args->source; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
804 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
805 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
817 if(args->converter->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
819 ucnv_fromUWriteBytes(args->converter, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
821 &args->target, args->targetLimit, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
822 &args->offsets, -1, in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
824 args->converter->fromUnicodeStatus=0; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
827 myTarget = (unsigned char *) args->target; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
828 myOffsets = args->offsets; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
831 if (args->converter->fromUChar32) in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
833 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
834 args->converter->fromUChar32 = 0; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
857 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
864 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
865 if (args->flush) { in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
876 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
896args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = temp[indexToWrite]; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
908 args->target = (char *) myTarget; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
909 args->source = mySource; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
910 args->offsets = myOffsets; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
914 T_UConverter_getNextUChar_UTF32_LE(UConverterToUnicodeArgs* args, in T_UConverter_getNextUChar_UTF32_LE() argument
921 mySource = (const uint8_t *)args->source; in T_UConverter_getNextUChar_UTF32_LE()
922 if (mySource >= (const uint8_t *)args->sourceLimit) in T_UConverter_getNextUChar_UTF32_LE()
929 length = (int32_t)((const uint8_t *)args->sourceLimit - mySource); in T_UConverter_getNextUChar_UTF32_LE()
933 uprv_memcpy(args->converter->toUBytes, mySource, length); in T_UConverter_getNextUChar_UTF32_LE()
934 args->converter->toULength = (int8_t)length; in T_UConverter_getNextUChar_UTF32_LE()
935 args->source = (const char *)(mySource + length); in T_UConverter_getNextUChar_UTF32_LE()
946 args->source = (const char *)(mySource + 4); in T_UConverter_getNextUChar_UTF32_LE()
951 uprv_memcpy(args->converter->toUBytes, mySource, 4); in T_UConverter_getNextUChar_UTF32_LE()
952 args->converter->toULength = 4; in T_UConverter_getNextUChar_UTF32_LE()