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

12

/external/icu/icu4c/source/common/
H A Ducnv_cnv.c49 char **target, const char *targetLimit,
58 while(length>0 && t<targetLimit) {
64 while(length>0 && t<targetLimit) {
89 UChar **target, const UChar *targetLimit,
98 while(length>0 && t<targetLimit) {
104 while(length>0 && t<targetLimit) {
129 UChar **target, const UChar *targetLimit,
138 if(t<targetLimit) {
145 if(t<targetLimit) {
47 ucnv_fromUWriteBytes(UConverter *cnv, const char *bytes, int32_t length, char **target, const char *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument
87 ucnv_toUWriteUChars(UConverter *cnv, const UChar *uchars, int32_t length, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument
127 ucnv_toUWriteCodePoint(UConverter *cnv, UChar32 c, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument
H A Ducnv_u32.c51 const UChar *targetLimit = args->targetLimit; local
56 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
65 while (mySource < sourceLimit && myTarget < targetLimit) {
94 if (myTarget < targetLimit) {
114 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) {
131 const UChar *targetLimit = args->targetLimit; local
137 if (args->converter->toUnicodeStatus && myTarget < targetLimit) {
146 while (mySource < sourceLimit && myTarget < targetLimit) {
217 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local
319 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local
513 const UChar *targetLimit = args->targetLimit; local
599 const UChar *targetLimit = args->targetLimit; local
695 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local
805 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local
[all...]
H A Ducnv_u7.c211 const UChar *targetLimit; local
235 targetLimit=pArgs->targetLimit;
263 targetCapacity=(int32_t)(targetLimit-target);
292 if(source<sourceLimit && target>=targetLimit) {
309 if(target<targetLimit) {
461 uint8_t *target, *targetLimit; local
480 targetLimit=(uint8_t *)pArgs->targetLimit;
499 targetCapacity=(int32_t)(targetLimit
893 const UChar *targetLimit; local
1160 uint8_t *target, *targetLimit; local
[all...]
H A Ducnv_u8.c106 const UChar *targetLimit = args->targetLimit; local
113 if (cnv->toUnicodeStatus && myTarget < targetLimit)
125 while (mySource < sourceLimit && myTarget < targetLimit)
193 if (myTarget < targetLimit)
217 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err))
236 const UChar *targetLimit = args->targetLimit; local
243 if (cnv->toUnicodeStatus && myTarget < targetLimit)
254 while (mySource < sourceLimit && myTarget < targetLimit)
364 const uint8_t *targetLimit = (uint8_t *) args->targetLimit; local
479 const uint8_t *targetLimit = (uint8_t *) args->targetLimit; local
[all...]
H A Ducnv.c1126 char **target, const char *targetLimit,
1144 if(t==targetLimit) {
1179 char **target, const char *targetLimit,
1224 * An adjustment would be targetLimit=t+0x7fffffff; for example.
1229 if (sourceLimit<s || targetLimit<t ||
1231 ((size_t)(targetLimit-t)>(size_t)0x7fffffff && targetLimit>t) ||
1240 ucnv_outputOverflowFromUnicode(cnv, target, targetLimit, &offsets, err)
1254 * !flush && t==targetLimit
1267 args.targetLimit
1125 ucnv_outputOverflowFromUnicode(UConverter *cnv, char **target, const char *targetLimit, int32_t **pOffsets, UErrorCode *err) argument
1178 ucnv_fromUnicode(UConverter *cnv, char **target, const char *targetLimit, const UChar **source, const UChar *sourceLimit, int32_t *offsets, UBool flush, UErrorCode *err) argument
1571 ucnv_outputOverflowToUnicode(UConverter *cnv, UChar **target, const UChar *targetLimit, int32_t **pOffsets, UErrorCode *err) argument
1624 ucnv_toUnicode(UConverter *cnv, UChar **target, const UChar *targetLimit, const char **source, const char *sourceLimit, int32_t *offsets, UBool flush, UErrorCode *err) argument
2054 ucnv_convertEx(UConverter *targetCnv, UConverter *sourceCnv, char **target, const char *targetLimit, const char **source, const char *sourceLimit, UChar *pivotStart, UChar **pivotSource, UChar **pivotTarget, const UChar *pivotLimit, UBool reset, UBool flush, UErrorCode *pErrorCode) argument
2422 const char *targetLimit; local
[all...]
H A Ducnv_cb.c48 &args->target, args->targetLimit,
83 args->targetLimit,
104 /* && (*source < sourceLimit && args->target >= args->targetLimit)
239 &args->target, args->targetLimit,
H A Ducnv_cnv.h94 * - U_BUFFER_OVERFLOW_ERROR and the target is full: target==targetLimit
299 char **target, const char *targetLimit,
306 UChar **target, const UChar *targetLimit,
314 UChar **target, const UChar *targetLimit,
H A Ducnvbocu.cpp409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target);
458 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target);
658 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target);
698 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target);
944 const UChar *targetLimit; local
959 targetLimit=pArgs->targetLimit;
979 if(count>0 && byteIndex>0 && target<targetLimit) {
987 count=(int32_t)(pArgs->targetLimit-target);
1017 if(target>=targetLimit) {
1167 const UChar *targetLimit; local
[all...]
H A Ducnv_u16.c73 &pArgs->target, pArgs->targetLimit,
80 if(target >= pArgs->targetLimit) {
85 targetCapacity=(uint32_t)(pArgs->targetLimit-target);
235 (char **)&target, pArgs->targetLimit,
238 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target);
276 if(target >= pArgs->targetLimit) {
281 targetCapacity=(uint32_t)(pArgs->targetLimit-target);
672 &pArgs->target, pArgs->targetLimit,
679 if(target >= pArgs->targetLimit) {
684 targetCapacity=(uint32_t)(pArgs->targetLimit
[all...]
H A Ducnv2022.cpp427 uint8_t **target, const char *targetLimit,
433 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit,
1311 args->targetLimit,
1686 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; local
1708 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) {
1713 if(target < targetLimit) {
2005 } else if(outLen == 2 && (target + 2) <= targetLimit) {
2017 &target, (const char *)targetLimit,
2085 &target, (const char *)targetLimit,
425 fromUWriteUInt8(UConverter *cnv, const char *bytes, int32_t length, uint8_t **target, const char *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument
2380 unsigned char *targetLimit = (unsigned char *) args->targetLimit; local
2939 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; local
[all...]
H A Ducnv_ext.h354 UChar **target, const UChar *targetLimit,
374 char **target, const char *targetLimit,
H A Ducnvlat1.c44 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target);
151 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target);
307 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) {
336 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target);
486 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target);
558 } else if(source<sourceLimit && target>=pArgs->targetLimit) {
626 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target);
684 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) {
H A Ducnvscsu.c236 const UChar *targetLimit; local
253 targetLimit=pArgs->targetLimit;
290 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) {
310 if(target<targetLimit) {
335 if(target>=targetLimit) {
418 if(target<targetLimit) {
478 while(source+1<sourceLimit && target<targetLimit && (uint8_t)((b=*source)-UC0)>(Urs-UC0)) {
492 if(target>=targetLimit) {
590 const UChar *targetLimit; local
[all...]
H A Ducnv_ext.cpp236 UChar **target, const UChar *targetLimit,
244 target, targetLimit,
254 target, targetLimit,
273 * target<targetLimit; set error code for overflow
279 UChar **target, const UChar *targetLimit,
299 target, targetLimit,
394 &pArgs->target, pArgs->targetLimit,
671 char **target, const char *targetLimit,
735 target, targetLimit,
741 * target<targetLimit; se
234 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, uint32_t value, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t srcIndex, UErrorCode *pErrorCode) argument
276 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, int32_t firstLength, const char **src, const char *srcLimit, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t srcIndex, UBool flush, UErrorCode *pErrorCode) argument
669 ucnv_extWriteFromU(UConverter *cnv, const int32_t *cx, uint32_t value, char **target, const char *targetLimit, int32_t **offsets, int32_t srcIndex, UErrorCode *pErrorCode) argument
744 ucnv_extInitialMatchFromU(UConverter *cnv, const int32_t *cx, UChar32 cp, const UChar **src, const UChar *srcLimit, char **target, const char *targetLimit, int32_t **offsets, int32_t srcIndex, UBool flush, UErrorCode *pErrorCode) argument
[all...]
H A Ducnv_ct.c331 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; local
349 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) {
354 if(target < targetLimit){
433 if (target < targetLimit) {
488 if(myTarget < args->targetLimit){
528 if (myTarget < args->targetLimit) {
H A Ducnvmbcs.cpp1101 uint8_t **target, const uint8_t *targetLimit,
1113 (char **)target, (char *)targetLimit,
1147 bytes, 4, (char **)target, (char *)targetLimit,
1168 UChar **target, const UChar *targetLimit,
1178 target, targetLimit,
1203 ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode);
2027 const UChar *targetLimit; local
2043 targetLimit=pArgs->targetLimit;
2065 if(target>=targetLimit) {
1098 _extFromU(UConverter *cnv, const UConverterSharedData *sharedData, UChar32 cp, const UChar **source, const UChar *sourceLimit, uint8_t **target, const uint8_t *targetLimit, int32_t **offsets, int32_t sourceIndex, UBool flush, UErrorCode *pErrorCode) argument
1165 _extToU(UConverter *cnv, const UConverterSharedData *sharedData, int8_t length, const uint8_t **source, const uint8_t *sourceLimit, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UBool flush, UErrorCode *pErrorCode) argument
2459 const UChar *targetLimit; local
[all...]
H A Ducnvisci.c828 #define WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err){ \
831 if(target < targetLimit){ \
845 if (!(target < targetLimit)) { \
856 if(target < targetLimit){ \
895 unsigned char *targetLimit = (unsigned char *) args->targetLimit; local
905 if ((args->converter == NULL) || (args->targetLimit < args->target) || (args->sourceLimit < args->source)) {
926 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err);
940 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err);
1023 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,tem
1177 const UChar* targetLimit = args->targetLimit; local
[all...]
H A Dunistr_cnv.cpp155 char *targetLimit = (char *)U_MAX_PTR(target); local
156 // U_MAX_PTR(target) returns a targetLimit that is at most 0x7fffffff
158 capacity = (int32_t)(targetLimit - target);
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
H A DCharsetUTF8.java84 int targetLimit = target.arrayOffset() + target.limit();
144 if (targetIndex >= targetLimit) {
162 if (targetIndex >= targetLimit) {
174 if (targetIndex >= targetLimit) {
204 int targetLimit = target.limit();
279 if (targetIndex >= targetLimit) {
299 if (targetIndex >= targetLimit) {
311 if (targetIndex >= targetLimit) {
369 int targetLimit = target.arrayOffset() + target.limit();
380 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit,
541 encodeFourBytes(char[] sourceArray, byte[] targetArray, int sourceLimit, int targetLimit, int char32) argument
[all...]
/external/icu/icu4c/source/common/unicode/
H A Ducnv_err.h199 const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ member in struct:__anon5582
215 const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ member in struct:__anon5583
H A Ducnv.h1114 * @param targetLimit the pointer just after last of the <TT>target</TT> buffer
1139 const char *targetLimit,
1182 * @param targetLimit the pointer just after the end of the <TT>target</TT> buffer
1208 const UChar *targetLimit,
1456 * @param targetLimit Pointer to the first unit after the target buffer.
1496 char **target, const char *targetLimit,
/external/icu/icu4c/source/test/intltest/
H A Dconvtest.cpp863 UChar *target, *targetLimit, *resultLimit; local
880 targetLimit=resultLimit;
885 targetLimit=target;
898 &target, targetLimit,
904 if(source>sourceLimit || target>targetLimit) {
908 if(target!=targetLimit) {
912 } else if(targetLimit==resultLimit) {
918 targetLimit=(resultLimit-target)>=step ? target+step : resultLimit;
994 targetLimit=target<resultLimit ? target+1 : resultLimit;
1008 &target, targetLimit,
1266 char *target, *targetLimit, *resultLimit; local
1370 char *target, *targetLimit, *resultLimit; local
[all...]
/external/icu/icu4c/source/samples/ucnv/
H A Dconvsamp.cpp297 UChar *targetLimit; local
332 targetLimit = uBuf + uBufSize;
334 ucnv_toUnicode(conv, &target, targetLimit,
877 UChar *targetLimit; local
921 targetLimit = uBuf + uBufSize;
923 ucnv_toUnicode( conv, &target, targetLimit,
982 char *targetLimit; local
1027 targetLimit = buf + bufSize;
1029 ucnv_fromUnicode( conv, &target, targetLimit,
/external/icu/icu4c/source/test/perf/convperf/
H A Dconvperf.h30 UChar* targetLimit; member in class:ICUToUnicodePerfFunction
42 targetLimit = NULL;
48 targetLimit = target + reqdLen;
59 ucnv_toUnicode(conv, &myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status);
75 char* targetLimit; member in class:ICUFromUnicodePerfFunction
88 targetLimit = NULL;
94 targetLimit = target + reqdLen;
105 ucnv_fromUnicode(conv,&myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status);
/external/icu/icu4c/source/test/cintltst/
H A Dccapitst.c411 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; local
417 targetLimit=0;
419 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err);
422 targetLimit=targetCapacity+1;
423 target=(char*)malloc(sizeof(char) * targetLimit);
424 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err);
436 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source+1, -1, &err);
444 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, 0, &err);
451 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err);
458 targetLimit
2146 const char *srcLimit, *finalSrcLimit, *targetLimit; local
3211 char* targetLimit = target + 10; local
3246 char* targetLimit = target + 2; /* expect overflow from converting \\U00101234\\U00050005 */ local
3317 UChar* targetLimit = target + 20; local
3354 UChar* targetLimit = target + 1; /* expect overflow from converting */ local
[all...]

Completed in 3764 milliseconds

12