/external/icu/icu4c/source/common/ |
D | ucnv_u32.cpp | 53 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE() local 58 if (args->converter->toULength > 0 && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE() 67 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE() 96 if (myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE() 116 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) { in T_UConverter_toUnicode_UTF32_BE() 133 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() local 139 if (args->converter->toULength > 0 && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 148 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 178 if (myTarget < targetLimit) in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() 201 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() [all …]
|
D | ucnv_u7.cpp | 216 const UChar *targetLimit; in _UTF7ToUnicodeWithOffsets() local 240 targetLimit=pArgs->targetLimit; in _UTF7ToUnicodeWithOffsets() 268 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets() 297 if(source<sourceLimit && target>=targetLimit) { in _UTF7ToUnicodeWithOffsets() 314 if(target<targetLimit) { in _UTF7ToUnicodeWithOffsets() 466 uint8_t *target, *targetLimit; in _UTF7FromUnicodeWithOffsets() local 485 targetLimit=(uint8_t *)pArgs->targetLimit; in _UTF7FromUnicodeWithOffsets() 504 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets() 520 if(target<targetLimit) { in _UTF7FromUnicodeWithOffsets() 550 if(source<sourceLimit && target>=targetLimit) { in _UTF7FromUnicodeWithOffsets() [all …]
|
D | ucnv_u8.cpp | 72 const UChar *targetLimit = args->targetLimit; in ucnv_toUnicode_UTF8() local 79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 91 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 147 if (myTarget < targetLimit) in ucnv_toUnicode_UTF8() 171 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8() 190 const UChar *targetLimit = args->targetLimit; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local 197 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 208 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 265 if (myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 289 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all …]
|
D | ucnv_cnv.cpp | 57 char **target, const char *targetLimit, in ucnv_fromUWriteBytes() argument 66 while(length>0 && t<targetLimit) { in ucnv_fromUWriteBytes() 72 while(length>0 && t<targetLimit) { in ucnv_fromUWriteBytes() 97 UChar **target, const UChar *targetLimit, in ucnv_toUWriteUChars() argument 106 while(length>0 && t<targetLimit) { in ucnv_toUWriteUChars() 112 while(length>0 && t<targetLimit) { in ucnv_toUWriteUChars() 137 UChar **target, const UChar *targetLimit, in ucnv_toUWriteCodePoint() argument 146 if(t<targetLimit) { in ucnv_toUWriteCodePoint() 153 if(t<targetLimit) { in ucnv_toUWriteCodePoint()
|
D | ucnv.cpp | 1118 char **target, const char *targetLimit, in ucnv_outputOverflowFromUnicode() argument 1136 if(t==targetLimit) { in ucnv_outputOverflowFromUnicode() 1171 char **target, const char *targetLimit, in ucnv_fromUnicode() argument 1221 if (sourceLimit<s || targetLimit<t || in ucnv_fromUnicode() 1223 ((size_t)(targetLimit-t)>(size_t)0x7fffffff && targetLimit>t) || in ucnv_fromUnicode() 1232 ucnv_outputOverflowFromUnicode(cnv, target, targetLimit, &offsets, err) in ucnv_fromUnicode() 1259 args.targetLimit=targetLimit; in ucnv_fromUnicode() 1564 UChar **target, const UChar *targetLimit, in ucnv_outputOverflowToUnicode() argument 1582 if(t==targetLimit) { in ucnv_outputOverflowToUnicode() 1617 UChar **target, const UChar *targetLimit, in ucnv_toUnicode() argument [all …]
|
D | ucnvbocu.cpp | 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets() 458 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); in _Bocu1FromUnicodeWithOffsets() 667 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicode() 707 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); in _Bocu1FromUnicode() 961 const UChar *targetLimit; in _Bocu1ToUnicodeWithOffsets() local 976 targetLimit=pArgs->targetLimit; in _Bocu1ToUnicodeWithOffsets() 996 if(count>0 && byteIndex>0 && target<targetLimit) { in _Bocu1ToUnicodeWithOffsets() 1004 count=(int32_t)(pArgs->targetLimit-target); in _Bocu1ToUnicodeWithOffsets() 1034 if(target>=targetLimit) { in _Bocu1ToUnicodeWithOffsets() 1136 if(target<targetLimit) { in _Bocu1ToUnicodeWithOffsets() [all …]
|
D | ucnvscsu.cpp | 238 const UChar *targetLimit; in _SCSUToUnicodeWithOffsets() local 255 targetLimit=pArgs->targetLimit; in _SCSUToUnicodeWithOffsets() 292 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { in _SCSUToUnicodeWithOffsets() 312 if(target<targetLimit) { in _SCSUToUnicodeWithOffsets() 337 if(target>=targetLimit) { in _SCSUToUnicodeWithOffsets() 420 if(target<targetLimit) { in _SCSUToUnicodeWithOffsets() 480 … while(source+1<sourceLimit && target<targetLimit && (uint8_t)((b=*source)-UC0)>(Urs-UC0)) { in _SCSUToUnicodeWithOffsets() 494 if(target>=targetLimit) { in _SCSUToUnicodeWithOffsets() 592 const UChar *targetLimit; in _SCSUToUnicode() local 606 targetLimit=pArgs->targetLimit; in _SCSUToUnicode() [all …]
|
D | ucnv2022.cpp | 434 uint8_t **target, const char *targetLimit, in fromUWriteUInt8() argument 440 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit, in fromUWriteUInt8() 1300 args->targetLimit, in T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC() 1675 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() local 1697 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 1702 if(target < targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 1994 } else if(outLen == 2 && (target + 2) <= targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2006 &target, (const char *)targetLimit, in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2074 &target, (const char *)targetLimit, in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2106 …e if(args->converter->toULength == 1 && mySource < mySourceLimit && myTarget < args->targetLimit) { in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC() [all …]
|
D | ucnv_u16.cpp | 77 &pArgs->target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets() 84 if(target >= pArgs->targetLimit) { in _UTF16BEFromUnicodeWithOffsets() 89 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets() 239 (char **)&target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets() 242 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets() 280 if(target >= pArgs->targetLimit) { in _UTF16BEToUnicodeWithOffsets() 285 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEToUnicodeWithOffsets() 678 &pArgs->target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets() 685 if(target >= pArgs->targetLimit) { in _UTF16LEFromUnicodeWithOffsets() 690 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEFromUnicodeWithOffsets() [all …]
|
D | ucnv_ext.cpp | 239 UChar **target, const UChar *targetLimit, in ucnv_extWriteToU() argument 247 target, targetLimit, in ucnv_extWriteToU() 257 target, targetLimit, in ucnv_extWriteToU() 282 UChar **target, const UChar *targetLimit, in ucnv_extInitialMatchToU() argument 302 target, targetLimit, in ucnv_extInitialMatchToU() 397 &pArgs->target, pArgs->targetLimit, in ucnv_extContinueMatchToU() 674 char **target, const char *targetLimit, in ucnv_extWriteFromU() argument 741 target, targetLimit, in ucnv_extWriteFromU() 753 char **target, const char *targetLimit, in ucnv_extInitialMatchFromU() argument 778 target, targetLimit, in ucnv_extInitialMatchFromU() [all …]
|
D | ucnvlat1.cpp | 48 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets() 155 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1FromUnicodeWithOffsets() 311 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets() 340 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_Latin1FromUTF8() 497 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _ASCIIToUnicodeWithOffsets() 569 } else if(source<sourceLimit && target>=pArgs->targetLimit) { in _ASCIIToUnicodeWithOffsets() 637 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_ASCIIFromUTF8() 695 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) { in ucnv_ASCIIFromUTF8()
|
D | ucnv_cb.cpp | 50 &args->target, args->targetLimit, in ucnv_cbFromUWriteBytes() 85 args->targetLimit, in ucnv_cbFromUWriteUChars() 241 &args->target, args->targetLimit, in ucnv_cbToUWriteUChars()
|
D | ucnvmbcs.cpp | 1108 uint8_t **target, const uint8_t *targetLimit, in _extFromU() argument 1120 (char **)target, (char *)targetLimit, in _extFromU() 1154 bytes, 4, (char **)target, (char *)targetLimit, in _extFromU() 1175 UChar **target, const UChar *targetLimit, in _extToU() argument 1185 target, targetLimit, in _extToU() 1210 … ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode); in _extToU() 2038 const UChar *targetLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() local 2054 targetLimit=pArgs->targetLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() 2076 if(target>=targetLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets() 2113 if(target<targetLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets() [all …]
|
D | ucnvisci.cpp | 834 #define WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err){ \ argument 837 if(target < targetLimit){ \ 851 if (!(target < targetLimit)) { \ 862 if(target < targetLimit){ \ 901 unsigned char *targetLimit = (unsigned char *) args->targetLimit; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() local 911 …if ((args->converter == NULL) || (args->targetLimit < args->target) || (args->sourceLimit < args->… in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() 932 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() 946 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() 1029 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,temp,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() 1049 WRITE_TO_TARGET_FROM_U(args, offsets, source, target, targetLimit, targetByteUnit,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() [all …]
|
D | ucnv_cnv.h | 301 char **target, const char *targetLimit, 308 UChar **target, const UChar *targetLimit, 316 UChar **target, const UChar *targetLimit,
|
D | ucnv_ct.cpp | 338 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; in UConverter_fromUnicode_CompoundText_OFFSETS() local 356 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS() 361 if(target < targetLimit){ in UConverter_fromUnicode_CompoundText_OFFSETS() 440 if (target < targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS() 495 if(myTarget < args->targetLimit){ in UConverter_toUnicode_CompoundText_OFFSETS() 535 if (myTarget < args->targetLimit) { in UConverter_toUnicode_CompoundText_OFFSETS()
|
D | ucnv_ext.h | 356 UChar **target, const UChar *targetLimit, 376 char **target, const char *targetLimit,
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetUTF8.java | 68 int targetLimit = target.arrayOffset() + target.limit(); in decodeLoop() local 128 if (targetIndex >= targetLimit) { in decodeLoop() 146 if (targetIndex >= targetLimit) { in decodeLoop() 158 if (targetIndex >= targetLimit) { in decodeLoop() 190 int targetLimit = target.limit(); in decodeLoop() local 252 if (targetIndex >= targetLimit) { in decodeLoop() 272 if (targetIndex >= targetLimit) { in decodeLoop() 284 if (targetIndex >= targetLimit) { in decodeLoop() 346 int targetLimit = target.arrayOffset() + target.limit(); in encodeLoop() local 357 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit, in encodeLoop() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | convtest.cpp | 753 const char *targetLimit = result + sizeof(result); in TestUTF8ToUTF8Overflow() local 773 &target, targetLimit, &source, sourceLimit, in TestUTF8ToUTF8Overflow() 806 &target, targetLimit, &source, sourceLimit, in TestUTF8ToUTF8Overflow() 833 &target, targetLimit, &source, source + 2, in TestUTF8ToUTF8Overflow() 849 &target, targetLimit, &source, sourceLimit, in TestUTF8ToUTF8Overflow() 977 UChar *target, *targetLimit, *resultLimit; in stepToUnicode() local 994 targetLimit=resultLimit; in stepToUnicode() 999 targetLimit=target; in stepToUnicode() 1012 &target, targetLimit, in stepToUnicode() 1018 if(source>sourceLimit || target>targetLimit) { in stepToUnicode() [all …]
|
/external/icu/icu4c/source/test/perf/convperf/ |
D | convperf.h | 34 UChar* targetLimit; variable 46 targetLimit = NULL; in ICUToUnicodePerfFunction() 52 targetLimit = target + reqdLen; in ICUToUnicodePerfFunction() 63 ucnv_toUnicode(conv, &myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); in call() 79 char* targetLimit; variable 92 targetLimit = NULL; in ICUFromUnicodePerfFunction() 98 targetLimit = target + reqdLen; in ICUFromUnicodePerfFunction() 109 ucnv_fromUnicode(conv,&myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); in call()
|
/external/icu/icu4c/source/samples/ucnv/ |
D | convsamp.cpp | 306 UChar *targetLimit; in convsample_05() local 341 targetLimit = uBuf + uBufSize; in convsample_05() 343 ucnv_toUnicode(conv, &target, targetLimit, in convsample_05() 885 UChar *targetLimit; in convsample_40() local 929 targetLimit = uBuf + uBufSize; in convsample_40() 931 ucnv_toUnicode( conv, &target, targetLimit, in convsample_40() 989 char *targetLimit; in convsample_46() local 1034 targetLimit = buf + bufSize; in convsample_46() 1036 ucnv_fromUnicode( conv, &target, targetLimit, in convsample_46()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 414 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local 420 targetLimit=0; in TestConvert() 422 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourc… in TestConvert() 425 targetLimit=targetCapacity+1; in TestConvert() 426 target=(char*)malloc(sizeof(char) * targetLimit); in TestConvert() 427 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sou… in TestConvert() 439 … i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source+1, -1, &err); in TestConvert() 447 … i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, 0, &err); in TestConvert() 454 …i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &er… in TestConvert() 461 targetLimit=0; in TestConvert() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | ucnv_err.h | 201 …const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 … member 217 …const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 … member
|
/external/icu/libandroidicu/include/unicode/ |
D | ucnv_err.h | 201 …const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 … member 217 …const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 … member
|
D | ucnv.h | 1145 const char *targetLimit, 1214 const UChar *targetLimit, 1502 char **target, const char *targetLimit,
|