Home
last modified time | relevance | path

Searched refs:srcLen (Results 1 – 25 of 62) sorted by relevance

123

/external/icu/icu4c/source/test/perf/normperf/
Dnormperf.h32 typedef int32_t (*NormFn)(const UChar* src,int32_t srcLen, UChar* dest,int32_t dstLen, int32_t opti…
33 typedef int32_t (*QuickCheckFn)(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t o…
44 int32_t srcLen; variable
63 retVal = (*fn)(src,srcLen,mode, options, status); in call()
78 return srcLen; in getOperationsPerIteration()
88 srcLen = 0; in QuickCheckPerfFunction()
98 srcLen = sourceLen; in QuickCheckPerfFunction()
115 int32_t srcLen; variable
133 retVal = (*fn)(src,srcLen,pDest,destLen, options, status); in call()
147 return srcLen; in getOperationsPerIteration()
[all …]
/external/icu/icu4c/source/tools/genrb/
Dprscmnts.cpp47 removeText(UChar *source, int32_t srcLen, in removeText() argument
55 UnicodeString src(source, srcLen); in removeText()
67 return dest.extract(source, srcLen, *status); in removeText()
71 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() argument
72srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim()
73srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim()
74srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe tr… in trim()
75 return srcLen; in trim()
79 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){ in removeCmtText() argument
80 srcLen = trim(source, srcLen, status); in removeCmtText()
[all …]
Drle.c150 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument
154 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString()
159 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString()
161 for (; i<srcLen; ++i) { in usArrayToRLEString()
196 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument
200 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString()
207 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString()
208 for (; i<srcLen; ++i) { in byteArrayToRLEString()
241 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* … in rleStringToUCharArray() argument
250 if(srcLen == -1){ in rleStringToUCharArray()
[all …]
Dprscmnts.h37 getNote(const UChar* source, int32_t srcLen,
41 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
44 getDescription( const UChar* source, int32_t srcLen,
48 getTranslate( const UChar* source, int32_t srcLen,
53 getAt(const UChar* source, int32_t srcLen,
60 getCount(const UChar* source, int32_t srcLen,
Drle.h42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode…
59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* …
65 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* st…
70 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* …
/external/icu/icu4c/source/test/perf/ustrperf/
Dstringperf.h63 typedef void (*ICUStringPerfFn)(const UChar* src,int32_t srcLen, UnicodeString s0);
64 typedef void (*StdStringPerfFn)(const wchar_t* src,int32_t srcLen, stlstring s0);
391 inline void ctor(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor() argument
396 inline void ctor1(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor1() argument
401 inline void ctor2(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor2() argument
406 inline void ctor3(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor3() argument
408 UnicodeString d(src,srcLen); in ctor3()
411 inline UnicodeString icu_assign_helper(const UChar* src,int32_t srcLen) in icu_assign_helper() argument
413 if (srcLen==-1) { return src;} in icu_assign_helper()
414 else { return UnicodeString(src, srcLen);} in icu_assign_helper()
[all …]
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.h32 int32_t srcLen; variable
40 srcLen = sourceLen; in ICUToUnicodePerfFunction()
48 source, srcLen, &status); in ICUToUnicodePerfFunction()
61 const char* sourceLimit = src + srcLen; in call()
66 return srcLen; in getOperationsPerIteration()
77 int32_t srcLen; variable
86 srcLen = sourceLen; in ICUFromUnicodePerfFunction()
94 source, srcLen, &status); in ICUFromUnicodePerfFunction()
107 const UChar* sourceLimit = src + srcLen; in call()
112 return srcLen; in getOperationsPerIteration()
[all …]
/external/lzma/C/
DLzma2Dec.c176 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) in Lzma2Dec_DecodeToDic() argument
178 SizeT inSize = *srcLen; in Lzma2Dec_DecodeToDic()
179 *srcLen = 0; in Lzma2Dec_DecodeToDic()
202 if (*srcLen == inSize) in Lzma2Dec_DecodeToDic()
207 (*srcLen)++; in Lzma2Dec_DecodeToDic()
215 SizeT inCur = inSize - *srcLen; in Lzma2Dec_DecodeToDic()
247 *srcLen += inCur; in Lzma2Dec_DecodeToDic()
269 *srcLen += inCur; in Lzma2Dec_DecodeToDic()
308 const Byte *src, SizeT *srcLen, in Lzma2Dec_Parse() argument
311 SizeT inSize = *srcLen; in Lzma2Dec_Parse()
[all …]
DLzma86Dec.c12 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) in Lzma86_GetUnpackSize() argument
15 if (srcLen < LZMA86_HEADER_SIZE) in Lzma86_GetUnpackSize()
23 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) in Lzma86_Decode() argument
30 if (*srcLen < LZMA86_HEADER_SIZE) in Lzma86_Decode()
41 inSizePure = *srcLen - LZMA86_HEADER_SIZE; in Lzma86_Decode()
44 *srcLen = inSizePure + LZMA86_HEADER_SIZE; in Lzma86_Decode()
DLzma86Enc.c16 int Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen, in Lzma86_Encode() argument
34 UInt64 t = srcLen; in Lzma86_Encode()
43 if (srcLen != 0) in Lzma86_Encode()
45 filteredStream = (Byte *)MyAlloc(srcLen); in Lzma86_Encode()
48 memcpy(filteredStream, src, srcLen); in Lzma86_Encode()
53 x86_Convert(filteredStream, srcLen, 0, &x86State, 1); in Lzma86_Encode()
81 curModeIsFiltered ? filteredStream : src, srcLen, in Lzma86_Encode()
DLzmaLib.c9 …_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, in LzmaCompress() argument
30 return LzmaEncode(dest, destLen, src, srcLen, &props, outProps, outPropsSize, 0, in LzmaCompress()
35 …DAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen, in LzmaUncompress() argument
39 …return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize, LZMA_FINISH_ANY, &status… in LzmaUncompress()
DLzma2Dec.h49 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
52 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
80 const Byte *src, SizeT *srcLen,
115 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
DLzma86.h71 SRes Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen,
87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
107 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen);
DXzDec.c176 const Byte *src, SizeT *srcLen, int srcWasFinished, in BraState_Code2() argument
183 SizeT srcRem = *srcLen; in BraState_Code2()
187 *srcLen = 0; in BraState_Code2()
215 *srcLen += size; in BraState_Code2()
292 static SRes SbState_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in SbState_Code2() argument
303 p->srcLen = *srcLen; in SbState_Code2()
307 *srcLen -= p->srcLen; in SbState_Code2()
309 *status = (*destLen == 0 && *srcLen == 0) ? in SbState_Code2()
382 static SRes Lzma2State_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2State_Code2() argument
396 …res = Lzma2Dec_DecodeToDic(&spec->decoder, dicLimit, src, srcLen, (ELzmaFinishMode)finishMode, &st… in Lzma2State_Code2()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dspreptst.c295 unescapeData(const char* src, int32_t srcLen, in unescapeData() argument
298 (void)srcLen; // suppress compiler warnings about unused variable in unescapeData()
446 int32_t srcLen; in Test_nfs4_mixed_prep() local
453srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZ… in Test_nfs4_mixed_prep()
458 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); in Test_nfs4_mixed_prep()
462 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); in Test_nfs4_mixed_prep()
479 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_mixed_prep() local
481 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); in Test_nfs4_mixed_prep()
506 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_cs_prep() local
509 …int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); in Test_nfs4_cs_prep()
[all …]
Dcbiditst.c100 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
1421 int32_t srcLen, destLen, runCount, i; in doMisc() local
1455 srcLen = u_unescape("abc ", src, MAXLEN); in doMisc()
1456 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
1467 srcLen = u_unescape("abc def", src, MAXLEN); in doMisc()
1468 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
1479 srcLen = u_unescape("abcdefghi ", src, MAXLEN); in doMisc()
1480 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
1492 srcLen = u_unescape("\\u200eabc def", src, MAXLEN); in doMisc()
1493 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
[all …]
/external/skqp/src/pdf/
DSkPDFConvertType1FontStream.cpp129 size_t srcLen = srcStream ? srcStream->getLength() : 0; in SkPDFConvertType1FontStream() local
130 SkASSERT(srcLen); in SkPDFConvertType1FontStream()
131 if (!srcLen) { in SkPDFConvertType1FontStream()
136 SkAutoTMalloc<uint8_t> sourceBuffer(SkToInt(srcLen + 1)); in SkPDFConvertType1FontStream()
137 (void)srcStream->read(sourceBuffer.get(), srcLen); in SkPDFConvertType1FontStream()
138 sourceBuffer[SkToInt(srcLen)] = 0; in SkPDFConvertType1FontStream()
141 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in SkPDFConvertType1FontStream()
145 SkASSERT(length + (2 * kPFBSectionHeaderLength) <= srcLen); in SkPDFConvertType1FontStream()
170 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in SkPDFConvertType1FontStream()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestStreaming.java78 int srcLen, processedLen, chunk, len, nPortions, offset; in testStreaming() local
94 srcLen = src.length(); in testStreaming()
104 for (j = 0; j < MAXPORTIONS && srcLen > 0; j++) { in testStreaming()
105 len = chunk < srcLen ? chunk : srcLen; in testStreaming()
106 offset = src.length() - srcLen; in testStreaming()
122 srcLen -= processedLen; in testStreaming()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestStreaming.java81 int srcLen, processedLen, chunk, len, nPortions, offset; in testStreaming() local
97 srcLen = src.length(); in testStreaming()
107 for (j = 0; j < MAXPORTIONS && srcLen > 0; j++) { in testStreaming()
108 len = chunk < srcLen ? chunk : srcLen; in testStreaming()
109 offset = src.length() - srcLen; in testStreaming()
125 srcLen -= processedLen; in testStreaming()
/external/icu/icu4c/source/test/perf/strsrchperf/
Dstrsrchperf.h19 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn,…
25 int32_t srcLen; variable
32 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status); in call()
36 return (long) srcLen; in getOperationsPerIteration()
42 srcLen = sourceLen; in StringSearchPerfFunction()
52 int32_t srcLen; variable
Dstrsrchperf.cpp29 src = getBuffer(srcLen, status); in StringSearchPerformanceTest()
33 UBreakIterator* brk = ubrk_open(UBRK_WORD, locale, src, srcLen, &status); in StringSearchPerformanceTest()
68 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status); in StringSearchPerformanceTest()
99 …unction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen); in Test_ICU_Forward_Search()
104 …nction* func = new StringSearchPerfFunction(ICUBackwardSearch, srch, src, srcLen, pttrn, pttrnLen); in Test_ICU_Backward_Search()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DBase64.java191 int srcLen = 0; in decode() local
197 src[srcLen++] = val; in decode()
208 while (srcLen > 0 && src[srcLen - 1] == EQUAL) in decode()
210 srcLen--; in decode()
212 byte[] dst = new byte[srcLen * 3 / 4]; in decode()
/external/fastrpc/inc/
Dsbuf.h131 static __inline void sbuf_write(struct sbuf* buf, void *psrc, int srcLen) { in sbuf_write() argument
133 if(buf->bufCur + srcLen > buf->buf) { in sbuf_write()
137 srcLen -= len; in sbuf_write()
141 writeLen = STD_MIN(srcLen, sbuf_left(buf)); in sbuf_write()
146 sbuf_advance(buf, srcLen); in sbuf_write()
/external/icu/icu4c/source/test/intltest/
Dtestidna.cpp815 int32_t srcLen = u_strlen(src); //subtract null in testCompare() local
817 testCompare(src,srcLen,src,srcLen,testName, func, TRUE); in testCompare()
820 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in testCompare()
824 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE); in testCompare()
826 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE); in testCompare()
830 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE); in testCompare()
832 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE); in testCompare()
889 int32_t srcLen = u_strlen(start);
890 labelLen = getNextSeperator(start,srcLen,&limit);
892 labelLen=getNextSeperator(start,srcLen-labelLen,&limit);
[all …]
/external/skia/src/pdf/
DSkPDFType1Font.cpp137 size_t srcLen = srcStream ? srcStream->getLength() : 0; in convert_type1_font_stream() local
138 SkASSERT(srcLen); in convert_type1_font_stream()
139 if (!srcLen) { in convert_type1_font_stream()
144 SkAutoTMalloc<uint8_t> sourceBuffer(SkToInt(srcLen + 1)); in convert_type1_font_stream()
145 (void)srcStream->read(sourceBuffer.get(), srcLen); in convert_type1_font_stream()
146 sourceBuffer[SkToInt(srcLen)] = 0; in convert_type1_font_stream()
149 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in convert_type1_font_stream()
153 SkASSERT(length + (2 * kPFBSectionHeaderLength) <= srcLen); in convert_type1_font_stream()
178 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in convert_type1_font_stream()

123