Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/test/perf/normperf/
Dnormperf.h28 typedef int32_t (*NormFn)(const UChar* src,int32_t srcLen, UChar* dest,int32_t dstLen, int32_t opti…
29 typedef int32_t (*QuickCheckFn)(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t o…
40 int32_t srcLen; variable
59 retVal = (*fn)(src,srcLen,mode, options, status); in call()
74 return srcLen; in getOperationsPerIteration()
84 srcLen = 0; in QuickCheckPerfFunction()
94 srcLen = sourceLen; in QuickCheckPerfFunction()
111 int32_t srcLen; variable
129 retVal = (*fn)(src,srcLen,pDest,destLen, options, status); in call()
143 return srcLen; in getOperationsPerIteration()
[all …]
Dnormperf.cpp73 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormal… in normalizeInput() argument
78 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status); in normalizeInput()
82 reqLen= unorm_normalize(src,srcLen,mode, options,dest->name,reqLen+1,&status); in normalizeInput()
90 UChar* NormalizerPerformanceTest::normalizeInput(int32_t& len, const UChar* src ,int32_t srcLen,UNo… in normalizeInput() argument
96 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status); in normalizeInput()
100 reqLen= unorm_normalize(src,srcLen,mode, options,dest,reqLen+1,&status); in normalizeInput()
154 int32_t srcLen = 0; in NormalizerPerformanceTest() local
155 const UChar* src = getBuffer(srcLen,status); in NormalizerPerformanceTest()
164 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options); in NormalizerPerformanceTest()
165 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NFC, options); in NormalizerPerformanceTest()
/external/icu/icu4c/source/tools/genrb/
Dprscmnts.cpp45 removeText(UChar *source, int32_t srcLen, in removeText() argument
53 UnicodeString src(source, srcLen); in removeText()
65 return dest.extract(source, srcLen, *status); in removeText()
69 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() argument
70srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim()
71srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim()
72srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe tr… in trim()
73 return srcLen; in trim()
77 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){ in removeCmtText() argument
78 srcLen = trim(source, srcLen, status); in removeCmtText()
[all …]
Drle.c148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument
152 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString()
157 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString()
159 for (; i<srcLen; ++i) { in usArrayToRLEString()
194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument
198 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString()
205 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString()
206 for (; i<srcLen; ++i) { in byteArrayToRLEString()
239 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* … in rleStringToUCharArray() argument
248 if(srcLen == -1){ in rleStringToUCharArray()
[all …]
Dprscmnts.h33 getNote(const UChar* source, int32_t srcLen,
37 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status);
40 getDescription( const UChar* source, int32_t srcLen,
44 getTranslate( const UChar* source, int32_t srcLen,
49 getAt(const UChar* source, int32_t srcLen,
56 getCount(const UChar* source, int32_t srcLen,
Drle.h40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode…
57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* …
63 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* st…
68 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* …
/external/icu/icu4c/source/test/perf/ustrperf/
Dstringperf.h58 typedef void (*ICUStringPerfFn)(const UChar* src,int32_t srcLen, UnicodeString s0);
59 typedef void (*StdStringPerfFn)(const wchar_t* src,int32_t srcLen, stlstring s0);
386 inline void ctor(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor() argument
391 inline void ctor1(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor1() argument
396 inline void ctor2(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor2() argument
401 inline void ctor3(const UChar* src,int32_t srcLen, UnicodeString s0) in ctor3() argument
403 UnicodeString d(src,srcLen); in ctor3()
406 inline UnicodeString icu_assign_helper(const UChar* src,int32_t srcLen) in icu_assign_helper() argument
408 if (srcLen==-1) { return src;} in icu_assign_helper()
409 else { return UnicodeString(src, srcLen);} in icu_assign_helper()
[all …]
/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.h28 int32_t srcLen; variable
36 srcLen = sourceLen; in ICUToUnicodePerfFunction()
44 source, srcLen, &status); in ICUToUnicodePerfFunction()
57 const char* sourceLimit = src + srcLen; in call()
62 return srcLen; in getOperationsPerIteration()
73 int32_t srcLen; variable
82 srcLen = sourceLen; in ICUFromUnicodePerfFunction()
90 source, srcLen, &status); in ICUFromUnicodePerfFunction()
103 const UChar* sourceLimit = src + srcLen; in call()
108 return srcLen; in getOperationsPerIteration()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dspreptst.c292 unescapeData(const char* src, int32_t srcLen, in unescapeData() argument
442 int32_t srcLen; in Test_nfs4_mixed_prep() local
449srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZ… in Test_nfs4_mixed_prep()
454 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); in Test_nfs4_mixed_prep()
458 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); in Test_nfs4_mixed_prep()
475 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_mixed_prep() local
477 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); in Test_nfs4_mixed_prep()
502 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_cs_prep() local
505 …int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); in Test_nfs4_cs_prep()
512 if(destLen != srcLen){ in Test_nfs4_cs_prep()
[all …]
Dcbiditst.c97 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
1413 int32_t srcLen, destLen, runCount, i; in doMisc() local
1447 srcLen = u_unescape("abc ", src, MAXLEN); in doMisc()
1448 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
1459 srcLen = u_unescape("abc def", src, MAXLEN); in doMisc()
1460 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
1471 srcLen = u_unescape("abcdefghi ", src, MAXLEN); in doMisc()
1472 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
1484 srcLen = u_unescape("\\u200eabc def", src, MAXLEN); in doMisc()
1485 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc()
[all …]
/external/lzma/C/
DLzma2Dec.c171 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) in Lzma2Dec_DecodeToDic() argument
173 SizeT inSize = *srcLen; in Lzma2Dec_DecodeToDic()
174 *srcLen = 0; in Lzma2Dec_DecodeToDic()
189 if (*srcLen == inSize) in Lzma2Dec_DecodeToDic()
194 (*srcLen)++; in Lzma2Dec_DecodeToDic()
200 SizeT srcSizeCur = inSize - *srcLen; in Lzma2Dec_DecodeToDic()
211 if (*srcLen == inSize) in Lzma2Dec_DecodeToDic()
237 *srcLen += srcSizeCur; in Lzma2Dec_DecodeToDic()
265 *srcLen += srcSizeCur; in Lzma2Dec_DecodeToDic()
291 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,… in Lzma2Dec_DecodeToBuf() argument
[all …]
DLzma86Dec.c13 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) in Lzma86_GetUnpackSize() argument
16 if (srcLen < LZMA86_HEADER_SIZE) in Lzma86_GetUnpackSize()
24 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) in Lzma86_Decode() argument
32 if (*srcLen < LZMA86_HEADER_SIZE) in Lzma86_Decode()
43 inSizePure = *srcLen - LZMA86_HEADER_SIZE; in Lzma86_Decode()
46 *srcLen = inSizePure + LZMA86_HEADER_SIZE; in Lzma86_Decode()
DLzma86Enc.c17 int Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen, in Lzma86_Encode() argument
36 UInt64 t = srcLen; in Lzma86_Encode()
45 if (srcLen != 0) in Lzma86_Encode()
47 filteredStream = (Byte *)MyAlloc(srcLen); in Lzma86_Encode()
50 memcpy(filteredStream, src, srcLen); in Lzma86_Encode()
55 x86_Convert(filteredStream, srcLen, 0, &x86State, 1); in Lzma86_Encode()
83 curModeIsFiltered ? filteredStream : src, srcLen, in Lzma86_Encode()
DXzDec.c124 static SRes BraState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in BraState_Code() argument
129 SizeT srcLenOrig = *srcLen; in BraState_Code()
131 *srcLen = 0; in BraState_Code()
157 *srcLen += curSize; in BraState_Code()
246 static SRes SbState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in SbState_Code() argument
250 …SRes res = SubblockDec_Decode((CSubblockDec *)pp, dest, destLen, src, srcLen, finishMode, &status); in SbState_Code()
293 static SRes Lzma2State_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2State_Code() argument
298 SRes res = Lzma2Dec_DecodeToBuf((CLzma2Dec *)pp, dest, destLen, src, srcLen, finishMode, &status); in Lzma2State_Code()
376 const Byte *src, SizeT *srcLen, int srcWasFinished, in MixCoder_Code() argument
380 SizeT srcLenOrig = *srcLen; in MixCoder_Code()
[all …]
DLzmaLib.c15 …TDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, in LzmaCompress() argument
36 return LzmaEncode(dest, destLen, src, srcLen, &props, outProps, outPropsSize, 0, in LzmaCompress()
41 …PI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen, in LzmaUncompress() argument
45 …return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize, LZMA_FINISH_ANY, &status… in LzmaUncompress()
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);
DLzma2Dec.h52 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
55 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
77 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
DLzmaDec.c719 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, in LzmaDec_DecodeToDic() argument
722 SizeT inSize = *srcLen; in LzmaDec_DecodeToDic()
723 (*srcLen) = 0; in LzmaDec_DecodeToDic()
734 for (; inSize > 0 && p->tempBufSize < RC_INIT_SIZE; (*srcLen)++, inSize--) in LzmaDec_DecodeToDic()
783 (*srcLen) += inSize; in LzmaDec_DecodeToDic()
800 (*srcLen) += processed; in LzmaDec_DecodeToDic()
815 (*srcLen) += lookAhead; in LzmaDec_DecodeToDic()
829 (*srcLen) += lookAhead; in LzmaDec_DecodeToDic()
840 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, E… in LzmaDec_DecodeToBuf() argument
843 SizeT inSize = *srcLen; in LzmaDec_DecodeToBuf()
[all …]
DLzmaDec.h182 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
199 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
223 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestStreaming.java73 int srcLen, processedLen, chunk, len, nPortions, offset; in testStreaming() local
89 srcLen = src.length(); in testStreaming()
99 for (j = 0; j < MAXPORTIONS && srcLen > 0; j++) { in testStreaming()
100 len = chunk < srcLen ? chunk : srcLen; in testStreaming()
101 offset = src.length() - srcLen; in testStreaming()
117 srcLen -= processedLen; in testStreaming()
/external/icu/icu4c/source/test/perf/strsrchperf/
Dstrsrchperf.h14 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn,…
20 int32_t srcLen; variable
27 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status); in call()
31 return (long) srcLen; in getOperationsPerIteration()
37 srcLen = sourceLen; in StringSearchPerfFunction()
47 int32_t srcLen; variable
Dstrsrchperf.cpp24 src = getBuffer(srcLen, status); in StringSearchPerformanceTest()
28 UBreakIterator* brk = ubrk_open(UBRK_WORD, locale, src, srcLen, &status); in StringSearchPerformanceTest()
63 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status); in StringSearchPerformanceTest()
94 …unction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen); in Test_ICU_Forward_Search()
99 …nction* func = new StringSearchPerfFunction(ICUBackwardSearch, srch, src, srcLen, pttrn, pttrnLen); in Test_ICU_Backward_Search()
/external/lzma/CPP/Common/
DUTFConvert.cpp10 static Bool Utf8_To_Utf16(wchar_t *dest, size_t *destLen, const char *src, size_t srcLen) in Utf8_To_Utf16() argument
17 if (srcPos == srcLen) in Utf8_To_Utf16()
41 if (srcPos == srcLen) in Utf8_To_Utf16()
74 static Bool Utf16_To_Utf8(char *dest, size_t *destLen, const wchar_t *src, size_t srcLen) in Utf16_To_Utf8() argument
81 if (srcPos == srcLen) in Utf16_To_Utf8()
97 if (value >= 0xDC00 || srcPos == srcLen) in Utf16_To_Utf8()
/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/icu/icu4c/source/test/intltest/
Dtestidna.cpp807 int32_t srcLen = u_strlen(src); //subtract null in testCompare() local
809 testCompare(src,srcLen,src,srcLen,testName, func, TRUE); in testCompare()
812 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in testCompare()
816 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE); in testCompare()
818 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE); in testCompare()
822 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE); in testCompare()
824 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE); in testCompare()
881 int32_t srcLen = u_strlen(start);
882 labelLen = getNextSeperator(start,srcLen,&limit);
884 labelLen=getNextSeperator(start,srcLen-labelLen,&limit);
[all …]

12