Home
last modified time | relevance | path

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

12

/external/icu4c/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.c96 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in ucnv_toUnicode_UTF8() local
116 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8()
133 if (mySource < sourceLimit) in ucnv_toUnicode_UTF8()
208 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8()
226 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local
245 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
262 if (mySource < sourceLimit) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
338 if (mySource < sourceLimit && myTarget >= targetLimit && U_SUCCESS(*err)) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC()
353 const UChar *sourceLimit = args->sourceLimit; in ucnv_fromUnicode_UTF8() local
369 while (mySource < sourceLimit && myTarget < targetLimit) in ucnv_fromUnicode_UTF8()
[all …]
Ducnv.c876 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 …]
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 …]
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 …]
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.c963 const UChar **source, const UChar *sourceLimit, in _extFromU() argument
975 cp, source, sourceLimit, in _extFromU()
1030 const uint8_t **source, const uint8_t *sourceLimit, in _extToU() argument
1040 length, (const char **)source, (const char *)sourceLimit, in _extToU()
1888 const uint8_t *source, *sourceLimit; in ucnv_MBCSSingleToUnicodeWithOffsets() local
1904 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in ucnv_MBCSSingleToUnicodeWithOffsets()
1919 while(source<sourceLimit) { in ucnv_MBCSSingleToUnicodeWithOffsets()
2010 1, &source, sourceLimit, in ucnv_MBCSSingleToUnicodeWithOffsets()
2040 const uint8_t *source, *sourceLimit, *lastSource; in ucnv_MBCSSingleToBMPWithOffsets() local
2055 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in ucnv_MBCSSingleToBMPWithOffsets()
[all …]
Ducnv_ct.c181 static int32_t findNextEsc(const char *source, const char *sourceLimit) { in findNextEsc() argument
182 int32_t length = sourceLimit - source; in findNextEsc()
225 static COMPOUND_TEXT_CONVERTERS findStateFromEscSeq(const char* source, const char* sourceLimit, co… in findStateFromEscSeq() argument
238 } else if ((source + (n - offset)) >= sourceLimit) { in findStateFromEscSeq()
335 const UChar* sourceLimit = args->sourceLimit; in UConverter_fromUnicode_CompoundText_OFFSETS() local
355 while( source < sourceLimit){ in UConverter_fromUnicode_CompoundText_OFFSETS()
364 if(source < sourceLimit) { in UConverter_fromUnicode_CompoundText_OFFSETS()
466 const char *mySourceLimit = args->sourceLimit; in UConverter_toUnicode_CompoundText_OFFSETS()
543 subArgs.sourceLimit = tmpSourceLimit; in UConverter_toUnicode_CompoundText_OFFSETS()
Ducnv_lmb.c883 while (args->source < args->sourceLimit && !U_FAILURE(*err)) in _LMBCSFromUnicode()
1104 if (args->source+index > args->sourceLimit){\
1106 args->source = args->sourceLimit;\
1119 if (args->source >= args->sourceLimit) in _LMBCSGetNextUCharWorker()
1265 while (U_SUCCESS(*err) && args->sourceLimit > args->source && args->targetLimit > args->target) in _LMBCSToUnicodeWithOffsets()
1276 size_t size_new_maybe_2 = args->sourceLimit - args->source; in _LMBCSToUnicodeWithOffsets()
1282 saveSourceLimit = args->sourceLimit; in _LMBCSToUnicodeWithOffsets()
1284 args->sourceLimit = LMBCS+size_old+size_new; in _LMBCSToUnicodeWithOffsets()
1288 args->sourceLimit = saveSourceLimit; in _LMBCSToUnicodeWithOffsets()
1295 args->source = args->sourceLimit; in _LMBCSToUnicodeWithOffsets()
[all …]
Ducnv2022.cpp803 const char* sourceLimit, in changeState_2022() argument
814 while (*source < sourceLimit) { in changeState_2022()
1038 const char* sourceLimit, in getEndOfBuffer_2022() argument
1044 if (*source >= sourceLimit) in getEndOfBuffer_2022()
1045 return sourceLimit; in getEndOfBuffer_2022()
1062 (mySource+i < sourceLimit)&&(value == VALID_NON_TERMINAL_2022); in getEndOfBuffer_2022()
1070 return sourceLimit; in getEndOfBuffer_2022()
1072 }while (++mySource < sourceLimit); in getEndOfBuffer_2022()
1074 return sourceLimit; in getEndOfBuffer_2022()
1076 while(mySource < sourceLimit && *mySource != ESC_2022) { in getEndOfBuffer_2022()
[all …]
Ducnv_cb.c56 const UChar* sourceLimit, in ucnv_cbFromUWriteUChars() argument
85 sourceLimit, in ucnv_cbFromUWriteUChars()
140 sourceLimit, in ucnv_cbFromUWriteUChars()
/external/icu4c/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/icu4c/test/intltest/
Dconvtest.cpp788 const char *source, *sourceLimit, *bytesLimit; in stepToUnicode() local
805 sourceLimit=bytesLimit; in stepToUnicode()
810 sourceLimit=source; in stepToUnicode()
825 &source, sourceLimit, in stepToUnicode()
830 if(source>sourceLimit || target>targetLimit) { in stepToUnicode()
850 if(source!=sourceLimit) { in stepToUnicode()
856 if(sourceLimit==bytesLimit) { in stepToUnicode()
862 sourceLimit=(bytesLimit-source)>=step ? source+step : bytesLimit; in stepToUnicode()
863 flush=(UBool)(cc.finalFlush && sourceLimit==bytesLimit); in stepToUnicode()
882 sourceLimit=source; // use sourceLimit not as a real limit in stepToUnicode()
[all …]
/external/webkit/Source/WebCore/platform/text/
DTextCodecICU.cpp251 …er(UChar* target, UChar* targetLimit, const char*& source, const char* sourceLimit, int32_t* offse… in decodeToBuffer() argument
255 … ucnv_toUnicode(m_converterICU, &target, targetLimit, &source, sourceLimit, offsets, flush, &err); in decodeToBuffer()
314 const char* sourceLimit = source + length; in decode() local
319 … int ucharsDecoded = decodeToBuffer(buffer, bufferLimit, source, sourceLimit, offsets, flush, err); in decode()
326 decodeToBuffer(buffer, bufferLimit, source, sourceLimit, offsets, true, err); in decode()
327 } while (source < sourceLimit); in decode()
434 const UChar* sourceLimit = source + copy.length(); in encode() local
462 ucnv_fromUnicode(m_converterICU, &target, targetLimit, &source, sourceLimit, 0, true, &err); in encode()
/external/icu4c/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.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()
/external/webkit/Source/WebCore/icu/unicode/
Ducnv.h975 const UChar * sourceLimit,
1044 const char *sourceLimit,
1187 const char * sourceLimit,
1321 const char **source, const char *sourceLimit,
Ducnv_err.h190 …const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
206 …const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
/external/webkit/Source/JavaScriptGlue/icu/unicode/
Ducnv.h975 const UChar * sourceLimit,
1044 const char *sourceLimit,
1187 const char * sourceLimit,
1321 const char **source, const char *sourceLimit,
Ducnv_err.h190 …const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
206 …const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
/external/webkit/Source/JavaScriptCore/icu/unicode/
Ducnv.h975 const UChar * sourceLimit,
1044 const char *sourceLimit,
1187 const char * sourceLimit,
1321 const char **source, const char *sourceLimit,
Ducnv_err.h190 …const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
206 …const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 … member
/external/icu4c/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

12