Lines Matching refs:targetCapacity
59 uint32_t targetCapacity, length, sourceIndex; in _UTF16BEFromUnicodeWithOffsets() local
89 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets()
95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets()
104 targetCapacity-=4; in _UTF16BEFromUnicodeWithOffsets()
118 if(count>targetCapacity) { in _UTF16BEFromUnicodeWithOffsets()
119 count=targetCapacity&~1; in _UTF16BEFromUnicodeWithOffsets()
122 targetCapacity-=count; in _UTF16BEFromUnicodeWithOffsets()
177 if(length>0 && targetCapacity>0) { in _UTF16BEFromUnicodeWithOffsets()
197 targetCapacity+=2*count; in _UTF16BEFromUnicodeWithOffsets()
242 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets()
245 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16BEFromUnicodeWithOffsets()
263 uint32_t targetCapacity, length, count, sourceIndex; in _UTF16BEToUnicodeWithOffsets() local
285 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEToUnicodeWithOffsets()
316 --targetCapacity; in _UTF16BEToUnicodeWithOffsets()
333 if(targetCapacity>=2) { in _UTF16BEToUnicodeWithOffsets()
339 targetCapacity-=2; in _UTF16BEToUnicodeWithOffsets()
341 targetCapacity=0; in _UTF16BEToUnicodeWithOffsets()
379 count=2*targetCapacity; in _UTF16BEToUnicodeWithOffsets()
386 targetCapacity-=count; in _UTF16BEToUnicodeWithOffsets()
434 targetCapacity+=count; in _UTF16BEToUnicodeWithOffsets()
478 if(targetCapacity==0) { in _UTF16BEToUnicodeWithOffsets()
660 uint32_t targetCapacity, length, sourceIndex; in _UTF16LEFromUnicodeWithOffsets() local
690 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEFromUnicodeWithOffsets()
696 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16LEFromUnicodeWithOffsets()
705 targetCapacity-=4; in _UTF16LEFromUnicodeWithOffsets()
719 if(count>targetCapacity) { in _UTF16LEFromUnicodeWithOffsets()
720 count=targetCapacity&~1; in _UTF16LEFromUnicodeWithOffsets()
723 targetCapacity-=count; in _UTF16LEFromUnicodeWithOffsets()
778 if(length>0 && targetCapacity>0) { in _UTF16LEFromUnicodeWithOffsets()
798 targetCapacity+=2*count; in _UTF16LEFromUnicodeWithOffsets()
843 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16LEFromUnicodeWithOffsets()
846 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16LEFromUnicodeWithOffsets()
864 uint32_t targetCapacity, length, count, sourceIndex; in _UTF16LEToUnicodeWithOffsets() local
886 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEToUnicodeWithOffsets()
917 --targetCapacity; in _UTF16LEToUnicodeWithOffsets()
934 if(targetCapacity>=2) { in _UTF16LEToUnicodeWithOffsets()
940 targetCapacity-=2; in _UTF16LEToUnicodeWithOffsets()
942 targetCapacity=0; in _UTF16LEToUnicodeWithOffsets()
980 count=2*targetCapacity; in _UTF16LEToUnicodeWithOffsets()
987 targetCapacity-=count; in _UTF16LEToUnicodeWithOffsets()
1035 targetCapacity+=count; in _UTF16LEToUnicodeWithOffsets()
1079 if(targetCapacity==0) { in _UTF16LEToUnicodeWithOffsets()