/external/icu/icu4c/source/common/ |
D | ucnvlat1.c | 36 int32_t targetCapacity, length; in _Latin1ToUnicodeWithOffsets() local 44 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 54 if(length<=targetCapacity) { in _Latin1ToUnicodeWithOffsets() 55 targetCapacity=length; in _Latin1ToUnicodeWithOffsets() 59 length=targetCapacity; in _Latin1ToUnicodeWithOffsets() 62 if(targetCapacity>=8) { in _Latin1ToUnicodeWithOffsets() 66 loops=count=targetCapacity>>3; in _Latin1ToUnicodeWithOffsets() 67 length=targetCapacity&=0x7; in _Latin1ToUnicodeWithOffsets() 97 while(targetCapacity>0) { in _Latin1ToUnicodeWithOffsets() 99 --targetCapacity; in _Latin1ToUnicodeWithOffsets() [all …]
|
D | ucnvbocu.cpp | 395 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.c | 55 uint32_t targetCapacity, length, sourceIndex; in _UTF16BEFromUnicodeWithOffsets() local 85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets() 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 100 targetCapacity-=4; in _UTF16BEFromUnicodeWithOffsets() 114 if(count>targetCapacity) { in _UTF16BEFromUnicodeWithOffsets() 115 count=targetCapacity&~1; in _UTF16BEFromUnicodeWithOffsets() 118 targetCapacity-=count; in _UTF16BEFromUnicodeWithOffsets() 173 if(length>0 && targetCapacity>0) { in _UTF16BEFromUnicodeWithOffsets() 193 targetCapacity+=2*count; in _UTF16BEFromUnicodeWithOffsets() 238 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets() [all …]
|
D | ucnvscsu.c | 1015 int32_t targetCapacity; in _SCSUFromUnicodeWithOffsets() local 1042 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _SCSUFromUnicodeWithOffsets() 1059 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() 1066 if(targetCapacity<=0) { in _SCSUFromUnicodeWithOffsets() 1080 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1088 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1101 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1139 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1165 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1236 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() [all …]
|
D | ucnvmbcs.c | 2042 int32_t targetCapacity, length; in ucnv_MBCSSingleToBMPWithOffsets() local 2057 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in ucnv_MBCSSingleToBMPWithOffsets() 2075 if(length<targetCapacity) { in ucnv_MBCSSingleToBMPWithOffsets() 2076 targetCapacity=length; in ucnv_MBCSSingleToBMPWithOffsets() 2083 if(targetCapacity>=16) { in ucnv_MBCSSingleToBMPWithOffsets() 2086 loops=count=targetCapacity>>4; in ucnv_MBCSSingleToBMPWithOffsets() 2130 targetCapacity-=16*count; in ucnv_MBCSSingleToBMPWithOffsets() 2158 while(targetCapacity > 0 && source < sourceLimit) { in ucnv_MBCSSingleToBMPWithOffsets() 2166 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() 2179 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() [all …]
|
D | ucnv_u7.c | 217 int32_t length, targetCapacity; in _UTF7ToUnicodeWithOffsets() local 263 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 264 if(length>targetCapacity) { in _UTF7ToUnicodeWithOffsets() 265 length=targetCapacity; in _UTF7ToUnicodeWithOffsets() 464 int32_t length, targetCapacity, sourceIndex; in _UTF7FromUnicodeWithOffsets() local 499 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 500 if(length>targetCapacity) { in _UTF7FromUnicodeWithOffsets() 501 length=targetCapacity; in _UTF7FromUnicodeWithOffsets() 899 int32_t length, targetCapacity; in _IMAPToUnicodeWithOffsets() local 946 targetCapacity=(int32_t)(targetLimit-target); in _IMAPToUnicodeWithOffsets() [all …]
|
D | ucnv.c | 2414 char *target, int32_t targetCapacity, in ucnv_internalConvert() argument 2434 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_internalConvert() 2441 if(targetCapacity>0) { in ucnv_internalConvert() 2443 targetLimit=target+targetCapacity; in ucnv_internalConvert() 2459 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || targetCapacity==0) in ucnv_internalConvert() 2478 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert() 2487 char *target, int32_t targetCapacity, in ucnv_convert() argument 2499 targetCapacity<0 || (targetCapacity>0 && target==NULL) in ucnv_convert() 2507 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_convert() 2523 target, targetCapacity, in ucnv_convert() [all …]
|
D | ucnv_u8.c | 758 int32_t targetCapacity; in ucnv_UTF8FromUTF8() local 771 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_UTF8FromUTF8() 788 } else if(targetCapacity<toULimit) { in ucnv_UTF8FromUTF8() 814 if(count>targetCapacity) { in ucnv_UTF8FromUTF8() 815 count=targetCapacity; in ucnv_UTF8FromUTF8()
|
D | unistr.cpp | 807 int32_t targetCapacity, in extract() argument 811 if(targetCapacity < 0 || (targetCapacity > 0 && target == NULL)) { in extract() 818 if(length <= targetCapacity) { in extract() 822 return u_terminateChars(target, targetCapacity, length, &status); in extract()
|
/external/chromium_org/third_party/icu/source/common/ |
D | ucnvlat1.c | 36 int32_t targetCapacity, length; in _Latin1ToUnicodeWithOffsets() local 44 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 54 if(length<=targetCapacity) { in _Latin1ToUnicodeWithOffsets() 55 targetCapacity=length; in _Latin1ToUnicodeWithOffsets() 59 length=targetCapacity; in _Latin1ToUnicodeWithOffsets() 62 if(targetCapacity>=8) { in _Latin1ToUnicodeWithOffsets() 66 loops=count=targetCapacity>>3; in _Latin1ToUnicodeWithOffsets() 67 length=targetCapacity&=0x7; in _Latin1ToUnicodeWithOffsets() 97 while(targetCapacity>0) { in _Latin1ToUnicodeWithOffsets() 99 --targetCapacity; in _Latin1ToUnicodeWithOffsets() [all …]
|
D | ucnvbocu.cpp | 395 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.c | 55 uint32_t targetCapacity, length, sourceIndex; in _UTF16BEFromUnicodeWithOffsets() local 85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets() 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 100 targetCapacity-=4; in _UTF16BEFromUnicodeWithOffsets() 114 if(count>targetCapacity) { in _UTF16BEFromUnicodeWithOffsets() 115 count=targetCapacity&~1; in _UTF16BEFromUnicodeWithOffsets() 118 targetCapacity-=count; in _UTF16BEFromUnicodeWithOffsets() 173 if(length>0 && targetCapacity>0) { in _UTF16BEFromUnicodeWithOffsets() 193 targetCapacity+=2*count; in _UTF16BEFromUnicodeWithOffsets() 238 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets() [all …]
|
D | ucnvscsu.c | 1015 int32_t targetCapacity; in _SCSUFromUnicodeWithOffsets() local 1042 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _SCSUFromUnicodeWithOffsets() 1059 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() 1066 if(targetCapacity<=0) { in _SCSUFromUnicodeWithOffsets() 1080 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1088 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1101 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1139 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1165 --targetCapacity; in _SCSUFromUnicodeWithOffsets() 1236 if(c!=0 && targetCapacity>0) { in _SCSUFromUnicodeWithOffsets() [all …]
|
D | ucnvmbcs.c | 2042 int32_t targetCapacity, length; in ucnv_MBCSSingleToBMPWithOffsets() local 2057 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in ucnv_MBCSSingleToBMPWithOffsets() 2075 if(length<targetCapacity) { in ucnv_MBCSSingleToBMPWithOffsets() 2076 targetCapacity=length; in ucnv_MBCSSingleToBMPWithOffsets() 2083 if(targetCapacity>=16) { in ucnv_MBCSSingleToBMPWithOffsets() 2086 loops=count=targetCapacity>>4; in ucnv_MBCSSingleToBMPWithOffsets() 2130 targetCapacity-=16*count; in ucnv_MBCSSingleToBMPWithOffsets() 2158 while(targetCapacity > 0 && source < sourceLimit) { in ucnv_MBCSSingleToBMPWithOffsets() 2166 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() 2179 --targetCapacity; in ucnv_MBCSSingleToBMPWithOffsets() [all …]
|
D | ucnv_u7.c | 217 int32_t length, targetCapacity; in _UTF7ToUnicodeWithOffsets() local 263 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 264 if(length>targetCapacity) { in _UTF7ToUnicodeWithOffsets() 265 length=targetCapacity; in _UTF7ToUnicodeWithOffsets() 464 int32_t length, targetCapacity, sourceIndex; in _UTF7FromUnicodeWithOffsets() local 499 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 500 if(length>targetCapacity) { in _UTF7FromUnicodeWithOffsets() 501 length=targetCapacity; in _UTF7FromUnicodeWithOffsets() 899 int32_t length, targetCapacity; in _IMAPToUnicodeWithOffsets() local 946 targetCapacity=(int32_t)(targetLimit-target); in _IMAPToUnicodeWithOffsets() [all …]
|
D | ucnv.c | 2414 char *target, int32_t targetCapacity, in ucnv_internalConvert() argument 2434 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_internalConvert() 2441 if(targetCapacity>0) { in ucnv_internalConvert() 2443 targetLimit=target+targetCapacity; in ucnv_internalConvert() 2459 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || targetCapacity==0) in ucnv_internalConvert() 2478 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert() 2487 char *target, int32_t targetCapacity, in ucnv_convert() argument 2499 targetCapacity<0 || (targetCapacity>0 && target==NULL) in ucnv_convert() 2507 return u_terminateChars(target, targetCapacity, 0, pErrorCode); in ucnv_convert() 2523 target, targetCapacity, in ucnv_convert() [all …]
|
D | ucnv_u8.c | 767 int32_t targetCapacity; in ucnv_UTF8FromUTF8() local 780 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_UTF8FromUTF8() 797 } else if(targetCapacity<toULimit) { in ucnv_UTF8FromUTF8() 823 if(count>targetCapacity) { in ucnv_UTF8FromUTF8() 824 count=targetCapacity; in ucnv_UTF8FromUTF8()
|
D | unistr.cpp | 807 int32_t targetCapacity, in extract() argument 811 if(targetCapacity < 0 || (targetCapacity > 0 && target == NULL)) { in extract() 818 if(length <= targetCapacity) { in extract() 822 return u_terminateChars(target, targetCapacity, length, &status); in extract()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | udbgutil.cpp | 370 …mParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *s… 381 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *sta… in paramEmpty() argument 383 return u_terminateChars(target, targetCapacity, 0, status); in paramEmpty() 387 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { in paramStatic() argument 388 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status); in paramStatic() 392 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic() 394 return u_terminateChars(target, targetCapacity, len, status); in paramStatic() 399 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCo… in stringToStringBuffer() argument 405 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer() 411 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer() [all …]
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
D | udbgutil.cpp | 370 …mParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *s… 381 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *sta… in paramEmpty() argument 383 return u_terminateChars(target, targetCapacity, 0, status); in paramEmpty() 387 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) { in paramStatic() argument 388 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status); in paramStatic() 392 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic() 394 return u_terminateChars(target, targetCapacity, len, status); in paramStatic() 399 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCo… in stringToStringBuffer() argument 405 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer() 411 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | ucnv.h | 1560 int32_t targetCapacity, 1613 char *target, int32_t targetCapacity, 1665 char *target, int32_t targetCapacity,
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
D | ucnv.h | 1560 int32_t targetCapacity, 1613 char *target, int32_t targetCapacity, 1665 char *target, int32_t targetCapacity,
|
D | unistr.h | 1507 int32_t targetCapacity,
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 413 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local 421 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourc… in TestConvert() 424 targetLimit=targetCapacity+1; in TestConvert() 426 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sou… in TestConvert() 432 for(i=0; i<targetCapacity; i++){ in TestConvert()
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
D | ccapitst.c | 413 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local 421 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourc… in TestConvert() 424 targetLimit=targetCapacity+1; in TestConvert() 426 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sou… in TestConvert() 432 for(i=0; i<targetCapacity; i++){ in TestConvert()
|