Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/common/
Ducnv_u32.cpp52 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE() local
67 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
72 if (mySource < sourceLimit) { in T_UConverter_toUnicode_UTF32_BE()
116 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) { in T_UConverter_toUnicode_UTF32_BE()
132 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() local
148 while (mySource < sourceLimit && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
153 if (mySource < sourceLimit) { 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()
218 const UChar *sourceLimit = args->sourceLimit; in T_UConverter_fromUnicode_UTF32_BE() local
224 if(mySource >= sourceLimit) { in T_UConverter_fromUnicode_UTF32_BE()
[all …]
Ducnvlat1.cpp57 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _Latin1ToUnicodeWithOffsets()
125 if(source<(const uint8_t *)pArgs->sourceLimit) { in _Latin1GetNextUChar()
140 const UChar *source, *sourceLimit; in _Latin1FromUnicodeWithOffsets() local
153 sourceLimit=pArgs->sourceLimit; in _Latin1FromUnicodeWithOffsets()
174 length=(int32_t)(sourceLimit-source); in _Latin1FromUnicodeWithOffsets()
275 if(source<sourceLimit) { in _Latin1FromUnicodeWithOffsets()
311 if(U_SUCCESS(*pErrorCode) && source<sourceLimit && target>=(uint8_t *)pArgs->targetLimit) { in _Latin1FromUnicodeWithOffsets()
328 const uint8_t *source, *sourceLimit; in ucnv_Latin1FromUTF8() local
338 sourceLimit=(uint8_t *)pToUArgs->sourceLimit; in ucnv_Latin1FromUTF8()
348 if(c!=0 && source<sourceLimit) { in ucnv_Latin1FromUTF8()
[all …]
Ducnv_u8.cpp71 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in ucnv_toUnicode_UTF8() local
91 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
108 if (mySource < sourceLimit) in ucnv_toUnicode_UTF8()
171 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8()
189 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
208 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
225 if (mySource < sourceLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
289 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
305 const UChar *sourceLimit = args->sourceLimit; in ucnv_fromUnicode_UTF8() local
321 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_fromUnicode_UTF8()
[all …]
Ducnv.cpp876 realSourceLimit=pArgs->sourceLimit; in _fromUnicodeWithCallback()
882 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
915 pArgs->flush && pArgs->source==pArgs->sourceLimit && in _fromUnicodeWithCallback()
965 realSourceLimit=pArgs->sourceLimit; in _fromUnicodeWithCallback()
971 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
990 if(s<pArgs->sourceLimit) { in _fromUnicodeWithCallback()
999 pArgs->sourceLimit=realSourceLimit; in _fromUnicodeWithCallback()
1064 length=(int32_t)(pArgs->sourceLimit-pArgs->source); in _fromUnicodeWithCallback()
1071 pArgs->sourceLimit=realSourceLimit; in _fromUnicodeWithCallback()
1172 const UChar **source, const UChar *sourceLimit, in ucnv_fromUnicode() argument
[all …]
Ducnv_u7.cpp214 const uint8_t *source, *sourceLimit; in _UTF7ToUnicodeWithOffsets() local
238 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF7ToUnicodeWithOffsets()
267 length=(int32_t)(sourceLimit-source); in _UTF7ToUnicodeWithOffsets()
297 if(source<sourceLimit && target>=targetLimit) { in _UTF7ToUnicodeWithOffsets()
313 while(source<sourceLimit) { in _UTF7ToUnicodeWithOffsets()
440 if(U_SUCCESS(*pErrorCode) && pArgs->flush && source==sourceLimit && bits==0) { in _UTF7ToUnicodeWithOffsets()
465 const UChar *source, *sourceLimit; in _UTF7FromUnicodeWithOffsets() local
483 sourceLimit=pArgs->sourceLimit; in _UTF7FromUnicodeWithOffsets()
503 length=(int32_t)(sourceLimit-source); in _UTF7FromUnicodeWithOffsets()
550 if(source<sourceLimit && target>=targetLimit) { in _UTF7FromUnicodeWithOffsets()
[all …]
Ducnvbocu.cpp395 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()
656 const UChar *source, *sourceLimit; in _Bocu1FromUnicode() local
665 sourceLimit=pArgs->sourceLimit; in _Bocu1FromUnicode()
684 diff=(int32_t)(sourceLimit-source); in _Bocu1FromUnicode()
710 while(source<sourceLimit) { in _Bocu1FromUnicode()
730 if(source<sourceLimit) { in _Bocu1FromUnicode()
[all …]
Ducnv_u16.cpp64 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16BEFromUnicodeWithOffsets()
211 if(source<pArgs->sourceLimit) { in _UTF16BEFromUnicodeWithOffsets()
245 if(U_SUCCESS(*pErrorCode) && source<pArgs->sourceLimit && targetCapacity==0) { in _UTF16BEFromUnicodeWithOffsets()
273 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _UTF16BEToUnicodeWithOffsets()
495 const uint8_t *s, *sourceLimit; in _UTF16BEGetNextUChar() local
503 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF16BEGetNextUChar()
505 if(s>=sourceLimit) { in _UTF16BEGetNextUChar()
511 if(s+2>sourceLimit) { in _UTF16BEGetNextUChar()
527 if(s+2<=sourceLimit) { in _UTF16BEGetNextUChar()
543 pArgs->converter->toULength=(int8_t)(sourceLimit-s); in _UTF16BEGetNextUChar()
[all …]
Ducnvscsu.cpp236 const uint8_t *source, *sourceLimit; in _SCSUToUnicodeWithOffsets() local
253 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _SCSUToUnicodeWithOffsets()
292 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { in _SCSUToUnicodeWithOffsets()
336 while(source<sourceLimit) { in _SCSUToUnicodeWithOffsets()
480 … while(source+1<sourceLimit && target<targetLimit && (uint8_t)((b=*source)-UC0)>(Urs-UC0)) { in _SCSUToUnicodeWithOffsets()
493 while(source<sourceLimit) { in _SCSUToUnicodeWithOffsets()
590 const uint8_t *source, *sourceLimit; in _SCSUToUnicode() local
604 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _SCSUToUnicode()
638 while(source<sourceLimit && target<targetLimit && (b=*source)>=0x20) { in _SCSUToUnicode()
667 while(source<sourceLimit) { in _SCSUToUnicode()
[all …]
Ducnvmbcs.cpp1107 const UChar **source, const UChar *sourceLimit, in _extFromU() argument
1119 cp, source, sourceLimit, in _extFromU()
1174 const uint8_t **source, const uint8_t *sourceLimit, in _extToU() argument
1184 length, (const char **)source, (const char *)sourceLimit, in _extToU()
2036 const uint8_t *source, *sourceLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() local
2052 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in ucnv_MBCSSingleToUnicodeWithOffsets()
2067 while(source<sourceLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2158 1, &source, sourceLimit, in ucnv_MBCSSingleToUnicodeWithOffsets()
2188 const uint8_t *source, *sourceLimit, *lastSource; in ucnv_MBCSSingleToBMPWithOffsets() local
2203 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in ucnv_MBCSSingleToBMPWithOffsets()
[all …]
Ducnv_ct.cpp182 static int32_t findNextEsc(const char *source, const char *sourceLimit) { in findNextEsc() argument
183 int32_t length = static_cast<int32_t>(sourceLimit - source); in findNextEsc()
226 static COMPOUND_TEXT_CONVERTERS findStateFromEscSeq(const char* source, const char* sourceLimit, co… in findStateFromEscSeq() argument
239 } else if ((source + (n - offset)) >= sourceLimit) { in findStateFromEscSeq()
340 const UChar* sourceLimit = args->sourceLimit; in UConverter_fromUnicode_CompoundText_OFFSETS() local
360 while( source < sourceLimit){ in UConverter_fromUnicode_CompoundText_OFFSETS()
369 if(source < sourceLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
471 const char *mySourceLimit = args->sourceLimit; in UConverter_toUnicode_CompoundText_OFFSETS()
548 subArgs.sourceLimit = tmpSourceLimit; in UConverter_toUnicode_CompoundText_OFFSETS()
Ducnv2022.cpp834 const char* sourceLimit, in changeState_2022() argument
845 while (*source < sourceLimit) { in changeState_2022()
1072 const char* sourceLimit, in getEndOfBuffer_2022() argument
1078 if (*source >= sourceLimit) in getEndOfBuffer_2022()
1079 return sourceLimit; in getEndOfBuffer_2022()
1096 (mySource+i < sourceLimit)&&(value == VALID_NON_TERMINAL_2022); in getEndOfBuffer_2022()
1104 return sourceLimit; in getEndOfBuffer_2022()
1106 }while (++mySource < sourceLimit); in getEndOfBuffer_2022()
1108 return sourceLimit; in getEndOfBuffer_2022()
1110 while(mySource < sourceLimit && *mySource != ESC_2022) { in getEndOfBuffer_2022()
[all …]
Ducnv_lmb.cpp890 while (args->source < args->sourceLimit && !U_FAILURE(*err)) in _LMBCSFromUnicode()
1111 if (args->source+index > args->sourceLimit){\
1113 args->source = args->sourceLimit;\
1126 if (args->source >= args->sourceLimit) in _LMBCSGetNextUCharWorker()
1272 while (U_SUCCESS(*err) && args->sourceLimit > args->source && args->targetLimit > args->target) in _LMBCSToUnicodeWithOffsets()
1283 size_t size_new_maybe_2 = args->sourceLimit - args->source; in _LMBCSToUnicodeWithOffsets()
1289 saveSourceLimit = args->sourceLimit; in _LMBCSToUnicodeWithOffsets()
1291 args->sourceLimit = LMBCS+size_old+size_new; in _LMBCSToUnicodeWithOffsets()
1295 args->sourceLimit = saveSourceLimit; in _LMBCSToUnicodeWithOffsets()
1302 args->source = args->sourceLimit; in _LMBCSToUnicodeWithOffsets()
[all …]
Ducnv_cb.cpp58 const UChar* sourceLimit, in ucnv_cbFromUWriteUChars() argument
87 sourceLimit, in ucnv_cbFromUWriteUChars()
142 sourceLimit, in ucnv_cbFromUWriteUChars()
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp303 const char *sourceLimit; in convsample_05() local
336 sourceLimit = inBuf + count; in convsample_05()
344 &source, sourceLimit, NULL, in convsample_05()
371 } while (source < sourceLimit); // while simply out of space in convsample_05()
403 const char *sourceLimit; in convsample_06() local
451 sourceLimit = inBuf + count; in convsample_06()
453 while(source < sourceLimit) in convsample_06()
455 p = ucnv_getNextUChar(conv, &source, sourceLimit, &status); in convsample_06()
575 const char *source, *sourceLimit; in convsample_13() local
588 sourceLimit = sourceChars + sizeof(sourceChars); in convsample_13()
[all …]
/external/icu/icu4c/source/test/intltest/
Dconvtest.cpp750 const char *sourceLimit = text + strlen(text); in TestUTF8ToUTF8Overflow() local
763 &target, result + 2, &source, sourceLimit, in TestUTF8ToUTF8Overflow()
773 &target, targetLimit, &source, sourceLimit, in TestUTF8ToUTF8Overflow()
789 sourceLimit = text2 + strlen(text2); in TestUTF8ToUTF8Overflow()
796 &target, result + 3, &source, sourceLimit, in TestUTF8ToUTF8Overflow()
806 &target, targetLimit, &source, sourceLimit, in TestUTF8ToUTF8Overflow()
822 sourceLimit = illFormed + strlen(illFormed); in TestUTF8ToUTF8Overflow()
849 &target, targetLimit, &source, sourceLimit, in TestUTF8ToUTF8Overflow()
976 const char *source, *sourceLimit, *bytesLimit; in stepToUnicode() local
993 sourceLimit=bytesLimit; in stepToUnicode()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF8.java65 int sourceLimit = source.arrayOffset() + source.limit(); in decodeLoop() local
94 if (sourceIndex >= sourceLimit) { in decodeLoop()
142 if (sourceIndex >= sourceLimit) { in decodeLoop()
154 if (sourceIndex >= sourceLimit) { in decodeLoop()
188 int sourceLimit = source.limit(); in decodeLoop() local
216 if (sourceIndex >= sourceLimit) { in decodeLoop()
268 if (sourceIndex >= sourceLimit) { in decodeLoop()
280 if (sourceIndex >= sourceLimit) { in decodeLoop()
343 int sourceLimit = source.arrayOffset() + source.limit(); in encodeLoop() local
357 cr = encodeFourBytes(sourceArray, targetArray, sourceLimit, targetLimit, in encodeLoop()
[all …]
DCharsetCompoundText.java201 int sourceLimit = source.limit(); in findNextEsc() local
202 for (int i = (source.position() + 1); i < sourceLimit; i++) { in findNextEsc()
207 return sourceLimit; in findNextEsc()
248 int sourceLimit = source.limit(); in findStateFromEscSeq() local
258 } else if ((sourceIndex + (n - offset)) >= sourceLimit) { in findStateFromEscSeq()
519 int sourceLimit = source.limit();; in decodeLoop() local
594 source.limit(sourceLimit); in decodeLoop()
/external/icu/icu4c/source/test/cintltst/
Dncnvtst.c1019 UChar *sourceLimit=0; in convertFromU() local
1036 sourceLimit=(UChar*)src+(sourceLen); in convertFromU()
1044 sourceLimit, in convertFromU()
1109 uint8_t *sourceLimit=0; in convertToU() local
1129 sourceLimit=(uint8_t*)(src+(sourceLen)); in convertToU()
1140 (const char *)sourceLimit, in convertToU()
1209 const UChar *sourceLimit; in testConvertFromU() local
1257 sourceLimit = nct_min(src + gInBufferSize, realSourceEnd); in testConvertFromU()
1259 doFlush = (UBool)(sourceLimit == realSourceEnd); in testConvertFromU()
1266 …code @ SOURCE:%08lx to %08lx TARGET: %08lx to %08lx, flush=%s\n", src,sourceLimit, targ,end, doFl… in testConvertFromU()
[all …]
Dncnvfbts.c148 const UChar *sourceLimit; in testConvertFromUnicode() local
196 sourceLimit = nct_min(src + gInBufferSize, realSourceEnd); in testConvertFromUnicode()
198 doFlush = (UBool)(sourceLimit == realSourceEnd); in testConvertFromUnicode()
205 …code @ SOURCE:%08lx to %08lx TARGET: %08lx to %08lx, flush=%s\n", src,sourceLimit, targ,end, doFl… in testConvertFromUnicode()
214 sourceLimit, in testConvertFromUnicode()
219 } while ( (status == U_BUFFER_OVERFLOW_ERROR) || (sourceLimit < realSourceEnd) ); in testConvertFromUnicode()
Dccapitst.c414 int32_t targetLimit=0, sourceLimit=0, i=0, targetCapacity=0; in TestConvert() local
418 sourceLimit=UPRV_LENGTHOF(source); in TestConvert()
422 …y=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
427 …ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
453 sourceLimit=UPRV_LENGTHOF(source); in TestConvert()
454 …ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
460 sourceLimit=UPRV_LENGTHOF(source); in TestConvert()
462 …ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err); in TestConvert()
3236 const UChar* sourceLimit = source + fromUnicodeTests[i].len; in TestFromUCountPending() local
3239 ucnv_fromUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status); in TestFromUCountPending()
[all …]
/external/icu/libandroidicu/include/unicode/
Ducnv.h1147 const UChar * sourceLimit,
1216 const char *sourceLimit,
1359 const char * sourceLimit,
1503 const char **source, const char *sourceLimit,
Ducnv_err.h199 …const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
215 …const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
/external/icu/icu4c/source/common/unicode/
Ducnv.h1147 const UChar * sourceLimit,
1216 const char *sourceLimit,
1359 const char * sourceLimit,
1503 const char **source, const char *sourceLimit,
Ducnv_err.h199 …const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
215 …const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.cpp172 const char* sourceLimit =NULL; in ucbuf_fillucbuf() local
221 sourceLimit = source + inputRead; in ucbuf_fillucbuf()
223 &source,sourceLimit,NULL, in ucbuf_fillucbuf()
260 …stop = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-… in ucbuf_fillucbuf()
292 &source,sourceLimit,NULL, in ucbuf_fillucbuf()

12