/external/chromium_org/third_party/icu/source/common/ |
ucnvlat1.c | 35 int32_t targetCapacity, length; 43 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 50 * for the minimum of the sourceLength and targetCapacity 53 if(length<=targetCapacity) { 54 targetCapacity=length; 58 length=targetCapacity; 61 if(targetCapacity>=8) { 65 loops=count=targetCapacity>>3; 66 length=targetCapacity&=0x7; 96 while(targetCapacity>0) [all...] |
ucnv_u16.c | 55 uint32_t targetCapacity, length, sourceIndex; 85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { 100 targetCapacity-=4; 114 if(count>targetCapacity) { 115 count=targetCapacity&~1; 118 targetCapacity-=count; 173 if(length>0 && targetCapacity>0) { 176 * it must be targetCapacity==1 because otherwise 193 targetCapacity+=2*count [all...] |
ucnvbocu.c | 390 int32_t targetCapacity; 404 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 419 if(c!=0 && targetCapacity>0) { 425 /* use only one loop counter variable, targetCapacity, not also source */ 427 if(targetCapacity>diff) { 428 targetCapacity=diff; 430 while(targetCapacity>0 && (c=*source)<0x3000) { 438 --targetCapacity; 446 --targetCapacity; 453 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target) [all...] |
ucnvscsu.c | [all...] |
ucnvmbcs.c | [all...] |
ucnv_u7.c | 216 int32_t length, targetCapacity; 262 targetCapacity=(int32_t)(targetLimit-target); 263 if(length>targetCapacity) { 264 length=targetCapacity; 451 int32_t length, targetCapacity, sourceIndex; 485 targetCapacity=(int32_t)(targetLimit-target); 486 if(length>targetCapacity) { 487 length=targetCapacity; 507 /* realign length and targetCapacity */ 873 int32_t length, targetCapacity; [all...] |
ucnv.c | [all...] |
ucnv_u8.c | 755 int32_t targetCapacity; 769 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); 786 } else if(targetCapacity<toULimit) { 812 if(count>targetCapacity) { 813 count=targetCapacity; [all...] |
unistr.cpp | 765 int32_t targetCapacity, 769 if(targetCapacity < 0 || (targetCapacity > 0 && target == NULL)) { 776 if(length <= targetCapacity) { 780 return u_terminateChars(target, targetCapacity, length, &status); [all...] |
/external/icu4c/common/ |
ucnvlat1.c | 36 int32_t targetCapacity, length; 44 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 51 * for the minimum of the sourceLength and targetCapacity 54 if(length<=targetCapacity) { 55 targetCapacity=length; 59 length=targetCapacity; 62 if(targetCapacity>=8) { 66 loops=count=targetCapacity>>3; 67 length=targetCapacity&=0x7; 97 while(targetCapacity>0) [all...] |
ucnv_u16.c | 55 uint32_t targetCapacity, length, sourceIndex; 85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { 100 targetCapacity-=4; 114 if(count>targetCapacity) { 115 count=targetCapacity&~1; 118 targetCapacity-=count; 173 if(length>0 && targetCapacity>0) { 176 * it must be targetCapacity==1 because otherwise 193 targetCapacity+=2*count [all...] |
ucnvbocu.cpp | 395 int32_t targetCapacity; 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 424 if(c!=0 && targetCapacity>0) { 430 /* use only one loop counter variable, targetCapacity, not also source */ 432 if(targetCapacity>diff) { 433 targetCapacity=diff; 435 while(targetCapacity>0 && (c=*source)<0x3000) { 443 --targetCapacity; 451 --targetCapacity; 458 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target) [all...] |
ucnvscsu.c | [all...] |
ucnvmbcs.c | [all...] |
ucnv_u7.c | 217 int32_t length, targetCapacity; 263 targetCapacity=(int32_t)(targetLimit-target); 264 if(length>targetCapacity) { 265 length=targetCapacity; 464 int32_t length, targetCapacity, sourceIndex; 499 targetCapacity=(int32_t)(targetLimit-target); 500 if(length>targetCapacity) { 501 length=targetCapacity; 521 /* realign length and targetCapacity */ [all...] |
ucnv.c | [all...] |
ucnv_u8.c | 758 int32_t targetCapacity; 771 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); 788 } else if(targetCapacity<toULimit) { 814 if(count>targetCapacity) { 815 count=targetCapacity; [all...] |
unistr.cpp | 811 int32_t targetCapacity, 815 if(targetCapacity < 0 || (targetCapacity > 0 && target == NULL)) { 822 if(length <= targetCapacity) { 826 return u_terminateChars(target, targetCapacity, length, &status); [all...] |
/external/icu4c/tools/toolutil/ |
udbgutil.cpp | 367 typedef int32_t U_CALLCONV USystemParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status); 378 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) { 380 return u_terminateChars(target, targetCapacity, 0, status); 384 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { 385 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status); 389 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); 391 return u_terminateChars(target, targetCapacity, len, status); 396 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCode *status) { 402 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); 408 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); [all...] |
/external/chromium_org/third_party/icu/source/common/unicode/ |
ucnv.h | [all...] |
unistr.h | [all...] |
/external/icu4c/common/unicode/ |
ucnv.h | [all...] |
unistr.h | [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
ccapitst.c | 317 int32_t targetcapacity; local 457 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; 465 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err); 468 targetLimit=targetCapacity+1; 470 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); 476 for(i=0; i<targetCapacity; i++){ [all...] |
/external/icu4c/test/cintltst/ |
ccapitst.c | 274 int32_t targetcapacity; local 414 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; 422 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err); 425 targetLimit=targetCapacity+1; 427 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); 433 for(i=0; i<targetCapacity; i++){ [all...] |