Lines Matching refs:pArgs

35 _UTF16ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs,
48 _UTF16BEFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs, in _UTF16BEFromUnicodeWithOffsets() argument
59 source=pArgs->source; in _UTF16BEFromUnicodeWithOffsets()
60 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16BEFromUnicodeWithOffsets()
66 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets()
73 &pArgs->target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
74 &pArgs->offsets, -1, in _UTF16BEFromUnicodeWithOffsets()
79 target=pArgs->target; in _UTF16BEFromUnicodeWithOffsets()
80 if(target >= pArgs->targetLimit) { in _UTF16BEFromUnicodeWithOffsets()
85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets()
86 offsets=pArgs->offsets; in _UTF16BEFromUnicodeWithOffsets()
207 if(source<pArgs->sourceLimit) { in _UTF16BEFromUnicodeWithOffsets()
235 (char **)&target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
238 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets()
241 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16BEFromUnicodeWithOffsets()
246 pArgs->source=source; in _UTF16BEFromUnicodeWithOffsets()
247 pArgs->target=(char *)target; in _UTF16BEFromUnicodeWithOffsets()
248 pArgs->offsets=offsets; in _UTF16BEFromUnicodeWithOffsets()
252 _UTF16BEToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF16BEToUnicodeWithOffsets() argument
262 if(pArgs->converter->mode<8) { in _UTF16BEToUnicodeWithOffsets()
263 _UTF16ToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16BEToUnicodeWithOffsets()
267 cnv=pArgs->converter; in _UTF16BEToUnicodeWithOffsets()
268 source=(const uint8_t *)pArgs->source; in _UTF16BEToUnicodeWithOffsets()
269 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _UTF16BEToUnicodeWithOffsets()
275 target=pArgs->target; in _UTF16BEToUnicodeWithOffsets()
276 if(target >= pArgs->targetLimit) { in _UTF16BEToUnicodeWithOffsets()
281 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEToUnicodeWithOffsets()
282 offsets=pArgs->offsets; in _UTF16BEToUnicodeWithOffsets()
350 if(((const uint8_t *)pArgs->source-source)>=2) { in _UTF16BEToUnicodeWithOffsets()
364 pArgs->source=(const char *)source; in _UTF16BEToUnicodeWithOffsets()
365 pArgs->target=target; in _UTF16BEToUnicodeWithOffsets()
366 pArgs->offsets=offsets; in _UTF16BEToUnicodeWithOffsets()
484 pArgs->source=(const char *)source; in _UTF16BEToUnicodeWithOffsets()
485 pArgs->target=target; in _UTF16BEToUnicodeWithOffsets()
486 pArgs->offsets=offsets; in _UTF16BEToUnicodeWithOffsets()
490 _UTF16BEGetNextUChar(UConverterToUnicodeArgs *pArgs, UErrorCode *err) { in _UTF16BEGetNextUChar() argument
494 if(pArgs->converter->mode<8) { in _UTF16BEGetNextUChar()
498 s=(const uint8_t *)pArgs->source; in _UTF16BEGetNextUChar()
499 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF16BEGetNextUChar()
509 pArgs->converter->toUBytes[0]=*s++; in _UTF16BEGetNextUChar()
510 pArgs->converter->toULength=1; in _UTF16BEGetNextUChar()
511 pArgs->source=(const char *)s; in _UTF16BEGetNextUChar()
537 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16BEGetNextUChar()
539 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16BEGetNextUChar()
554 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16BEGetNextUChar()
555 pArgs->converter->toULength=2; in _UTF16BEGetNextUChar()
564 pArgs->source=(const char *)s; in _UTF16BEGetNextUChar()
586 UConverterLoadArgs *pArgs, in _UTF16BEOpen() argument
647 _UTF16LEFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs, in _UTF16LEFromUnicodeWithOffsets() argument
658 source=pArgs->source; in _UTF16LEFromUnicodeWithOffsets()
659 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16LEFromUnicodeWithOffsets()
665 cnv=pArgs->converter; in _UTF16LEFromUnicodeWithOffsets()
672 &pArgs->target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets()
673 &pArgs->offsets, -1, in _UTF16LEFromUnicodeWithOffsets()
678 target=pArgs->target; in _UTF16LEFromUnicodeWithOffsets()
679 if(target >= pArgs->targetLimit) { in _UTF16LEFromUnicodeWithOffsets()
684 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEFromUnicodeWithOffsets()
685 offsets=pArgs->offsets; in _UTF16LEFromUnicodeWithOffsets()
806 if(source<pArgs->sourceLimit) { in _UTF16LEFromUnicodeWithOffsets()
834 &target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets()
837 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16LEFromUnicodeWithOffsets()
840 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16LEFromUnicodeWithOffsets()
845 pArgs->source=source; in _UTF16LEFromUnicodeWithOffsets()
846 pArgs->target=target; in _UTF16LEFromUnicodeWithOffsets()
847 pArgs->offsets=offsets; in _UTF16LEFromUnicodeWithOffsets()
851 _UTF16LEToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF16LEToUnicodeWithOffsets() argument
861 if(pArgs->converter->mode<8) { in _UTF16LEToUnicodeWithOffsets()
862 _UTF16ToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16LEToUnicodeWithOffsets()
866 cnv=pArgs->converter; in _UTF16LEToUnicodeWithOffsets()
867 source=(const uint8_t *)pArgs->source; in _UTF16LEToUnicodeWithOffsets()
868 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _UTF16LEToUnicodeWithOffsets()
874 target=pArgs->target; in _UTF16LEToUnicodeWithOffsets()
875 if(target >= pArgs->targetLimit) { in _UTF16LEToUnicodeWithOffsets()
880 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEToUnicodeWithOffsets()
881 offsets=pArgs->offsets; in _UTF16LEToUnicodeWithOffsets()
949 if(((const uint8_t *)pArgs->source-source)>=2) { in _UTF16LEToUnicodeWithOffsets()
963 pArgs->source=(const char *)source; in _UTF16LEToUnicodeWithOffsets()
964 pArgs->target=target; in _UTF16LEToUnicodeWithOffsets()
965 pArgs->offsets=offsets; in _UTF16LEToUnicodeWithOffsets()
1083 pArgs->source=(const char *)source; in _UTF16LEToUnicodeWithOffsets()
1084 pArgs->target=target; in _UTF16LEToUnicodeWithOffsets()
1085 pArgs->offsets=offsets; in _UTF16LEToUnicodeWithOffsets()
1089 _UTF16LEGetNextUChar(UConverterToUnicodeArgs *pArgs, UErrorCode *err) { in _UTF16LEGetNextUChar() argument
1093 if(pArgs->converter->mode<8) { in _UTF16LEGetNextUChar()
1097 s=(const uint8_t *)pArgs->source; in _UTF16LEGetNextUChar()
1098 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF16LEGetNextUChar()
1108 pArgs->converter->toUBytes[0]=*s++; in _UTF16LEGetNextUChar()
1109 pArgs->converter->toULength=1; in _UTF16LEGetNextUChar()
1110 pArgs->source=(const char *)s; in _UTF16LEGetNextUChar()
1136 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16LEGetNextUChar()
1138 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16LEGetNextUChar()
1153 uint8_t *bytes=pArgs->converter->toUBytes; in _UTF16LEGetNextUChar()
1154 pArgs->converter->toULength=2; in _UTF16LEGetNextUChar()
1163 pArgs->source=(const char *)s; in _UTF16LEGetNextUChar()
1185 UConverterLoadArgs *pArgs, in _UTF16LEOpen() argument
1286 UConverterLoadArgs *pArgs, in _UTF16Open() argument
1289 if(UCNV_GET_VERSION(cnv)==2 && !pArgs->onlyTestIsLoadable) { in _UTF16Open()
1323 _UTF16ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF16ToUnicodeWithOffsets() argument
1325 UConverter *cnv=pArgs->converter; in _UTF16ToUnicodeWithOffsets()
1326 const char *source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1327 const char *sourceLimit=pArgs->sourceLimit; in _UTF16ToUnicodeWithOffsets()
1328 int32_t *offsets=pArgs->offsets; in _UTF16ToUnicodeWithOffsets()
1376 offsetDelta=(int32_t)(source-pArgs->source); in _UTF16ToUnicodeWithOffsets()
1379 if(source!=pArgs->source) { in _UTF16ToUnicodeWithOffsets()
1381 source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1401 pArgs->source=source+1; in _UTF16ToUnicodeWithOffsets()
1417 pArgs->source=source; in _UTF16ToUnicodeWithOffsets()
1418 _UTF16BEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1419 source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1423 pArgs->source=source; in _UTF16ToUnicodeWithOffsets()
1424 _UTF16LEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1425 source=pArgs->source; in _UTF16ToUnicodeWithOffsets()
1434 int32_t *offsetsLimit=pArgs->offsets; in _UTF16ToUnicodeWithOffsets()
1440 pArgs->source=source; in _UTF16ToUnicodeWithOffsets()
1442 if(source==sourceLimit && pArgs->flush) { in _UTF16ToUnicodeWithOffsets()
1448 _UTF16BEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1451 _UTF16LEToUnicodeWithOffsets(pArgs, pErrorCode); in _UTF16ToUnicodeWithOffsets()
1463 _UTF16GetNextUChar(UConverterToUnicodeArgs *pArgs, in _UTF16GetNextUChar() argument
1465 switch(pArgs->converter->mode) { in _UTF16GetNextUChar()
1467 return _UTF16BEGetNextUChar(pArgs, pErrorCode); in _UTF16GetNextUChar()
1469 return _UTF16LEGetNextUChar(pArgs, pErrorCode); in _UTF16GetNextUChar()