Home
last modified time | relevance | path

Searched refs:sourceLimit (Results 1 – 25 of 34) sorted by relevance

12

/external/icu/icu4c/source/common/
Ducnv_u32.c50 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE() local
65 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
70 if (mySource < sourceLimit) { in T_UConverter_toUnicode_UTF32_BE()
114 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) { in T_UConverter_toUnicode_UTF32_BE()
130 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() local
146 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
151 if (mySource < sourceLimit) { 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()
216 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_BE() local
222 if(mySource >= sourceLimit) { in T_UConverter_fromUnicode_UTF32_BE()
[all …]
Ducnvlat1.c53 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _Latin1ToUnicodeWithOffsets()
121 if(source<(const uint8_t *)pArgs->sourceLimit) { in _Latin1GetNextUChar()
136 const UChar *source, *sourceLimit; in _Latin1FromUnicodeWithOffsets() local
149 sourceLimit=pArgs->sourceLimit; in _Latin1FromUnicodeWithOffsets()
170 length=(int32_t)(sourceLimit-source); in _Latin1FromUnicodeWithOffsets()
271 if(source<sourceLimit) { in _Latin1FromUnicodeWithOffsets()
307 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets()
324 const uint8_t *source, *sourceLimit; in ucnv_Latin1FromUTF8() local
334 sourceLimit=(uint8_t *)pToUArgs->sourceLimit; in ucnv_Latin1FromUTF8()
340 if(c!=0 && source<sourceLimit) { in ucnv_Latin1FromUTF8()
[all …]
Ducnv_u8.c105 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in ucnv_toUnicode_UTF8() local
125 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
142 if (mySource < sourceLimit) in ucnv_toUnicode_UTF8()
217 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8()
235 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
254 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
271 if (mySource < sourceLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
347 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
362 const UChar *sourceLimit = args->sourceLimit; in ucnv_fromUnicode_UTF8() local
378 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_fromUnicode_UTF8()
[all …]
Ducnv.c884 realSourceLimit=pArgs->sourceLimit; in _fromUnicodeWithCallback()
890 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
923 pArgs->flush && pArgs->source==pArgs->sourceLimit && in _fromUnicodeWithCallback()
973 realSourceLimit=pArgs->sourceLimit; in _fromUnicodeWithCallback()
979 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
998 if(s<pArgs->sourceLimit) { in _fromUnicodeWithCallback()
1007 pArgs->sourceLimit=realSourceLimit; in _fromUnicodeWithCallback()
1072 length=(int32_t)(pArgs->sourceLimit-pArgs->source); in _fromUnicodeWithCallback()
1079 pArgs->sourceLimit=realSourceLimit; in _fromUnicodeWithCallback()
1180 const UChar **source, const UChar *sourceLimit, in ucnv_fromUnicode() argument
[all …]
Ducnv_u7.c209 const uint8_t *source, *sourceLimit; in _UTF7ToUnicodeWithOffsets() local
233 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF7ToUnicodeWithOffsets()
262 length=(int32_t)(sourceLimit-source); in _UTF7ToUnicodeWithOffsets()
292 if(source<sourceLimit && target>=targetLimit) { in _UTF7ToUnicodeWithOffsets()
308 while(source<sourceLimit) { in _UTF7ToUnicodeWithOffsets()
435 if(U_SUCCESS(*pErrorCode) && pArgs->flush && source==sourceLimit && bits==0) { in _UTF7ToUnicodeWithOffsets()
460 const UChar *source, *sourceLimit; in _UTF7FromUnicodeWithOffsets() local
478 sourceLimit=pArgs->sourceLimit; in _UTF7FromUnicodeWithOffsets()
498 length=(int32_t)(sourceLimit-source); in _UTF7FromUnicodeWithOffsets()
545 if(source<sourceLimit && target>=targetLimit) { in _UTF7FromUnicodeWithOffsets()
[all …]
Ducnvbocu.cpp393 const UChar *source, *sourceLimit; in _Bocu1FromUnicodeWithOffsets() local
407 sourceLimit=pArgs->sourceLimit; in _Bocu1FromUnicodeWithOffsets()
431 diff=(int32_t)(sourceLimit-source); in _Bocu1FromUnicodeWithOffsets()
462 while(source<sourceLimit) { in _Bocu1FromUnicodeWithOffsets()
486 if(source<sourceLimit) { in _Bocu1FromUnicodeWithOffsets()
647 const UChar *source, *sourceLimit; in _Bocu1FromUnicode() local
656 sourceLimit=pArgs->sourceLimit; in _Bocu1FromUnicode()
675 diff=(int32_t)(sourceLimit-source); in _Bocu1FromUnicode()
701 while(source<sourceLimit) { in _Bocu1FromUnicode()
721 if(source<sourceLimit) { in _Bocu1FromUnicode()
[all …]
Ducnvscsu.c234 const uint8_t *source, *sourceLimit; in _SCSUToUnicodeWithOffsets() local
251 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _SCSUToUnicodeWithOffsets()
290 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { in _SCSUToUnicodeWithOffsets()
334 while(source<sourceLimit) { in _SCSUToUnicodeWithOffsets()
478 … while(source+1<sourceLimit && target<targetLimit && (uint8_t)((b=*source)-UC0)>(Urs-UC0)) { in _SCSUToUnicodeWithOffsets()
491 while(source<sourceLimit) { in _SCSUToUnicodeWithOffsets()
588 const uint8_t *source, *sourceLimit; in _SCSUToUnicode() local
602 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _SCSUToUnicode()
636 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { in _SCSUToUnicode()
665 while(source<sourceLimit) { in _SCSUToUnicode()
[all …]
Ducnv_u16.c60 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16BEFromUnicodeWithOffsets()
207 if(source<pArgs->sourceLimit) { in _UTF16BEFromUnicodeWithOffsets()
241 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16BEFromUnicodeWithOffsets()
269 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _UTF16BEToUnicodeWithOffsets()
491 const uint8_t *s, *sourceLimit; in _UTF16BEGetNextUChar() local
499 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF16BEGetNextUChar()
501 if(s>=sourceLimit) { in _UTF16BEGetNextUChar()
507 if(s+2>sourceLimit) { in _UTF16BEGetNextUChar()
523 if(s+2<=sourceLimit) { in _UTF16BEGetNextUChar()
539 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16BEGetNextUChar()
[all …]
Ducnvmbcs.cpp1100 const UChar **source, const UChar *sourceLimit, in _extFromU() argument
1112 cp, source, sourceLimit, in _extFromU()
1167 const uint8_t **source, const uint8_t *sourceLimit, in _extToU() argument
1177 length, (const char **)source, (const char *)sourceLimit, in _extToU()
2025 const uint8_t *source, *sourceLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() local
2041 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in ucnv_MBCSSingleToUnicodeWithOffsets()
2056 while(source<sourceLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2147 1, &source, sourceLimit, in ucnv_MBCSSingleToUnicodeWithOffsets()
2177 const uint8_t *source, *sourceLimit, *lastSource; in ucnv_MBCSSingleToBMPWithOffsets() local
2192 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in ucnv_MBCSSingleToBMPWithOffsets()
[all …]
Ducnv_ct.c179 static int32_t findNextEsc(const char *source, const char *sourceLimit) { in findNextEsc() argument
180 int32_t length = sourceLimit - source; in findNextEsc()
223 static COMPOUND_TEXT_CONVERTERS findStateFromEscSeq(const char* source, const char* sourceLimit, co… in findStateFromEscSeq() argument
236 } else if ((source + (n - offset)) >= sourceLimit) { in findStateFromEscSeq()
333 const UChar* sourceLimit = args->sourceLimit; in UConverter_fromUnicode_CompoundText_OFFSETS() local
353 while( source < sourceLimit){ in UConverter_fromUnicode_CompoundText_OFFSETS()
362 if(source < sourceLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
464 const char *mySourceLimit = args->sourceLimit; in UConverter_toUnicode_CompoundText_OFFSETS()
541 subArgs.sourceLimit = tmpSourceLimit; in UConverter_toUnicode_CompoundText_OFFSETS()
Ducnv2022.cpp845 const char* sourceLimit, in changeState_2022() argument
856 while (*source < sourceLimit) { in changeState_2022()
1083 const char* sourceLimit, in getEndOfBuffer_2022() argument
1089 if (*source >= sourceLimit) in getEndOfBuffer_2022()
1090 return sourceLimit; in getEndOfBuffer_2022()
1107 (mySource+i < sourceLimit)&&(value == VALID_NON_TERMINAL_2022); in getEndOfBuffer_2022()
1115 return sourceLimit; in getEndOfBuffer_2022()
1117 }while (++mySource < sourceLimit); in getEndOfBuffer_2022()
1119 return sourceLimit; in getEndOfBuffer_2022()
1121 while(mySource < sourceLimit && *mySource != ESC_2022) { in getEndOfBuffer_2022()
[all …]
Ducnv_lmb.c881 while (args->source < args->sourceLimit && !U_FAILURE(*err)) in _LMBCSFromUnicode()
1102 if (args->source+index > args->sourceLimit){\
1104 args->source = args->sourceLimit;\
1117 if (args->source >= args->sourceLimit) in _LMBCSGetNextUCharWorker()
1263 while (U_SUCCESS(*err) && args->sourceLimit > args->source && args->targetLimit > args->target) in _LMBCSToUnicodeWithOffsets()
1274 size_t size_new_maybe_2 = args->sourceLimit - args->source; in _LMBCSToUnicodeWithOffsets()
1280 saveSourceLimit = args->sourceLimit; in _LMBCSToUnicodeWithOffsets()
1282 args->sourceLimit = LMBCS+size_old+size_new; in _LMBCSToUnicodeWithOffsets()
1286 args->sourceLimit = saveSourceLimit; in _LMBCSToUnicodeWithOffsets()
1293 args->source = args->sourceLimit; in _LMBCSToUnicodeWithOffsets()
[all …]
Ducnv_cb.c56 const UChar* sourceLimit, in ucnv_cbFromUWriteUChars() argument
85 sourceLimit, in ucnv_cbFromUWriteUChars()
140 sourceLimit, in ucnv_cbFromUWriteUChars()
Ducnvisci.c893 const UChar *sourceLimit = args->sourceLimit; 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()
919 while (source < sourceLimit) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
1063 if (source < sourceLimit) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
1176 const char *sourceLimit = args->sourceLimit; in UConverter_toUnicode_ISCII_OFFSETS_LOGIC() local
1197 while (U_SUCCESS(*err) && source<sourceLimit) { in UConverter_toUnicode_ISCII_OFFSETS_LOGIC()
1491 if (U_SUCCESS(*err) && args->flush && source == sourceLimit) { in UConverter_toUnicode_ISCII_OFFSETS_LOGIC()
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp294 const char *sourceLimit; in convsample_05() local
327 sourceLimit = inBuf + count; in convsample_05()
335 &source, sourceLimit, NULL, in convsample_05()
362 } while (source < sourceLimit); // while simply out of space in convsample_05()
394 const char *sourceLimit; in convsample_06() local
442 sourceLimit = inBuf + count; in convsample_06()
444 while(source < sourceLimit) in convsample_06()
446 p = ucnv_getNextUChar(conv, &source, sourceLimit, &status); in convsample_06()
566 const char *source, *sourceLimit; in convsample_13() local
579 sourceLimit = sourceChars + sizeof(sourceChars); in convsample_13()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF8.java81 int sourceLimit = source.arrayOffset() + source.limit(); in decodeLoop() local
110 if (sourceIndex >= sourceLimit) { in decodeLoop()
158 if (sourceIndex >= sourceLimit) { in decodeLoop()
170 if (sourceIndex >= sourceLimit) { in decodeLoop()
202 int sourceLimit = source.limit(); in decodeLoop() local
230 if (sourceIndex >= sourceLimit) { in decodeLoop()
295 if (sourceIndex >= sourceLimit) { in decodeLoop()
307 if (sourceIndex >= sourceLimit) { in decodeLoop()
366 int sourceLimit = source.arrayOffset() + source.limit(); in encodeLoop() local
380 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit, in encodeLoop()
[all …]
DCharsetCompoundText.java199 int sourceLimit = source.limit(); in findNextEsc() local
200 for (int i = (source.position() + 1); i < sourceLimit; i++) { in findNextEsc()
205 return sourceLimit; in findNextEsc()
246 int sourceLimit = source.limit(); in findStateFromEscSeq() local
256 } else if ((sourceIndex + (n - offset)) >= sourceLimit) { in findStateFromEscSeq()
513 int sourceLimit = source.limit();; in decodeLoop() local
588 source.limit(sourceLimit); in decodeLoop()
/external/icu/icu4c/source/test/intltest/
Dconvtest.cpp862 const char *source, *sourceLimit, *bytesLimit; in stepToUnicode() local
879 sourceLimit=bytesLimit; in stepToUnicode()
884 sourceLimit=source; in stepToUnicode()
899 &source, sourceLimit, in stepToUnicode()
904 if(source>sourceLimit || target>targetLimit) { in stepToUnicode()
924 if(source!=sourceLimit) { in stepToUnicode()
930 if(sourceLimit==bytesLimit) { in stepToUnicode()
936 sourceLimit=(bytesLimit-source)>=step ? source+step : bytesLimit; in stepToUnicode()
937 flush=(UBool)(cc.finalFlush && sourceLimit==bytesLimit); in stepToUnicode()
956 sourceLimit=source; // use sourceLimit not as a real limit in stepToUnicode()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dncnvtst.c1021 UChar *sourceLimit=0; in convertFromU() local
1038 sourceLimit=(UChar*)src+(sourceLen); in convertFromU()
1046 sourceLimit, in convertFromU()
1111 uint8_t *sourceLimit=0; in convertToU() local
1131 sourceLimit=(uint8_t*)(src+(sourceLen)); in convertToU()
1142 (const char *)sourceLimit, in convertToU()
1211 const UChar *sourceLimit; in testConvertFromU() local
1259 sourceLimit = nct_min(src + gInBufferSize, realSourceEnd); in testConvertFromU()
1261 doFlush = (UBool)(sourceLimit == realSourceEnd); in testConvertFromU()
1268 …code @ SOURCE:%08lx to %08lx TARGET: %08lx to %08lx, flush=%s\n", src,sourceLimit, targ,end, doFl… in testConvertFromU()
[all …]
Dncnvfbts.c146 const UChar *sourceLimit; in testConvertFromUnicode() local
194 sourceLimit = nct_min(src + gInBufferSize, realSourceEnd); in testConvertFromUnicode()
196 doFlush = (UBool)(sourceLimit == realSourceEnd); in testConvertFromUnicode()
203 …code @ SOURCE:%08lx to %08lx TARGET: %08lx to %08lx, flush=%s\n", src,sourceLimit, targ,end, doFl… in testConvertFromUnicode()
212 sourceLimit, in testConvertFromUnicode()
217 } while ( (status == U_BUFFER_OVERFLOW_ERROR) || (sourceLimit < realSourceEnd) ); in testConvertFromUnicode()
Dccapitst.c411 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local
415 sourceLimit=sizeof(source)/sizeof(source[0]); in TestConvert()
419 …y=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
424 …ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
450 sourceLimit=sizeof(source)/sizeof(source[0]); in TestConvert()
451 …ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
457 sourceLimit=sizeof(source)/sizeof(source[0]); in TestConvert()
459 …ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
3213 const UChar* sourceLimit = source + fromUnicodeTests[i].len; in TestFromUCountPending() local
3216 ucnv_fromUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status); in TestFromUCountPending()
[all …]
/external/icu/icu4c/source/common/unicode/
Ducnv_err.h197 …const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
213 …const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
Ducnv.h1141 const UChar * sourceLimit,
1210 const char *sourceLimit,
1353 const char * sourceLimit,
1497 const char **source, const char *sourceLimit,
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.c170 const char* sourceLimit =NULL; in ucbuf_fillucbuf() local
219 sourceLimit = source + inputRead; in ucbuf_fillucbuf()
221 &source,sourceLimit,NULL, in ucbuf_fillucbuf()
258 …stop = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-… in ucbuf_fillucbuf()
290 &source,sourceLimit,NULL, in ucbuf_fillucbuf()
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.h57 const char* sourceLimit = src + srcLen; in call() local
59 ucnv_toUnicode(conv, &myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); in call()
103 const UChar* sourceLimit = src + srcLen; in call() local
105 ucnv_fromUnicode(conv,&myTarget, targetLimit, &mySrc, sourceLimit, NULL, TRUE, status); in call()

12