/external/icu/icu4c/source/common/ |
D | ucnvlat1.cpp | 40 int32_t targetCapacity, length; in _Latin1ToUnicodeWithOffsets() local 48 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 58 if(length<=targetCapacity) { in _Latin1ToUnicodeWithOffsets() 59 targetCapacity=length; in _Latin1ToUnicodeWithOffsets() 63 length=targetCapacity; in _Latin1ToUnicodeWithOffsets() 66 if(targetCapacity>=8) { in _Latin1ToUnicodeWithOffsets() 70 loops=count=targetCapacity>>3; in _Latin1ToUnicodeWithOffsets() 71 length=targetCapacity&=0x7; in _Latin1ToUnicodeWithOffsets() 101 while(targetCapacity>0) { in _Latin1ToUnicodeWithOffsets() 103 --targetCapacity; in _Latin1ToUnicodeWithOffsets() [all …]
|
D | ucnvbocu.cpp | 397 int32_t targetCapacity; in _Bocu1FromUnicodeWithOffsets() local 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets() 424 if(c!=0 && targetCapacity>0) { in _Bocu1FromUnicodeWithOffsets() 432 if(targetCapacity>diff) { in _Bocu1FromUnicodeWithOffsets() 433 targetCapacity=diff; in _Bocu1FromUnicodeWithOffsets() 435 while(targetCapacity>0 && (c=*source)<0x3000) { in _Bocu1FromUnicodeWithOffsets() 443 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 451 --targetCapacity; in _Bocu1FromUnicodeWithOffsets() 458 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); in _Bocu1FromUnicodeWithOffsets() 463 if(targetCapacity>0) { in _Bocu1FromUnicodeWithOffsets() [all …]
|
D | ucnv_u16.cpp | 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() [all …]
|
D | ucnvscsu.cpp | 1017 int32_t targetCapacity; in _SCSUFromUnicodeWithOffsets() local 1044 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _SCSUFromUnicodeWithOffsets() 1061 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() 1068 if(targetCapacity<=0) { in _SCSUFromUnicodeWithOffsets() 1082 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1090 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1103 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1141 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1167 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1238 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() [all …]
|
D | ucnvmbcs.cpp | 2190 int32_t targetCapacity, length; in ucnv_MBCSSingleToBMPWithOffsets() local 2205 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in ucnv_MBCSSingleToBMPWithOffsets() 2223 if(length<targetCapacity) { in ucnv_MBCSSingleToBMPWithOffsets() 2224 targetCapacity=length; in ucnv_MBCSSingleToBMPWithOffsets() 2231 if(targetCapacity>=16) { in ucnv_MBCSSingleToBMPWithOffsets() 2234 loops=count=targetCapacity>>4; in ucnv_MBCSSingleToBMPWithOffsets() 2278 targetCapacity-=16*count; in ucnv_MBCSSingleToBMPWithOffsets() 2306 while(targetCapacity > 0 && source < sourceLimit) { in ucnv_MBCSSingleToBMPWithOffsets() 2314 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() 2327 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() [all …]
|
D | ucnv_u7.cpp | 222 int32_t length, targetCapacity; in _UTF7ToUnicodeWithOffsets() local 268 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 269 if(length>targetCapacity) { in _UTF7ToUnicodeWithOffsets() 270 length=targetCapacity; in _UTF7ToUnicodeWithOffsets() 469 int32_t length, targetCapacity, sourceIndex; in _UTF7FromUnicodeWithOffsets() local 504 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 505 if(length>targetCapacity) { in _UTF7FromUnicodeWithOffsets() 506 length=targetCapacity; in _UTF7FromUnicodeWithOffsets() 906 int32_t length, targetCapacity; in _IMAPToUnicodeWithOffsets() local 953 targetCapacity=(int32_t)(targetLimit-target); in _IMAPToUnicodeWithOffsets() [all …]
|
D | ucnv.cpp | 2398 char *target, int32_t targetCapacity, in ucnv_internalConvert() argument 2418 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_internalConvert() 2425 if(targetCapacity>0) { in ucnv_internalConvert() 2427 targetLimit=target+targetCapacity; in ucnv_internalConvert() 2443 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || targetCapacity==0) in ucnv_internalConvert() 2462 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert() 2471 char *target, int32_t targetCapacity, in ucnv_convert() argument 2483 targetCapacity<0 || (targetCapacity>0 && target==NULL) in ucnv_convert() 2491 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_convert() 2507 target, targetCapacity, in ucnv_convert() [all …]
|
D | ucnv_u8.cpp | 657 int32_t targetCapacity; in ucnv_UTF8FromUTF8() local 670 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_UTF8FromUTF8() 688 } else if(targetCapacity<toULimit) { in ucnv_UTF8FromUTF8() 699 if(count>targetCapacity) { in ucnv_UTF8FromUTF8() 700 count=targetCapacity; in ucnv_UTF8FromUTF8()
|
D | unistr.cpp | 897 int32_t targetCapacity, in extract() argument 901 if(targetCapacity < 0 || (targetCapacity > 0 && target == NULL)) { in extract() 908 if(length <= targetCapacity) { in extract() 912 return u_terminateChars(target, targetCapacity, length, &status); in extract()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | udbgutil.cpp | 383 …mParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *s… 394 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *sta… in paramEmpty() argument 396 return u_terminateChars(target, targetCapacity, 0, status); in paramEmpty() 400 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { in paramStatic() argument 401 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status); in paramStatic() 405 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic() 407 return u_terminateChars(target, targetCapacity, len, status); in paramStatic() 412 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCo… in stringToStringBuffer() argument 418 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer() 424 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer() [all …]
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetBOCU1.java | 240 int targetCapacity; field in CharsetBOCU1.CharsetEncoderBOCU 398 targetCapacity = target.limit() - target.position(); in encodeLoop() 411 if(c!=0 && targetCapacity>0){ in encodeLoop() 437 if(targetCapacity>diff){ in fastSingle() 438 targetCapacity = diff; in fastSingle() 440 while(targetCapacity>0 && (c=source.get(source.position()))<0x3000){ in fastSingle() 450 --targetCapacity; in fastSingle() 460 --targetCapacity; in fastSingle() 491 targetCapacity = target.limit()-target.position(); in regularLoop() 496 if(LoopAfterTrail || targetCapacity>0){ in regularLoop() [all …]
|
D | CharsetSCSU.java | 636 private int targetCapacity; field in CharsetSCSU.CharsetEncoderSCSU 659 targetCapacity = target.limit()-target.position(); in encodeLoop() 770 if(c!=0 && targetCapacity>0 && !AfterGetTrail){ in loop() 776 if(targetCapacity<=0 && !AfterGetTrail){ in loop() 793 --targetCapacity; in loop() 801 --targetCapacity; in loop() 815 --targetCapacity; in loop() 844 --targetCapacity; in loop() 875 --targetCapacity; in loop() 956 if(c!=0 && targetCapacity>0 && !AfterGetTrailUnicode){ in loop() [all …]
|
D | CharsetUTF7.java | 501 int length, targetCapacity, sourceIndex; in encodeLoop() local 521 targetCapacity=target.remaining(); in encodeLoop() 522 if(length > targetCapacity) { in encodeLoop() 523 length=targetCapacity; in encodeLoop()
|
D | CharsetMBCS.java | 2365 int targetCapacity, length; in cnvMBCSSingleToBMPWithOffsets() local 2375 targetCapacity = target.remaining(); in cnvMBCSSingleToBMPWithOffsets() 2392 if (length < targetCapacity) { in cnvMBCSSingleToBMPWithOffsets() 2393 targetCapacity = length; in cnvMBCSSingleToBMPWithOffsets() 2397 while (targetCapacity > 0 && sourceArrayIndex < source.limit()) { in cnvMBCSSingleToBMPWithOffsets() 2405 --targetCapacity; in cnvMBCSSingleToBMPWithOffsets() 2418 --targetCapacity; in cnvMBCSSingleToBMPWithOffsets() 2460 targetCapacity = target.remaining(); in cnvMBCSSingleToBMPWithOffsets() 2462 if (length < targetCapacity) { in cnvMBCSSingleToBMPWithOffsets() 2463 targetCapacity = length; in cnvMBCSSingleToBMPWithOffsets() [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | ucnv.h | 1571 int32_t targetCapacity, 1624 char *target, int32_t targetCapacity, 1676 char *target, int32_t targetCapacity,
|
/external/icu/icu4c/source/common/unicode/ |
D | ucnv.h | 1571 int32_t targetCapacity, 1624 char *target, int32_t targetCapacity, 1676 char *target, int32_t targetCapacity,
|
D | unistr.h | 1554 int32_t targetCapacity,
|
/external/icu/libicu/cts_headers/unicode/ |
D | ucnv.h | 1571 int32_t targetCapacity, 1624 char *target, int32_t targetCapacity, 1676 char *target, int32_t targetCapacity,
|
D | unistr.h | 1554 int32_t targetCapacity,
|
/external/icu/libandroidicu/static_shim/ |
D | shim.cpp | 256 …onverterName, const char * fromConverterName, char * target, int32_t targetCapacity, const char * … in ucnv_convert_android() argument 257 …return ucnv_convert(toConverterName, fromConverterName, target, targetCapacity, source, sourceLeng… in ucnv_convert_android()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 417 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local 425 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourc… in TestConvert() 428 targetLimit=targetCapacity+1; in TestConvert() 430 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sou… in TestConvert() 436 for(i=0; i<targetCapacity; i++){ in TestConvert()
|
/external/antlr/runtime/ObjC/Framework/ |
D | HashMap.m | 1337 NSInteger targetCapacity = (NSInteger)(numKeysToBeAdded / loadFactor + 1); 1338 if (targetCapacity > MAXIMUM_CAPACITY) 1339 targetCapacity = MAXIMUM_CAPACITY; 1342 while (newCapacity < targetCapacity)
|