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.c53 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE() local
58 if (args->converter->toUnicodeStatus && 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->toUnicodeStatus && 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 …]
Ducnv_u7.c214 const UChar *targetLimit; in _UTF7ToUnicodeWithOffsets() local
238 targetLimit=pArgs->targetLimit; in _UTF7ToUnicodeWithOffsets()
266 targetCapacity=(int32_t)(targetLimit-target); in _UTF7ToUnicodeWithOffsets()
295 if(source<sourceLimit && target>=targetLimit) { in _UTF7ToUnicodeWithOffsets()
312 if(target<targetLimit) { in _UTF7ToUnicodeWithOffsets()
464 uint8_t *target, *targetLimit; in _UTF7FromUnicodeWithOffsets() local
483 targetLimit=(uint8_t *)pArgs->targetLimit; in _UTF7FromUnicodeWithOffsets()
502 targetCapacity=(int32_t)(targetLimit-target); in _UTF7FromUnicodeWithOffsets()
518 if(target<targetLimit) { in _UTF7FromUnicodeWithOffsets()
548 if(source<sourceLimit && target>=targetLimit) { in _UTF7FromUnicodeWithOffsets()
[all …]
Ducnv_u8.c108 const UChar *targetLimit = args->targetLimit; in ucnv_toUnicode_UTF8() local
115 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
127 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
195 if (myTarget < targetLimit) in ucnv_toUnicode_UTF8()
219 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8()
238 const UChar *targetLimit = args->targetLimit; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
245 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
256 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
325 if (myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
349 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
[all …]
Ducnv_cnv.c51 char **target, const char *targetLimit, in ucnv_fromUWriteBytes() argument
60 while(length>0 && t<targetLimit) { in ucnv_fromUWriteBytes()
66 while(length>0 && t<targetLimit) { in ucnv_fromUWriteBytes()
91 UChar **target, const UChar *targetLimit, in ucnv_toUWriteUChars() argument
100 while(length>0 && t<targetLimit) { in ucnv_toUWriteUChars()
106 while(length>0 && t<targetLimit) { in ucnv_toUWriteUChars()
131 UChar **target, const UChar *targetLimit, in ucnv_toUWriteCodePoint() argument
140 if(t<targetLimit) { in ucnv_toUWriteCodePoint()
147 if(t<targetLimit) { in ucnv_toUWriteCodePoint()
Ducnv.c1118 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 …]
Ducnvbocu.cpp409 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 …]
Ducnv_u16.c75 &pArgs->target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
82 if(target >= pArgs->targetLimit) { in _UTF16BEFromUnicodeWithOffsets()
87 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets()
237 (char **)&target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
240 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); in _UTF16BEFromUnicodeWithOffsets()
278 if(target >= pArgs->targetLimit) { in _UTF16BEToUnicodeWithOffsets()
283 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEToUnicodeWithOffsets()
674 &pArgs->target, pArgs->targetLimit, in _UTF16LEFromUnicodeWithOffsets()
681 if(target >= pArgs->targetLimit) { in _UTF16LEFromUnicodeWithOffsets()
686 targetCapacity=(uint32_t)(pArgs->targetLimit-pArgs->target); in _UTF16LEFromUnicodeWithOffsets()
[all …]
Ducnvscsu.c238 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 …]
Ducnv2022.cpp434 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 …]
Ducnv_ext.cpp238 UChar **target, const UChar *targetLimit, in ucnv_extWriteToU() argument
246 target, targetLimit, in ucnv_extWriteToU()
256 target, targetLimit, in ucnv_extWriteToU()
281 UChar **target, const UChar *targetLimit, in ucnv_extInitialMatchToU() argument
301 target, targetLimit, in ucnv_extInitialMatchToU()
396 &pArgs->target, pArgs->targetLimit, in ucnv_extContinueMatchToU()
673 char **target, const char *targetLimit, in ucnv_extWriteFromU() argument
740 target, targetLimit, in ucnv_extWriteFromU()
752 char **target, const char *targetLimit, in ucnv_extInitialMatchFromU() argument
777 target, targetLimit, in ucnv_extInitialMatchFromU()
[all …]
Ducnvlat1.c46 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets()
153 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1FromUnicodeWithOffsets()
309 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets()
338 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_Latin1FromUTF8()
485 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _ASCIIToUnicodeWithOffsets()
557 } else if(source<sourceLimit && target>=pArgs->targetLimit) { in _ASCIIToUnicodeWithOffsets()
625 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); in ucnv_ASCIIFromUTF8()
683 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) { in ucnv_ASCIIFromUTF8()
Ducnv_cb.c50 &args->target, args->targetLimit, in ucnv_cbFromUWriteBytes()
85 args->targetLimit, in ucnv_cbFromUWriteUChars()
241 &args->target, args->targetLimit, in ucnv_cbToUWriteUChars()
Ducnvisci.c830 #define WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err){ \ argument
833 if(target < targetLimit){ \
847 if (!(target < targetLimit)) { \
858 if(target < targetLimit){ \
897 unsigned char *targetLimit = (unsigned char *) args->targetLimit; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() local
907 …if ((args->converter == NULL) || (args->targetLimit < args->target) || (args->sourceLimit < args->… in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
928 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
942 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
1025 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,temp,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
1045 WRITE_TO_TARGET_FROM_U(args, offsets, source, target, targetLimit, targetByteUnit,err); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
[all …]
Ducnvmbcs.cpp1107 uint8_t **target, const uint8_t *targetLimit, in _extFromU() argument
1119 (char **)target, (char *)targetLimit, in _extFromU()
1153 bytes, 4, (char **)target, (char *)targetLimit, in _extFromU()
1174 UChar **target, const UChar *targetLimit, in _extToU() argument
1184 target, targetLimit, in _extToU()
1209 … ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode); in _extToU()
2037 const UChar *targetLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() local
2053 targetLimit=pArgs->targetLimit; in ucnv_MBCSSingleToUnicodeWithOffsets()
2075 if(target>=targetLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2112 if(target<targetLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
[all …]
Ducnv_cnv.h301 char **target, const char *targetLimit,
308 UChar **target, const UChar *targetLimit,
316 UChar **target, const UChar *targetLimit,
Ducnv_ct.c333 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; in UConverter_fromUnicode_CompoundText_OFFSETS() local
351 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
356 if(target < targetLimit){ in UConverter_fromUnicode_CompoundText_OFFSETS()
435 if (target < targetLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
490 if(myTarget < args->targetLimit){ in UConverter_toUnicode_CompoundText_OFFSETS()
530 if (myTarget < args->targetLimit) { in UConverter_toUnicode_CompoundText_OFFSETS()
Ducnv_ext.h356 UChar **target, const UChar *targetLimit,
376 char **target, const char *targetLimit,
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF8.java87 int targetLimit = target.arrayOffset() + target.limit(); in decodeLoop() local
147 if (targetIndex >= targetLimit) { in decodeLoop()
165 if (targetIndex >= targetLimit) { in decodeLoop()
177 if (targetIndex >= targetLimit) { in decodeLoop()
207 int targetLimit = target.limit(); in decodeLoop() local
282 if (targetIndex >= targetLimit) { in decodeLoop()
302 if (targetIndex >= targetLimit) { in decodeLoop()
314 if (targetIndex >= targetLimit) { in decodeLoop()
374 int targetLimit = target.arrayOffset() + target.limit(); in encodeLoop() local
385 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit, in encodeLoop()
[all …]
/external/icu/icu4c/source/test/intltest/
Dconvtest.cpp865 UChar *target, *targetLimit, *resultLimit; in stepToUnicode() local
882 targetLimit=resultLimit; in stepToUnicode()
887 targetLimit=target; in stepToUnicode()
900 &target, targetLimit, in stepToUnicode()
906 if(source>sourceLimit || target>targetLimit) { in stepToUnicode()
910 if(target!=targetLimit) { in stepToUnicode()
914 } else if(targetLimit==resultLimit) { in stepToUnicode()
920 targetLimit=(resultLimit-target)>=step ? target+step : resultLimit; in stepToUnicode()
996 targetLimit=target<resultLimit ? target+1 : resultLimit; in stepToUnicode()
1010 &target, targetLimit, in stepToUnicode()
[all …]
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.h34 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/
Dconvsamp.cpp304 UChar *targetLimit; in convsample_05() local
339 targetLimit = uBuf + uBufSize; in convsample_05()
341 ucnv_toUnicode(conv, &target, targetLimit, in convsample_05()
884 UChar *targetLimit; in convsample_40() local
928 targetLimit = uBuf + uBufSize; in convsample_40()
930 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/
Dccapitst.c413 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local
419 targetLimit=0; in TestConvert()
421 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourc… in TestConvert()
424 targetLimit=targetCapacity+1; in TestConvert()
425 target=(char*)malloc(sizeof(char) * targetLimit); in TestConvert()
426 …targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sou… in TestConvert()
438 … i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source+1, -1, &err); in TestConvert()
446 … i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, 0, &err); in TestConvert()
453 …i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &er… in TestConvert()
460 targetLimit=0; in TestConvert()
[all …]
Dcintltst.c509 char *newString,*targetLimit,*target; in aescstrdup() local
528 targetLimit = newString+sizeof(char) * 8 * (length +1); in aescstrdup()
530 …ucnv_fromUnicode(conv,&target,targetLimit, &unichars, (UChar*)(unichars+length),NULL,TRUE,&errorCo… in aescstrdup()
/external/icu/icu4c/source/common/unicode/
Ducnv_err.h201 …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
Ducnv.h1146 const char *targetLimit,
1215 const UChar *targetLimit,
1503 char **target, const char *targetLimit,

12