Searched defs:srcLen (Results 1 - 25 of 61) sorted by last modified time

123

/external/skia/src/pdf/
H A DSkPDFFont.cpp164 size_t srcLen; local
165 if ((srcLen = srcStream->getLength()) > 0) {
166 staticStream.reset(new SkMemoryStream(srcLen + 1));
169 memcpy((void *)src, srcStream->getMemoryBase(), srcLen);
172 while (read < srcLen) {
174 srcLen - read);
182 ((uint8_t *)src)[srcLen] = 0;
194 srcLen = data->size() - 1;
201 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) {
216 if (parsePFA((const char*)src, srcLen, headerLe
[all...]
/external/lzma/C/
H A DLzma2Dec.c171 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
173 SizeT inSize = *srcLen;
174 *srcLen = 0;
189 if (*srcLen == inSize)
194 (*srcLen)++;
200 SizeT srcSizeCur = inSize - *srcLen;
211 if (*srcLen == inSize)
237 *srcLen += srcSizeCur;
265 *srcLen += srcSizeCur;
291 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMod argument
170 Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) argument
330 Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, Byte prop, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAlloc *alloc) argument
[all...]
H A DLzma86Dec.c13 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) argument
16 if (srcLen < LZMA86_HEADER_SIZE)
24 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) argument
32 if (*srcLen < LZMA86_HEADER_SIZE)
43 inSizePure = *srcLen - LZMA86_HEADER_SIZE;
46 *srcLen = inSizePure + LZMA86_HEADER_SIZE;
H A DLzma86Enc.c17 int Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen, argument
36 UInt64 t = srcLen;
45 if (srcLen != 0)
47 filteredStream = (Byte *)MyAlloc(srcLen);
50 memcpy(filteredStream, src, srcLen);
55 x86_Convert(filteredStream, srcLen, 0, &x86State, 1);
83 curModeIsFiltered ? filteredStream : src, srcLen,
H A DLzmaDec.c719 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, argument
722 SizeT inSize = *srcLen;
723 (*srcLen) = 0;
734 for (; inSize > 0 && p->tempBufSize < RC_INIT_SIZE; (*srcLen)++, inSize--)
783 (*srcLen) += inSize;
800 (*srcLen) += processed;
815 (*srcLen) += lookAhead;
829 (*srcLen) += lookAhead;
840 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) argument
843 SizeT inSize = *srcLen;
969 LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAlloc *alloc) argument
[all...]
H A DLzmaEnc.c2057 static void LzmaEnc_SetInputBuf(CLzmaEnc *p, const Byte *src, SizeT srcLen) argument
2061 p->matchFinderBase.directInputRem = srcLen;
2064 SRes LzmaEnc_MemPrepare(CLzmaEncHandle pp, const Byte *src, SizeT srcLen, argument
2068 LzmaEnc_SetInputBuf(p, src, srcLen);
2220 SRes LzmaEnc_MemEncode(CLzmaEncHandle pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, argument
2228 LzmaEnc_SetInputBuf(p, src, srcLen);
2238 res = LzmaEnc_MemPrepare(pp, src, srcLen, 0, alloc, allocBig);
2248 SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, argument
2262 res = LzmaEnc_MemEncode(p, dest, destLen, src, srcLen,
H A DLzmaLib.c15 MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, argument
36 return LzmaEncode(dest, destLen, src, srcLen, &props, outProps, outPropsSize, 0,
41 MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen, argument
45 return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize, LZMA_FINISH_ANY, &status, &g_Alloc);
H A DXzDec.c124 static SRes BraState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, argument
129 SizeT srcLenOrig = *srcLen;
131 *srcLen = 0;
157 *srcLen += curSize;
246 static SRes SbState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, argument
250 SRes res = SubblockDec_Decode((CSubblockDec *)pp, dest, destLen, src, srcLen, finishMode, &status);
293 static SRes Lzma2State_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, argument
298 SRes res = Lzma2Dec_DecodeToBuf((CLzma2Dec *)pp, dest, destLen, src, srcLen, finishMode, &status);
376 const Byte *src, SizeT *srcLen, int srcWasFinished,
380 SizeT srcLenOrig = *srcLen;
375 MixCoder_Code(CMixCoder *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, int srcWasFinished, ECoderFinishMode finishMode, ECoderStatus *status) argument
604 XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, int finishMode, ECoderStatus *status) argument
[all...]
/external/lzma/C/Util/7z/
H A D7zMain.c37 static Bool Utf16_To_Utf8(Byte *dest, size_t *destLen, const UInt16 *src, size_t srcLen) argument
44 if (srcPos == srcLen)
60 if (value >= 0xDC00 || srcPos == srcLen)
86 static SRes Utf16_To_Utf8Buf(CBuf *dest, const UInt16 *src, size_t srcLen) argument
90 Utf16_To_Utf8(NULL, &destLen, src, srcLen);
94 res = Utf16_To_Utf8(dest->data, &destLen, src, srcLen);
/external/lzma/CPP/Common/
H A DUTFConvert.cpp10 static Bool Utf8_To_Utf16(wchar_t *dest, size_t *destLen, const char *src, size_t srcLen) argument
17 if (srcPos == srcLen)
41 if (srcPos == srcLen)
74 static Bool Utf16_To_Utf8(char *dest, size_t *destLen, const wchar_t *src, size_t srcLen) argument
81 if (srcPos == srcLen)
97 if (value >= 0xDC00 || srcPos == srcLen)
/external/icu/icu4c/source/test/perf/normperf/
H A Dnormperf.cpp74 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ argument
79 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status);
83 reqLen= unorm_normalize(src,srcLen,mode, options,dest->name,reqLen+1,&status);
91 UChar* NormalizerPerformanceTest::normalizeInput(int32_t& len, const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ argument
97 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status);
101 reqLen= unorm_normalize(src,srcLen,mode, options,dest,reqLen+1,&status);
155 int32_t srcLen = 0; local
156 const UChar* src = getBuffer(srcLen,status);
165 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options);
166 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NF
[all...]
H A Dnormperf.h28 typedef int32_t (*NormFn)(const UChar* src,int32_t srcLen, UChar* dest,int32_t dstLen, int32_t options, UErrorCode* status);
29 typedef int32_t (*QuickCheckFn)(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status);
40 int32_t srcLen; member in class:QuickCheckPerfFunction
59 retVal = (*fn)(src,srcLen,mode, options, status);
74 return srcLen;
84 srcLen = 0;
94 srcLen = sourceLen;
111 int32_t srcLen; member in class:NormPerfFunction
129 retVal = (*fn)(src,srcLen,pDest,destLen, options, status);
143 return srcLen;
257 ICUNormNFD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
261 ICUNormNFC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
265 ICUNormNFKD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
268 ICUNormNFKC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
272 ICUNormFCD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
276 ICUQuickCheck(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
283 ICUIsNormalized(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
290 ICUNormNFD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
294 ICUNormNFC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
298 ICUNormNFKD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
301 ICUNormNFKC(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
305 ICUNormFCD(const UChar* src, int32_t srcLen,UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
309 ICUQuickCheck(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
313 ICUIsNormalized(const UChar* src,int32_t srcLen, UNormalizationMode mode, int32_t options, UErrorCode* status) argument
320 WinNormNFD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
324 WinNormNFC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
328 WinNormNFKD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
331 WinNormNFKC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
335 WinNormNFD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
339 WinNormNFC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
343 WinNormNFKD(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
346 WinNormNFKC(const UChar* src, int32_t srcLen, UChar* dest, int32_t dstLen, int32_t options, UErrorCode* status) argument
[all...]
/external/icu/icu4c/source/test/perf/strsrchperf/
H A Dstrsrchperf.h14 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn, int32_t pttrnLen, UErrorCode* status);
20 int32_t srcLen; member in class:StringSearchPerfFunction
27 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status);
31 return (long) srcLen;
37 srcLen = sourceLen;
47 int32_t srcLen; member in class:StringSearchPerformanceTest
/external/icu/icu4c/source/test/perf/ustrperf/
H A Dstringperf.cpp100 int32_t srcLen = 0; local
101 const UChar* src = getBuffer(srcLen,status);
107 StrBuffer = new UChar[srcLen];
108 StrBufferLen = srcLen;
109 memcpy(StrBuffer, src, srcLen * U_SIZEOF_UCHAR);
H A 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) argument
391 inline void ctor1(const UChar* src,int32_t srcLen, UnicodeString s0) argument
396 inline void ctor2(const UChar* src,int32_t srcLen, UnicodeString s0) argument
401 inline void ctor3(const UChar* src,int32_t srcLen, UnicodeString s0) argument
403 UnicodeString d(src,srcLen);
406 inline UnicodeString icu_assign_helper(const UChar* src,int32_t srcLen) argument
408 if (srcLen==-1) { return src;}
409 else { return UnicodeString(src, srcLen);}
412 assign(const UChar* src,int32_t srcLen, UnicodeString s0) argument
417 assign1(const UChar* src,int32_t srcLen, UnicodeString s0) argument
422 assign2(const UChar* src,int32_t srcLen, UnicodeString s0) argument
427 getch(const UChar* src,int32_t srcLen, UnicodeString s0) argument
433 catenate(const UChar* src,int32_t srcLen, UnicodeString s0) argument
450 scan(const UChar* src,int32_t srcLen, UnicodeString s0) argument
456 scan1(const UChar* src,int32_t srcLen, UnicodeString s0) argument
461 scan2(const UChar* src,int32_t srcLen, UnicodeString s0) argument
470 StdLibCtor(const wchar_t* src,int32_t srcLen, stlstring s0) argument
475 StdLibCtor1(const wchar_t* src,int32_t srcLen, stlstring s0) argument
480 StdLibCtor2(const wchar_t* src,int32_t srcLen, stlstring s0) argument
485 StdLibCtor3(const wchar_t* src,int32_t srcLen, stlstring s0) argument
494 stl_assign_helper(const wchar_t* src,int32_t srcLen) argument
500 StdLibAssign(const wchar_t* src,int32_t srcLen, stlstring s0) argument
505 StdLibAssign1(const wchar_t* src,int32_t srcLen, stlstring s0) argument
511 StdLibAssign2(const wchar_t* src,int32_t srcLen, stlstring s0) argument
516 StdLibGetch(const wchar_t* src,int32_t srcLen, stlstring s0) argument
521 StdLibCatenate(const wchar_t* src,int32_t srcLen, stlstring s0) argument
535 StdLibScan(const wchar_t* src,int32_t srcLen, stlstring s0) argument
540 StdLibScan1(const wchar_t* src,int32_t srcLen, stlstring s0) argument
545 StdLibScan2(const wchar_t* src,int32_t srcLen, stlstring s0) argument
[all...]
/external/icu/icu4c/source/tools/genrb/
H A Dprscmnts.cpp45 removeText(UChar *source, int32_t srcLen, argument
53 UnicodeString src(source, srcLen);
65 return dest.extract(source, srcLen, *status);
69 trim(UChar *src, int32_t srcLen, UErrorCode *status){ argument
70 srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // remove leading new lines
71 srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove leading spaces
72 srcLen = removeText(src, srcLen, UnicodeStrin
77 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status) argument
85 getText(const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UnicodeString patternString, UErrorCode* status) argument
122 getDescription( const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UErrorCode* status) argument
146 getCount(const UChar* source, int32_t srcLen, UParseCommentsOption option, UErrorCode *status) argument
183 getAt(const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, int32_t index, UParseCommentsOption option, UErrorCode* status) argument
225 getTranslate( const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UErrorCode* status) argument
235 getNote(const UChar* source, int32_t srcLen, UChar** dest, int32_t destCapacity, UErrorCode* status) argument
[all...]
H A Drle.c148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { argument
152 *buffer++ = (uint16_t)(srcLen>>16);
157 *buffer++ = (uint16_t) srcLen;
159 for (; i<srcLen; ++i) {
194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { argument
198 *buffer++ = ((uint16_t) (srcLen >> 16));
205 *buffer++=((uint16_t) srcLen);
206 for (; i<srcLen; ++i) {
239 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status) { argument
248 if(srcLen
295 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status) argument
[all...]
H A Dwrtjava.c228 str_write_java( uint16_t* src, int32_t srcLen, UBool printEndLine, UErrorCode *status){ argument
230 uint32_t length = srcLen*8;
240 columnCount = getColumnCount(srcLen);
243 bufLen = uCharsToChars(buf,length,src,srcLen,status);
448 int32_t srcLen=res->u.fBinaryValue.fLength; local
450 if(srcLen>0 )
459 for (;byteIterator<srcLen;byteIterator++)
H A Dwrtxml.cpp174 static void strnrepchr(char* src, int32_t srcLen, char s, char r){ argument
176 for(i=0;i<srcLen;i++){
234 const UChar* src, int32_t srcLen, UErrorCode* status){
241 if(status==NULL || U_FAILURE(*status) || pDest==NULL || srcLen==0 || src == NULL){
246 destCap = srcLen * 8;
256 while(srcIndex<srcLen){
257 U16_NEXT(src, srcIndex, srcLen, c);
397 print(UChar* src, int32_t srcLen,const char *tagStart,const char *tagEnd, UErrorCode *status){ argument
398 int32_t bufCapacity = srcLen*4;
411 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,statu
233 convertAndEscape(char** pDest, int32_t destCap, int32_t* destLength, const UChar* src, int32_t srcLen, UErrorCode* status) argument
[all...]
/external/icu/icu4c/source/io/
H A Duprntf_p.c566 int32_t srcLen, expLen; local
585 srcLen = unum_getSymbol(format,
594 srcExpBuf, srcLen,
600 srcExpBuf, srcLen,
658 srcLen,
H A Duscanf_p.c493 int32_t srcLen, expLen; local
519 srcLen = unum_getSymbol(format,
528 srcExpBuf, srcLen,
534 srcExpBuf, srcLen,
/external/icu/icu4c/source/test/cintltst/
H A Dcapitst.c177 static void doStrcoll(const UCollator* coll, const UChar* src, int32_t srcLen, const UChar* tgt, int32_t tgtLen, argument
184 if (ucol_strcoll(coll, src, srcLen, tgt, tgtLen) != expected) {
188 u_strToUTF8(srcU8, UTF8_BUF_SIZE, &len, src, srcLen, &err);
193 if (srcLen >= 0) {
H A Dcbiditst.c96 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
1411 int32_t srcLen, destLen, runCount, i; local
1445 srcLen = u_unescape("abc ", src, MAXLEN);
1446 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode);
1457 srcLen = u_unescape("abc def", src, MAXLEN);
1458 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode);
1469 srcLen = u_unescape("abcdefghi ", src, MAXLEN);
1470 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode);
1482 srcLen = u_unescape("\\u200eabc def", src, MAXLEN);
1483 ubidi_setPara(bidi, src, srcLen, UBIDI_RT
1698 int32_t srcLen; local
1845 int32_t srcLen, destLen; local
4183 int32_t srcLen, destLen, vis1Len, vis2Len, option, i, j, nCases, paras; local
4267 int32_t srcLen, destLen, idx; local
4371 inverseBasic(UBiDi *pBiDi, const char *srcChars, int32_t srcLen, uint32_t option, UBiDiLevel level, char *result) argument
4435 int32_t srcLen, processedLen, chunk, len, nPortions; local
4564 int32_t srcLen, destLen, textSrcSize = (int32_t)uprv_strlen(textSrc); local
4641 int32_t i, srcLen, resLen, idx; local
4825 int32_t proLength, epiLength, srcLen, destLen, tc; local
[all...]
H A Dcnormtst.c240 static void TestNull_check(UChar *src, int32_t srcLen, argument
258 len = unorm_normalize(src, srcLen, mode, 0, result, 50, &status);
H A Didnatest.c604 int32_t srcLen; local
620 srcLen = u_strlen(src);
622 testCompareWithSrc(src,srcLen,src,srcLen,testName, func, TRUE);
625 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
629 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE);
631 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE);
635 testCompareWithSrc(src,srcLen,ascii1,u_strlen(ascii1),testName, func,FALSE);
637 testCompareWithSrc(src,srcLen,ascii0,u_strlen(ascii0),testName, func,FALSE);
685 int32_t srcLen local
[all...]

Completed in 301 milliseconds

123