Lines Matching defs:targetLimit
411 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0;
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=0;
459 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err);
461 log_err("FAILURE! ucnv_convert() with targetLimit=0 is expected to throw U_BUFFER_OVERFLOW_ERROR\n");
2146 const char *srcLimit, *finalSrcLimit, *targetLimit;
2164 targetLimit=targetBuffer+chunkSize;
2181 &target, targetLimit,
2186 if(target>targetLimit) {
2187 log_err("ucnv_convertEx(%s) chunk[%d] target %p exceeds targetLimit %p\n",
2188 testName, chunkSize, target, targetLimit);
2195 targetLimit=target+chunkSize;
2197 targetLimit=targetBuffer+sizeof(targetBuffer);
3211 char* targetLimit = target + 10;
3216 ucnv_fromUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3246 char* targetLimit = target + 2; /* expect overflow from converting \U00101234\U00050005 */
3251 ucnv_fromUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3262 ucnv_fromUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3273 ucnv_fromUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3317 UChar* targetLimit = target + 20;
3322 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3354 UChar* targetLimit = target + 1; /* expect overflow from converting */
3364 ucnv_toUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3374 ucnv_toUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
3385 targetLimit = target;
3386 ucnv_toUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);