Lines Matching refs:pArgs

37 _UTF16ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs,
50 _UTF16BEFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs, in _UTF16BEFromUnicodeWithOffsets() argument
61 source=pArgs->source; in _UTF16BEFromUnicodeWithOffsets()
62 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16BEFromUnicodeWithOffsets()
68 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets()
75 &pArgs->target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
76 &pArgs->offsets, -1, in _UTF16BEFromUnicodeWithOffsets()
81 target=pArgs->target; in _UTF16BEFromUnicodeWithOffsets()
82 if(target >= pArgs->targetLimit) { in _UTF16BEFromUnicodeWithOffsets()
87 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets()
88 offsets=pArgs->offsets; in _UTF16BEFromUnicodeWithOffsets()
209 if(source<pArgs->sourceLimit) { in _UTF16BEFromUnicodeWithOffsets()
237 (char **)&target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
240 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets()
243 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16BEFromUnicodeWithOffsets()
248 pArgs->source=source; in _UTF16BEFromUnicodeWithOffsets()
249 pArgs->target=(char *)target; in _UTF16BEFromUnicodeWithOffsets()
250 pArgs->offsets=offsets; in _UTF16BEFromUnicodeWithOffsets()
254 _UTF16BEToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF16BEToUnicodeWithOffsets() argument
264 if(pArgs->converter->mode<8) { in _UTF16BEToUnicodeWithOffsets()
265 _UTF16ToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16BEToUnicodeWithOffsets()
269 cnv=pArgs->converter; in _UTF16BEToUnicodeWithOffsets()
270 source=(const uint8_t *)pArgs->source; in _UTF16BEToUnicodeWithOffsets()
271 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _UTF16BEToUnicodeWithOffsets()
277 target=pArgs->target; in _UTF16BEToUnicodeWithOffsets()
278 if(target >= pArgs->targetLimit) { in _UTF16BEToUnicodeWithOffsets()
283 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEToUnicodeWithOffsets()
284 offsets=pArgs->offsets; in _UTF16BEToUnicodeWithOffsets()
352 if(((const uint8_t *)pArgs->source-source)>=2) { in _UTF16BEToUnicodeWithOffsets()
366 pArgs->source=(const char *)source; in _UTF16BEToUnicodeWithOffsets()
367 pArgs->target=target; in _UTF16BEToUnicodeWithOffsets()
368 pArgs->offsets=offsets; in _UTF16BEToUnicodeWithOffsets()
486 pArgs->source=(const char *)source; in _UTF16BEToUnicodeWithOffsets()
487 pArgs->target=target; in _UTF16BEToUnicodeWithOffsets()
488 pArgs->offsets=offsets; in _UTF16BEToUnicodeWithOffsets()
492 _UTF16BEGetNextUChar(UConverterToUnicodeArgs *pArgs, UErrorCode *err) { in _UTF16BEGetNextUChar() argument
496 if(pArgs->converter->mode<8) { in _UTF16BEGetNextUChar()
500 s=(const uint8_t *)pArgs->source; in _UTF16BEGetNextUChar()
501 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF16BEGetNextUChar()
511 pArgs->converter->toUBytes[0]=*s++; in _UTF16BEGetNextUChar()
512 pArgs->converter->toULength=1; in _UTF16BEGetNextUChar()
513 pArgs->source=(const char *)s; in _UTF16BEGetNextUChar()
539 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16BEGetNextUChar()
541 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16BEGetNextUChar()
556 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16BEGetNextUChar()
557 pArgs->converter->toULength=2; in _UTF16BEGetNextUChar()
566 pArgs->source=(const char *)s; in _UTF16BEGetNextUChar()
588 UConverterLoadArgs *pArgs, in _UTF16BEOpen() argument
649 _UTF16LEFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs, in _UTF16LEFromUnicodeWithOffsets() argument
660 source=pArgs->source; in _UTF16LEFromUnicodeWithOffsets()
661 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16LEFromUnicodeWithOffsets()
667 cnv=pArgs->converter; in _UTF16LEFromUnicodeWithOffsets()
674 &pArgs->target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets()
675 &pArgs->offsets, -1, in _UTF16LEFromUnicodeWithOffsets()
680 target=pArgs->target; in _UTF16LEFromUnicodeWithOffsets()
681 if(target >= pArgs->targetLimit) { in _UTF16LEFromUnicodeWithOffsets()
686 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEFromUnicodeWithOffsets()
687 offsets=pArgs->offsets; in _UTF16LEFromUnicodeWithOffsets()
808 if(source<pArgs->sourceLimit) { in _UTF16LEFromUnicodeWithOffsets()
836 &target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets()
839 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16LEFromUnicodeWithOffsets()
842 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16LEFromUnicodeWithOffsets()
847 pArgs->source=source; in _UTF16LEFromUnicodeWithOffsets()
848 pArgs->target=target; in _UTF16LEFromUnicodeWithOffsets()
849 pArgs->offsets=offsets; in _UTF16LEFromUnicodeWithOffsets()
853 _UTF16LEToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF16LEToUnicodeWithOffsets() argument
863 if(pArgs->converter->mode<8) { in _UTF16LEToUnicodeWithOffsets()
864 _UTF16ToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16LEToUnicodeWithOffsets()
868 cnv=pArgs->converter; in _UTF16LEToUnicodeWithOffsets()
869 source=(const uint8_t *)pArgs->source; in _UTF16LEToUnicodeWithOffsets()
870 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _UTF16LEToUnicodeWithOffsets()
876 target=pArgs->target; in _UTF16LEToUnicodeWithOffsets()
877 if(target >= pArgs->targetLimit) { in _UTF16LEToUnicodeWithOffsets()
882 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEToUnicodeWithOffsets()
883 offsets=pArgs->offsets; in _UTF16LEToUnicodeWithOffsets()
951 if(((const uint8_t *)pArgs->source-source)>=2) { in _UTF16LEToUnicodeWithOffsets()
965 pArgs->source=(const char *)source; in _UTF16LEToUnicodeWithOffsets()
966 pArgs->target=target; in _UTF16LEToUnicodeWithOffsets()
967 pArgs->offsets=offsets; in _UTF16LEToUnicodeWithOffsets()
1085 pArgs->source=(const char *)source; in _UTF16LEToUnicodeWithOffsets()
1086 pArgs->target=target; in _UTF16LEToUnicodeWithOffsets()
1087 pArgs->offsets=offsets; in _UTF16LEToUnicodeWithOffsets()
1091 _UTF16LEGetNextUChar(UConverterToUnicodeArgs *pArgs, UErrorCode *err) { in _UTF16LEGetNextUChar() argument
1095 if(pArgs->converter->mode<8) { in _UTF16LEGetNextUChar()
1099 s=(const uint8_t *)pArgs->source; in _UTF16LEGetNextUChar()
1100 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF16LEGetNextUChar()
1110 pArgs->converter->toUBytes[0]=*s++; in _UTF16LEGetNextUChar()
1111 pArgs->converter->toULength=1; in _UTF16LEGetNextUChar()
1112 pArgs->source=(const char *)s; in _UTF16LEGetNextUChar()
1138 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16LEGetNextUChar()
1140 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16LEGetNextUChar()
1155 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16LEGetNextUChar()
1156 pArgs->converter->toULength=2; in _UTF16LEGetNextUChar()
1165 pArgs->source=(const char *)s; in _UTF16LEGetNextUChar()
1187 UConverterLoadArgs *pArgs, in _UTF16LEOpen() argument
1288 UConverterLoadArgs *pArgs, in _UTF16Open() argument
1291 if(UCNV_GET_VERSION(cnv)==2 && !pArgs->onlyTestIsLoadable) { in _UTF16Open()
1325 _UTF16ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF16ToUnicodeWithOffsets() argument
1327 UConverter *cnv=pArgs->converter; in _UTF16ToUnicodeWithOffsets()
1328 const char *source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1329 const char *sourceLimit=pArgs->sourceLimit; in _UTF16ToUnicodeWithOffsets()
1330 int32_t *offsets=pArgs->offsets; in _UTF16ToUnicodeWithOffsets()
1378 offsetDelta=(int32_t)(source-pArgs->source); in _UTF16ToUnicodeWithOffsets()
1381 if(source!=pArgs->source) { in _UTF16ToUnicodeWithOffsets()
1383 source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1403 pArgs->source=source+1; in _UTF16ToUnicodeWithOffsets()
1419 pArgs->source=source; in _UTF16ToUnicodeWithOffsets()
1420 _UTF16BEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1421 source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1425 pArgs->source=source; in _UTF16ToUnicodeWithOffsets()
1426 _UTF16LEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1427 source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1436 int32_t *offsetsLimit=pArgs->offsets; in _UTF16ToUnicodeWithOffsets()
1442 pArgs->source=source; in _UTF16ToUnicodeWithOffsets()
1444 if(source==sourceLimit && pArgs->flush) { in _UTF16ToUnicodeWithOffsets()
1450 _UTF16BEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1453 _UTF16LEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1465 _UTF16GetNextUChar(UConverterToUnicodeArgs *pArgs, in _UTF16GetNextUChar() argument
1467 switch(pArgs->converter->mode) { in _UTF16GetNextUChar()
1469 return _UTF16BEGetNextUChar(pArgs, pErrorCode); in _UTF16GetNextUChar()
1471 return _UTF16LEGetNextUChar(pArgs, pErrorCode); in _UTF16GetNextUChar()