/external/icu/icu4c/source/common/ |
H A D | ucnv_cnv.c | 51 char **target, const char *targetLimit, 60 while(length>0 && t<targetLimit) { 66 while(length>0 && t<targetLimit) { 91 UChar **target, const UChar *targetLimit, 100 while(length>0 && t<targetLimit) { 106 while(length>0 && t<targetLimit) { 131 UChar **target, const UChar *targetLimit, 140 if(t<targetLimit) { 147 if(t<targetLimit) { 49 ucnv_fromUWriteBytes(UConverter *cnv, const char *bytes, int32_t length, char **target, const char *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument 89 ucnv_toUWriteUChars(UConverter *cnv, const UChar *uchars, int32_t length, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument 129 ucnv_toUWriteCodePoint(UConverter *cnv, UChar32 c, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument
|
H A D | ucnv_u32.c | 53 const UChar *targetLimit = args->targetLimit; local 58 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { 67 while (mySource < sourceLimit && myTarget < targetLimit) { 96 if (myTarget < targetLimit) { 116 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) { 133 const UChar *targetLimit = args->targetLimit; local 139 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { 148 while (mySource < sourceLimit && myTarget < targetLimit) { 219 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local 321 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local 515 const UChar *targetLimit = args->targetLimit; local 601 const UChar *targetLimit = args->targetLimit; local 697 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local 807 const unsigned char *targetLimit = (unsigned char *) args->targetLimit; local [all...] |
H A D | ucnv_u7.c | 214 const UChar *targetLimit; local 238 targetLimit=pArgs->targetLimit; 266 targetCapacity=(int32_t)(targetLimit-target); 295 if(source<sourceLimit && target>=targetLimit) { 312 if(target<targetLimit) { 464 uint8_t *target, *targetLimit; local 483 targetLimit=(uint8_t *)pArgs->targetLimit; 502 targetCapacity=(int32_t)(targetLimit 896 const UChar *targetLimit; local 1163 uint8_t *target, *targetLimit; local [all...] |
H A D | ucnv_u8.c | 108 const UChar *targetLimit = args->targetLimit; local 115 if (cnv->toUnicodeStatus && myTarget < targetLimit) 127 while (mySource < sourceLimit && myTarget < targetLimit) 195 if (myTarget < targetLimit) 219 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) 238 const UChar *targetLimit = args->targetLimit; local 245 if (cnv->toUnicodeStatus && myTarget < targetLimit) 256 while (mySource < sourceLimit && myTarget < targetLimit) 366 const uint8_t *targetLimit = (uint8_t *) args->targetLimit; local 481 const uint8_t *targetLimit = (uint8_t *) args->targetLimit; local [all...] |
H A D | ucnv.c | 1118 char **target, const char *targetLimit, 1136 if(t==targetLimit) { 1171 char **target, const char *targetLimit, 1216 * An adjustment would be targetLimit=t+0x7fffffff; for example. 1221 if (sourceLimit<s || targetLimit<t || 1223 ((size_t)(targetLimit-t)>(size_t)0x7fffffff && targetLimit>t) || 1232 ucnv_outputOverflowFromUnicode(cnv, target, targetLimit, &offsets, err) 1246 * !flush && t==targetLimit 1259 args.targetLimit 1117 ucnv_outputOverflowFromUnicode(UConverter *cnv, char **target, const char *targetLimit, int32_t **pOffsets, UErrorCode *err) argument 1170 ucnv_fromUnicode(UConverter *cnv, char **target, const char *targetLimit, const UChar **source, const UChar *sourceLimit, int32_t *offsets, UBool flush, UErrorCode *err) argument 1563 ucnv_outputOverflowToUnicode(UConverter *cnv, UChar **target, const UChar *targetLimit, int32_t **pOffsets, UErrorCode *err) argument 1616 ucnv_toUnicode(UConverter *cnv, UChar **target, const UChar *targetLimit, const char **source, const char *sourceLimit, int32_t *offsets, UBool flush, UErrorCode *err) argument 2046 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 2414 const char *targetLimit; local [all...] |
H A D | ucnv_cb.c | 50 &args->target, args->targetLimit, 85 args->targetLimit, 106 /* && (*source < sourceLimit && args->target >= args->targetLimit) 241 &args->target, args->targetLimit,
|
H A D | ucnv_cnv.h | 96 * - U_BUFFER_OVERFLOW_ERROR and the target is full: target==targetLimit 301 char **target, const char *targetLimit, 308 UChar **target, const UChar *targetLimit, 316 UChar **target, const UChar *targetLimit,
|
H A D | ucnvbocu.cpp | 409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 458 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); 667 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 707 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); 961 const UChar *targetLimit; local 976 targetLimit=pArgs->targetLimit; 996 if(count>0 && byteIndex>0 && target<targetLimit) { 1004 count=(int32_t)(pArgs->targetLimit-target); 1034 if(target>=targetLimit) { 1184 const UChar *targetLimit; local [all...] |
H A D | ucnv_u16.c | 75 &pArgs->target, pArgs->targetLimit, 82 if(target >= pArgs->targetLimit) { 87 targetCapacity=(uint32_t)(pArgs->targetLimit-target); 237 (char **)&target, pArgs->targetLimit, 240 targetCapacity=(uint32_t)(pArgs->targetLimit-(char *)target); 278 if(target >= pArgs->targetLimit) { 283 targetCapacity=(uint32_t)(pArgs->targetLimit-target); 674 &pArgs->target, pArgs->targetLimit, 681 if(target >= pArgs->targetLimit) { 686 targetCapacity=(uint32_t)(pArgs->targetLimit [all...] |
H A D | ucnv2022.cpp | 434 uint8_t **target, const char *targetLimit, 440 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit, 1300 args->targetLimit, 1675 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; local 1697 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { 1702 if(target < targetLimit) { 1994 } else if(outLen == 2 && (target + 2) <= targetLimit) { 2006 &target, (const char *)targetLimit, 2074 &target, (const char *)targetLimit, 432 fromUWriteUInt8(UConverter *cnv, const char *bytes, int32_t length, uint8_t **target, const char *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument 2368 unsigned char *targetLimit = (unsigned char *) args->targetLimit; local 2927 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; local [all...] |
H A D | ucnv_ext.h | 356 UChar **target, const UChar *targetLimit, 376 char **target, const char *targetLimit,
|
H A D | ucnvlat1.c | 46 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 153 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 309 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { 338 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); 485 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); 557 } else if(source<sourceLimit && target>=pArgs->targetLimit) { 625 targetCapacity=(int32_t)(pFromUArgs->targetLimit-pFromUArgs->target); 683 } else if(source<sourceLimit && target>=(const uint8_t *)pFromUArgs->targetLimit) {
|
H A D | ucnvscsu.c | 238 const UChar *targetLimit; local 255 targetLimit=pArgs->targetLimit; 292 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { 312 if(target<targetLimit) { 337 if(target>=targetLimit) { 420 if(target<targetLimit) { 480 while(source+1<sourceLimit && target<targetLimit && (uint8_t)((b=*source)-UC0)>(Urs-UC0)) { 494 if(target>=targetLimit) { 592 const UChar *targetLimit; local [all...] |
H A D | ucnv_ext.cpp | 238 UChar **target, const UChar *targetLimit, 246 target, targetLimit, 256 target, targetLimit, 275 * target<targetLimit; set error code for overflow 281 UChar **target, const UChar *targetLimit, 301 target, targetLimit, 396 &pArgs->target, pArgs->targetLimit, 673 char **target, const char *targetLimit, 740 target, targetLimit, 746 * target<targetLimit; se 236 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 278 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 671 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 749 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 D | ucnv_ct.c | 333 const uint8_t *targetLimit = (const uint8_t *) args->targetLimit; local 351 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) { 356 if(target < targetLimit){ 435 if (target < targetLimit) { 490 if(myTarget < args->targetLimit){ 530 if (myTarget < args->targetLimit) {
|
H A D | ucnvmbcs.cpp | 1107 uint8_t **target, const uint8_t *targetLimit, 1119 (char **)target, (char *)targetLimit, 1153 bytes, 4, (char **)target, (char *)targetLimit, 1174 UChar **target, const UChar *targetLimit, 1184 target, targetLimit, 1209 ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode); 2037 const UChar *targetLimit; local 2053 targetLimit=pArgs->targetLimit; 2075 if(target>=targetLimit) { 1104 _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 1171 _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 2469 const UChar *targetLimit; local [all...] |
H A D | ucnvisci.c | 830 #define WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err){ \ 833 if(target < targetLimit){ \ 847 if (!(target < targetLimit)) { \ 858 if(target < targetLimit){ \ 897 unsigned char *targetLimit = (unsigned char *) args->targetLimit; local 907 if ((args->converter == NULL) || (args->targetLimit < args->target) || (args->sourceLimit < args->source)) { 928 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err); 942 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err); 1025 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,tem 1179 const UChar* targetLimit = args->targetLimit; local [all...] |
H A D | unistr_cnv.cpp | 157 char *targetLimit = (char *)U_MAX_PTR(target); local 158 // U_MAX_PTR(target) returns a targetLimit that is at most 0x7fffffff 160 capacity = (int32_t)(targetLimit - target);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetUTF8.java | 87 int targetLimit = target.arrayOffset() + target.limit(); 147 if (targetIndex >= targetLimit) { 165 if (targetIndex >= targetLimit) { 177 if (targetIndex >= targetLimit) { 207 int targetLimit = target.limit(); 282 if (targetIndex >= targetLimit) { 302 if (targetIndex >= targetLimit) { 314 if (targetIndex >= targetLimit) { 374 int targetLimit = target.arrayOffset() + target.limit(); 385 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit, 546 encodeFourBytes(char[] sourceArray, byte[] targetArray, int sourceLimit, int targetLimit, int char32) argument [all...] |
/external/icu/icu4c/source/common/unicode/ |
H A D | ucnv_err.h | 201 const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ member in struct:__anon7245 217 const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ member in struct:__anon7246
|
H A D | ucnv.h | 1121 * @param targetLimit the pointer just after last of the <TT>target</TT> buffer 1146 const char *targetLimit, 1189 * @param targetLimit the pointer just after the end of the <TT>target</TT> buffer 1215 const UChar *targetLimit, 1463 * @param targetLimit Pointer to the first unit after the target buffer. 1503 char **target, const char *targetLimit,
|
/external/icu/icu4c/source/test/intltest/ |
H A D | convtest.cpp | 865 UChar *target, *targetLimit, *resultLimit; local 882 targetLimit=resultLimit; 887 targetLimit=target; 900 &target, targetLimit, 906 if(source>sourceLimit || target>targetLimit) { 910 if(target!=targetLimit) { 914 } else if(targetLimit==resultLimit) { 920 targetLimit=(resultLimit-target)>=step ? target+step : resultLimit; 996 targetLimit=target<resultLimit ? target+1 : resultLimit; 1010 &target, targetLimit, 1268 char *target, *targetLimit, *resultLimit; local 1372 char *target, *targetLimit, *resultLimit; local [all...] |
/external/icu/icu4c/source/samples/ucnv/ |
H A D | convsamp.cpp | 304 UChar *targetLimit; local 339 targetLimit = uBuf + uBufSize; 341 ucnv_toUnicode(conv, &target, targetLimit, 884 UChar *targetLimit; local 928 targetLimit = uBuf + uBufSize; 930 ucnv_toUnicode( conv, &target, targetLimit, 989 char *targetLimit; local 1034 targetLimit = buf + bufSize; 1036 ucnv_fromUnicode( conv, &target, targetLimit,
|
/external/icu/icu4c/source/test/perf/convperf/ |
H A D | convperf.h | 34 UChar* targetLimit; member in class:ICUToUnicodePerfFunction 46 targetLimit = NULL; 52 targetLimit = target + reqdLen; 63 ucnv_toUnicode(conv, &myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); 79 char* targetLimit; member in class:ICUFromUnicodePerfFunction 92 targetLimit = NULL; 98 targetLimit = target + reqdLen; 109 ucnv_fromUnicode(conv,&myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status);
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | ccapitst.c | 413 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; local 419 targetLimit=0; 421 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err); 424 targetLimit=targetCapacity+1; 425 target=(char*)malloc(sizeof(char) * targetLimit); 426 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); 438 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source+1, -1, &err); 446 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, 0, &err); 453 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); 460 targetLimit 2148 const char *srcLimit, *finalSrcLimit, *targetLimit; local 3213 char* targetLimit = target + 10; local 3248 char* targetLimit = target + 2; /* expect overflow from converting \\U00101234\\U00050005 */ local 3319 UChar* targetLimit = target + 20; local 3356 UChar* targetLimit = target + 1; /* expect overflow from converting */ local [all...] |