/external/icu/icu4c/source/test/perf/normperf/ |
D | normperf.h | 32 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/ |
D | prscmnts.cpp | 47 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 72 …srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // re… in trim() 73 …srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove le… in trim() 74 …srcLen = 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 …]
|
D | rle.c | 150 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 …]
|
D | prscmnts.h | 37 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,
|
D | rle.h | 42 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/ |
D | stringperf.h | 63 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/ |
D | convperf.h | 32 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/icu/icu4c/source/test/cintltst/ |
D | spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, in unescapeData() argument 445 int32_t srcLen; in Test_nfs4_mixed_prep() local 452 …srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZ… in Test_nfs4_mixed_prep() 457 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); in Test_nfs4_mixed_prep() 461 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); in Test_nfs4_mixed_prep() 478 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_mixed_prep() local 480 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); in Test_nfs4_mixed_prep() 505 … int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); in Test_nfs4_cs_prep() local 508 …int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); in Test_nfs4_cs_prep() 515 if(destLen != srcLen){ in Test_nfs4_cs_prep() [all …]
|
D | cbiditst.c | 100 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, 1417 int32_t srcLen, destLen, runCount, i; in doMisc() local 1451 srcLen = u_unescape("abc ", src, MAXLEN); in doMisc() 1452 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() 1463 srcLen = u_unescape("abc def", src, MAXLEN); in doMisc() 1464 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() 1475 srcLen = u_unescape("abcdefghi ", src, MAXLEN); in doMisc() 1476 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() 1488 srcLen = u_unescape("\\u200eabc def", src, MAXLEN); in doMisc() 1489 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() [all …]
|
/external/lzma/C/ |
D | Lzma2Dec.c | 173 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) in Lzma2Dec_DecodeToDic() argument 175 SizeT inSize = *srcLen; in Lzma2Dec_DecodeToDic() 176 *srcLen = 0; in Lzma2Dec_DecodeToDic() 194 if (*srcLen == inSize) in Lzma2Dec_DecodeToDic() 199 (*srcLen)++; in Lzma2Dec_DecodeToDic() 212 SizeT srcSizeCur = inSize - *srcLen; in Lzma2Dec_DecodeToDic() 223 if (*srcLen == inSize) in Lzma2Dec_DecodeToDic() 255 *srcLen += srcSizeCur; in Lzma2Dec_DecodeToDic() 287 *srcLen += srcSizeCur; in Lzma2Dec_DecodeToDic() 319 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,… in Lzma2Dec_DecodeToBuf() argument [all …]
|
D | XzDec.c | 126 static SRes BraState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in BraState_Code() argument 131 SizeT srcLenOrig = *srcLen; in BraState_Code() 134 *srcLen = 0; in BraState_Code() 159 *srcLen += curSize; in BraState_Code() 249 static SRes SbState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in SbState_Code() argument 258 p->srcLen = *srcLen; in SbState_Code() 262 *srcLen -= p->srcLen; in SbState_Code() 263 *wasFinished = (*destLen == 0 && *srcLen == 0); /* change it */ in SbState_Code() 305 static SRes Lzma2State_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2State_Code() argument 310 …SRes res = Lzma2Dec_DecodeToBuf((CLzma2Dec *)pp, dest, destLen, src, srcLen, (ELzmaFinishMode)fini… in Lzma2State_Code() [all …]
|
D | Lzma86Dec.c | 12 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()
|
D | Lzma86Enc.c | 16 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()
|
D | LzmaLib.c | 9 …_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()
|
D | Lzma86.h | 71 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);
|
D | Lzma2Dec.h | 50 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status); 53 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status); 75 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
D | LzmaDec.c | 803 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, in LzmaDec_DecodeToDic() argument 806 SizeT inSize = *srcLen; in LzmaDec_DecodeToDic() 807 (*srcLen) = 0; in LzmaDec_DecodeToDic() 818 for (; inSize > 0 && p->tempBufSize < RC_INIT_SIZE; (*srcLen)++, inSize--) in LzmaDec_DecodeToDic() 872 (*srcLen) += inSize; in LzmaDec_DecodeToDic() 889 (*srcLen) += processed; in LzmaDec_DecodeToDic() 904 (*srcLen) += lookAhead; in LzmaDec_DecodeToDic() 927 (*srcLen) += lookAhead; in LzmaDec_DecodeToDic() 938 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, E… in LzmaDec_DecodeToBuf() argument 941 SizeT inSize = *srcLen; in LzmaDec_DecodeToBuf() [all …]
|
/external/skia/src/pdf/ |
D | SkPDFConvertType1FontStream.cpp | 126 size_t srcLen = srcStream ? srcStream->getLength() : 0; in SkPDFConvertType1FontStream() local 127 SkASSERT(srcLen); in SkPDFConvertType1FontStream() 128 if (!srcLen) { in SkPDFConvertType1FontStream() 133 SkAutoTMalloc<uint8_t> sourceBuffer(SkToInt(srcLen + 1)); in SkPDFConvertType1FontStream() 134 (void)srcStream->read(sourceBuffer.get(), srcLen); in SkPDFConvertType1FontStream() 135 sourceBuffer[SkToInt(srcLen)] = 0; in SkPDFConvertType1FontStream() 138 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in SkPDFConvertType1FontStream() 142 SkASSERT(length + (2 * kPFBSectionHeaderLength) <= srcLen); in SkPDFConvertType1FontStream() 167 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in SkPDFConvertType1FontStream()
|
/external/skqp/src/pdf/ |
D | SkPDFConvertType1FontStream.cpp | 126 size_t srcLen = srcStream ? srcStream->getLength() : 0; in SkPDFConvertType1FontStream() local 127 SkASSERT(srcLen); in SkPDFConvertType1FontStream() 128 if (!srcLen) { in SkPDFConvertType1FontStream() 133 SkAutoTMalloc<uint8_t> sourceBuffer(SkToInt(srcLen + 1)); in SkPDFConvertType1FontStream() 134 (void)srcStream->read(sourceBuffer.get(), srcLen); in SkPDFConvertType1FontStream() 135 sourceBuffer[SkToInt(srcLen)] = 0; in SkPDFConvertType1FontStream() 138 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in SkPDFConvertType1FontStream() 142 SkASSERT(length + (2 * kPFBSectionHeaderLength) <= srcLen); in SkPDFConvertType1FontStream() 167 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in SkPDFConvertType1FontStream()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
D | TestStreaming.java | 78 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/ |
D | TestStreaming.java | 81 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/ |
D | strsrchperf.h | 19 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
|
D | strsrchperf.cpp | 29 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/ |
D | Base64.java | 191 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/ |
D | testidna.cpp | 811 int32_t srcLen = u_strlen(src); //subtract null in testCompare() local 813 testCompare(src,srcLen,src,srcLen,testName, func, TRUE); in testCompare() 816 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in testCompare() 820 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE); in testCompare() 822 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE); in testCompare() 826 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE); in testCompare() 828 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE); in testCompare() 885 int32_t srcLen = u_strlen(start); 886 labelLen = getNextSeperator(start,srcLen,&limit); 888 labelLen=getNextSeperator(start,srcLen-labelLen,&limit); [all …]
|