Home
last modified time | relevance | path

Searched refs:targetLimit (Results 1 – 25 of 33) sorted by relevance

12

/external/icu/icu4c/source/common/
Ducnv_u32.c51 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE() local
56 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
65 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
94 if (myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
114 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) { in T_UConverter_toUnicode_UTF32_BE()
131 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() local
137 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
146 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
176 if (myTarget < targetLimit) in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
199 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
[all …]
Ducnv_u7.c211 const UChar *targetLimit; in _UTF7ToUnicodeWithOffsets() local
235 targetLimit=pArgs->targetLimit; in _UTF7ToUnicodeWithOffsets()
263 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets()
292 if(source<sourceLimit && target>=targetLimit) { in _UTF7ToUnicodeWithOffsets()
309 if(target<targetLimit) { in _UTF7ToUnicodeWithOffsets()
461 uint8_t *target, *targetLimit; in _UTF7FromUnicodeWithOffsets() local
480 targetLimit=(uint8_t *)pArgs->targetLimit; in _UTF7FromUnicodeWithOffsets()
499 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets()
515 if(target<targetLimit) { in _UTF7FromUnicodeWithOffsets()
545 if(source<sourceLimit && target>=targetLimit) { in _UTF7FromUnicodeWithOffsets()
[all …]
Ducnv_u8.c106 const UChar *targetLimit = args->targetLimit; in ucnv_toUnicode_UTF8() local
113 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
125 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
193 if (myTarget < targetLimit) in ucnv_toUnicode_UTF8()
217 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8()
236 const UChar *targetLimit = args->targetLimit; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
243 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
254 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
323 if (myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
347 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
[all …]
Ducnv_cnv.c49 char **target, const char *targetLimit, in ucnv_fromUWriteBytes() argument
58 while(length>0 && t<targetLimit) { in ucnv_fromUWriteBytes()
64 while(length>0 && t<targetLimit) { in ucnv_fromUWriteBytes()
89 UChar **target, const UChar *targetLimit, in ucnv_toUWriteUChars() argument
98 while(length>0 && t<targetLimit) { in ucnv_toUWriteUChars()
104 while(length>0 && t<targetLimit) { in ucnv_toUWriteUChars()
129 UChar **target, const UChar *targetLimit, in ucnv_toUWriteCodePoint() argument
138 if(t<targetLimit) { in ucnv_toUWriteCodePoint()
145 if(t<targetLimit) { in ucnv_toUWriteCodePoint()
Ducnv.c1116 char **target, const char *targetLimit, in ucnv_outputOverflowFromUnicode() argument
1134 if(t==targetLimit) { in ucnv_outputOverflowFromUnicode()
1169 char **target, const char *targetLimit, in ucnv_fromUnicode() argument
1219 if (sourceLimit<s || targetLimit<t || in ucnv_fromUnicode()
1221 ((size_t)(targetLimit-t)>(size_t)0x7fffffff && targetLimit>t) || in ucnv_fromUnicode()
1230 ucnv_outputOverflowFromUnicode(cnv, target, targetLimit, &offsets, err) in ucnv_fromUnicode()
1257 args.targetLimit=targetLimit; in ucnv_fromUnicode()
1562 UChar **target, const UChar *targetLimit, in ucnv_outputOverflowToUnicode() argument
1580 if(t==targetLimit) { in ucnv_outputOverflowToUnicode()
1615 UChar **target, const UChar *targetLimit, in ucnv_toUnicode() argument
[all …]
Ducnvbocu.cpp407 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets()
456 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); in _Bocu1FromUnicodeWithOffsets()
656 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicode()
696 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); in _Bocu1FromUnicode()
942 const UChar *targetLimit; in _Bocu1ToUnicodeWithOffsets() local
957 targetLimit=pArgs->targetLimit; in _Bocu1ToUnicodeWithOffsets()
977 if(count>0 && byteIndex>0 && target<targetLimit) { in _Bocu1ToUnicodeWithOffsets()
985 count=(int32_t)(pArgs->targetLimit-target); in _Bocu1ToUnicodeWithOffsets()
1015 if(target>=targetLimit) { in _Bocu1ToUnicodeWithOffsets()
1117 if(target<targetLimit) { in _Bocu1ToUnicodeWithOffsets()
[all …]
Ducnvscsu.c236 const UChar *targetLimit; in _SCSUToUnicodeWithOffsets() local
253 targetLimit=pArgs->targetLimit; in _SCSUToUnicodeWithOffsets()
290 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { in _SCSUToUnicodeWithOffsets()
310 if(target<targetLimit) { in _SCSUToUnicodeWithOffsets()
335 if(target>=targetLimit) { in _SCSUToUnicodeWithOffsets()
418 if(target<targetLimit) { in _SCSUToUnicodeWithOffsets()
478 … while(source+1<sourceLimit && target<targetLimit && (uint8_t)((b=*source)-UC0)>(Urs-UC0)) { in _SCSUToUnicodeWithOffsets()
492 if(target>=targetLimit) { in _SCSUToUnicodeWithOffsets()
590 const UChar *targetLimit; in _SCSUToUnicode() local
604 targetLimit=pArgs->targetLimit; in _SCSUToUnicode()
[all …]
Ducnv_u16.c73 &pArgs->target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
80 if(target >= pArgs->targetLimit) { in _UTF16BEFromUnicodeWithOffsets()
85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets()
235 (char **)&target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
238 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets()
276 if(target >= pArgs->targetLimit) { in _UTF16BEToUnicodeWithOffsets()
281 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEToUnicodeWithOffsets()
669 &pArgs->target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets()
676 if(target >= pArgs->targetLimit) { in _UTF16LEFromUnicodeWithOffsets()
681 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEFromUnicodeWithOffsets()
[all …]
Ducnv2022.cpp427 uint8_t **target, const char *targetLimit, in fromUWriteUInt8() argument
433 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit, in fromUWriteUInt8()
1311 args->targetLimit, in T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC()
1686 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() local
1708 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1713 if(target < targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2005 } else if(outLen == 2 && (target + 2) <= targetLimit) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2017 &target, (const char *)targetLimit, in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2085 &target, (const char *)targetLimit, in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2117 …e if(args->converter->toULength == 1 && mySource < mySourceLimit && myTarget < args->targetLimit) { in UConverter_toUnicode_ISO_2022_JP_OFFSETS_LOGIC()
[all …]
Ducnv_ext.cpp236 UChar **target, const UChar *targetLimit, in ucnv_extWriteToU() argument
244 target, targetLimit, in ucnv_extWriteToU()
254 target, targetLimit, in ucnv_extWriteToU()
279 UChar **target, const UChar *targetLimit, in ucnv_extInitialMatchToU() argument
299 target, targetLimit, in ucnv_extInitialMatchToU()
394 &pArgs->target, pArgs->targetLimit, in ucnv_extContinueMatchToU()
671 char **target, const char *targetLimit, in ucnv_extWriteFromU() argument
735 target, targetLimit, in ucnv_extWriteFromU()
747 char **target, const char *targetLimit, in ucnv_extInitialMatchFromU() argument
772 target, targetLimit, in ucnv_extInitialMatchFromU()
[all …]
Ducnvlat1.c44 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets()
151 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1FromUnicodeWithOffsets()
307 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets()
336 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_Latin1FromUTF8()
483 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _ASCIIToUnicodeWithOffsets()
555 } else if(source<sourceLimit && target>=pArgs->targetLimit) { in _ASCIIToUnicodeWithOffsets()
623 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_ASCIIFromUTF8()
681 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) { in ucnv_ASCIIFromUTF8()
Ducnv_cb.c48 &args->target, args->targetLimit, in ucnv_cbFromUWriteBytes()
83 args->targetLimit, in ucnv_cbFromUWriteUChars()
239 &args->target, args->targetLimit, in ucnv_cbToUWriteUChars()
Ducnvisci.c828 #define WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err){ \ argument
831 if(target < targetLimit){ \
845 if (!(target < targetLimit)) { \
856 if(target < targetLimit){ \
895 unsigned char *targetLimit = (unsigned char *) args->targetLimit; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() local
905 …if ((args->converter == NULL) || (args->targetLimit < args->target) || (args->sourceLimit < args->… in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
926 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
940 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
1023 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,temp,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
1043 WRITE_TO_TARGET_FROM_U(args, offsets, source, target, targetLimit, targetByteUnit,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
[all …]
Ducnv_cnv.h299 char **target, const char *targetLimit,
306 UChar **target, const UChar *targetLimit,
314 UChar **target, const UChar *targetLimit,
Ducnvmbcs.cpp1101 uint8_t **target, const uint8_t *targetLimit, in _extFromU() argument
1113 (char **)target, (char *)targetLimit, in _extFromU()
1147 bytes, 4, (char **)target, (char *)targetLimit, in _extFromU()
1168 UChar **target, const UChar *targetLimit, in _extToU() argument
1178 target, targetLimit, in _extToU()
1203 … ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode); in _extToU()
2027 const UChar *targetLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() local
2043 targetLimit=pArgs->targetLimit; in ucnv_MBCSSingleToUnicodeWithOffsets()
2065 if(target>=targetLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2102 if(target<targetLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
[all …]
Ducnv_ct.c331 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; in UConverter_fromUnicode_CompoundText_OFFSETS() local
349 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
354 if(target < targetLimit){ in UConverter_fromUnicode_CompoundText_OFFSETS()
433 if (target < targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
488 if(myTarget < args->targetLimit){ in UConverter_toUnicode_CompoundText_OFFSETS()
528 if (myTarget < args->targetLimit) { in UConverter_toUnicode_CompoundText_OFFSETS()
Ducnv_ext.h354 UChar **target, const UChar *targetLimit,
374 char **target, const char *targetLimit,
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF8.java84 int targetLimit = target.arrayOffset() + target.limit(); in decodeLoop() local
144 if (targetIndex >= targetLimit) { in decodeLoop()
162 if (targetIndex >= targetLimit) { in decodeLoop()
174 if (targetIndex >= targetLimit) { in decodeLoop()
204 int targetLimit = target.limit(); in decodeLoop() local
279 if (targetIndex >= targetLimit) { in decodeLoop()
299 if (targetIndex >= targetLimit) { in decodeLoop()
311 if (targetIndex >= targetLimit) { in decodeLoop()
369 int targetLimit = target.arrayOffset() + target.limit(); in encodeLoop() local
380 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit, in encodeLoop()
[all …]
/external/icu/icu4c/source/test/intltest/
Dconvtest.cpp863 UChar *target, *targetLimit, *resultLimit; in stepToUnicode() local
880 targetLimit=resultLimit; in stepToUnicode()
885 targetLimit=target; in stepToUnicode()
898 &target, targetLimit, in stepToUnicode()
904 if(source>sourceLimit || target>targetLimit) { in stepToUnicode()
908 if(target!=targetLimit) { in stepToUnicode()
912 } else if(targetLimit==resultLimit) { in stepToUnicode()
918 targetLimit=(resultLimit-target)>=step ? target+step : resultLimit; in stepToUnicode()
994 targetLimit=target<resultLimit ? target+1 : resultLimit; in stepToUnicode()
1008 &target, targetLimit, in stepToUnicode()
[all …]
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.h30 UChar* targetLimit; variable
42 targetLimit = NULL; in ICUToUnicodePerfFunction()
48 targetLimit = target + reqdLen; in ICUToUnicodePerfFunction()
59 ucnv_toUnicode(conv, &myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); in call()
75 char* targetLimit; variable
88 targetLimit = NULL; in ICUFromUnicodePerfFunction()
94 targetLimit = target + reqdLen; in ICUFromUnicodePerfFunction()
105 ucnv_fromUnicode(conv,&myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); in call()
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp297 UChar *targetLimit; in convsample_05() local
332 targetLimit = uBuf + uBufSize; in convsample_05()
334 ucnv_toUnicode(conv, &target, targetLimit, in convsample_05()
877 UChar *targetLimit; in convsample_40() local
921 targetLimit = uBuf + uBufSize; in convsample_40()
923 ucnv_toUnicode( conv, &target, targetLimit, in convsample_40()
982 char *targetLimit; in convsample_46() local
1027 targetLimit = buf + bufSize; in convsample_46()
1029 ucnv_fromUnicode( conv, &target, targetLimit, in convsample_46()
/external/icu/icu4c/source/test/cintltst/
Dccapitst.c411 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local
417 targetLimit=0; in TestConvert()
419 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourc… in TestConvert()
422 targetLimit=targetCapacity+1; in TestConvert()
423 target=(char*)malloc(sizeof(char) * targetLimit); in TestConvert()
424 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sou… in TestConvert()
436 … i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source+1, -1, &err); in TestConvert()
444 … i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, 0, &err); in TestConvert()
451 …i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &er… in TestConvert()
458 targetLimit=0; in TestConvert()
[all …]
Dcintltst.c507 char *newString,*targetLimit,*target; in aescstrdup() local
526 targetLimit = newString+sizeof(char) * 8 * (length +1); in aescstrdup()
528 …ucnv_fromUnicode(conv,&target,targetLimit, &unichars, (UChar*)(unichars+length),NULL,TRUE,&errorCo… in aescstrdup()
/external/icu/icu4c/source/common/unicode/
Ducnv_err.h199 …const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 … member
215 …const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 … member
Ducnv.h1139 const char *targetLimit,
1208 const UChar *targetLimit,
1496 char **target, const char *targetLimit,

12