/external/icu4c/test/perf/strsrchperf/ |
strsrchperf.h | 14 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn, int32_t pttrnLen, UErrorCode* status); 20 int32_t srcLen; 27 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status); 31 return (long) srcLen; 37 srcLen = sourceLen; 47 int32_t srcLen;
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
Base64.java | 191 int srcLen = 0; 197 src[srcLen++] = val; 208 while (srcLen > 0 && src[srcLen - 1] == EQUAL) 210 srcLen--; 212 byte[] dst = new byte[srcLen * 3 / 4];
|
/build/tools/acp/ |
acp.c | 119 int srcLen; 122 srcLen = strlen(argv[i]); 123 src = malloc(srcLen+1); 124 memcpy(src, argv[i], srcLen+1); 126 if (src[srcLen-1] == FSSEP) 127 src[--srcLen] = '\0';
|
/external/chromium_org/third_party/icu/source/test/perf/strsrchperf/ |
strsrchperf.h | 20 typedef void (*StrSrchFn) (BoyerMooreSearch * bms, const UChar *src, int32_t srcLen, const UChar *pttrn, int32_t pttrnLen, UErrorCode *status); 22 typedef void (*StrSrchFn)(UStringSearch* srch, const UChar* src,int32_t srcLen, const UChar* pttrn, int32_t pttrnLen, UErrorCode* status); 29 int32_t srcLen; 41 (*fn)(bms, src, srcLen, pttrn, pttrnLen, status); 43 (*fn)(srch, src, srcLen, pttrn, pttrnLen, status); 49 return (long)(srcLen/pttrnLen); 51 return (long) srcLen; 59 srcLen = sourceLen; 68 srcLen = sourceLen; 79 int32_t srcLen; [all...] |
/external/chromium_org/third_party/icu/source/test/perf/ustrperf/ |
stringperf.cpp | 100 int32_t srcLen = 0; 101 const UChar* src = getBuffer(srcLen,status); 107 StrBuffer = new UChar[srcLen]; 108 StrBufferLen = srcLen; 109 memcpy(StrBuffer, src, srcLen * U_SIZEOF_UCHAR);
|
/external/icu4c/test/perf/ustrperf/ |
stringperf.cpp | 100 int32_t srcLen = 0; 101 const UChar* src = getBuffer(srcLen,status); 107 StrBuffer = new UChar[srcLen]; 108 StrBufferLen = srcLen; 109 memcpy(StrBuffer, src, srcLen * U_SIZEOF_UCHAR);
|
/libcore/luni/src/main/java/java/math/ |
BitLevel.java | 114 static void shiftLeftOneBit(int[] result, int[] source, int srcLen) { 116 for (int i = 0; i < srcLen; i++) { 122 result[srcLen] = carry; 128 int srcLen = source.numberLength; 129 int resLen = srcLen + 1; 131 shiftLeftOneBit(resDigits, source.digits, srcLen);
|
/build/libs/host/ |
CopyFile.c | 484 int srcLen, dstLen, nameLen; 497 srcLen = strlen(src); 500 srcFile = malloc(srcLen +1 + nameLen +1); 501 memcpy(srcFile, src, srcLen); 502 srcFile[srcLen] = FSSEP; 503 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1);
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, 445 int32_t srcLen; 452 srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZE, &status); 457 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); 461 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); 478 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 480 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); 505 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 508 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); 515 if(destLen != srcLen){ [all...] |
idnatest.c | 604 int32_t srcLen; 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 = u_strlen(src) [all...] |
/external/chromium_org/third_party/icu/source/test/perf/convperf/ |
convperf.h | 28 int32_t srcLen; 36 srcLen = sourceLen; 44 source, srcLen, &status); 57 const char* sourceLimit = src + srcLen; 62 return srcLen; 73 int32_t srcLen; 82 srcLen = sourceLen; 90 source, srcLen, &status); 103 const UChar* sourceLimit = src + srcLen; 108 return srcLen; [all...] |
/external/chromium_org/third_party/icu/source/test/perf/normperf/ |
normperf.cpp | 74 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ 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){ 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; 156 const UChar* src = getBuffer(srcLen,status); 165 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options); 166 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NFC, options) [all...] |
normperf.h | 28 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; 59 retVal = (*fn)(src,srcLen,mode, options, status); 74 return srcLen; 84 srcLen = 0; 94 srcLen = sourceLen; 111 int32_t srcLen; 129 retVal = (*fn)(src,srcLen,pDest,destLen, options, status); 143 return srcLen; [all...] |
/external/icu4c/test/cintltst/ |
spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, 445 int32_t srcLen; 452 srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZE, &status); 457 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); 461 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); 478 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 480 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); 505 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 508 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); 515 if(destLen != srcLen){ [all...] |
idnatest.c | 604 int32_t srcLen; 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 = u_strlen(src) [all...] |
/external/icu4c/test/perf/convperf/ |
convperf.h | 28 int32_t srcLen; 36 srcLen = sourceLen; 44 source, srcLen, &status); 57 const char* sourceLimit = src + srcLen; 62 return srcLen; 73 int32_t srcLen; 82 srcLen = sourceLen; 90 source, srcLen, &status); 103 const UChar* sourceLimit = src + srcLen; 108 return srcLen; [all...] |
/external/icu4c/test/perf/normperf/ |
normperf.cpp | 74 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ 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){ 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; 156 const UChar* src = getBuffer(srcLen,status); 165 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options); 166 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NFC, options) [all...] |
normperf.h | 28 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; 59 retVal = (*fn)(src,srcLen,mode, options, status); 74 return srcLen; 84 srcLen = 0; 94 srcLen = sourceLen; 111 int32_t srcLen; 129 retVal = (*fn)(src,srcLen,pDest,destLen, options, status); 143 return srcLen; [all...] |
/frameworks/native/cmds/rawbu/ |
backup.cpp | 261 int srcLen = strlen(srcPath); 290 fullPath = (char*)malloc(srcLen + strlen(de->d_name) + 2); 292 fullPath[srcLen] = '/'; 293 strcpy(fullPath+srcLen+1, de->d_name);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
InputPointersTests.java | 125 final int srcLen = 100; 126 for (int i = 0; i < srcLen; i++) { 149 dst.append(src, 0, srcLen); 150 assertEquals("size after append", dstLen + srcLen, dst.getPointerSize()); 152 dst.getPointerIds().length >= dstLen + srcLen); 162 src.getXCoordinates(), 0, dst.getXCoordinates(), dstLen, srcLen); 164 src.getYCoordinates(), 0, dst.getYCoordinates(), dstLen, srcLen); 166 src.getPointerIds(), 0, dst.getPointerIds(), dstLen, srcLen); 168 src.getTimes(), 0, dst.getTimes(), dstLen, srcLen); 172 final int srcLen = 100 [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
ResizableIntArrayTests.java | 207 final int srcLen = DEFAULT_CAPACITY; 208 final ResizableIntArray src = new ResizableIntArray(srcLen); 209 for (int i = 0; i < srcLen; i++) { 228 dst.append(src, 0, srcLen); 229 assertEquals("length after append", dstLen + srcLen, dst.getLength()); 232 dst.getPrimitiveArray().length >= dstLen + srcLen); 236 src.getPrimitiveArray(), 0, dst.getPrimitiveArray(), dstLen, srcLen); 238 dst.append(src, 0, srcLen); 239 assertEquals("length after 2nd append", dstLen + srcLen * 2, dst.getLength()); 242 dst.getPrimitiveArray().length >= dstLen + srcLen * 2) [all...] |
/external/chromium_org/third_party/icu/source/tools/genrb/ |
wrtjava.c | 229 str_write_java( uint16_t* src, int32_t srcLen, UBool printEndLine, UErrorCode *status){ 231 uint32_t length = srcLen*8; 241 columnCount = getColumnCount(srcLen); 244 bufLen = uCharsToChars(buf,length,src,srcLen,status); 453 int32_t srcLen=res->u.fBinaryValue.fLength; 455 if(srcLen>0 ) 464 for (;byteIterator<srcLen;byteIterator++)
|
/external/chromium_org/third_party/skia/src/pdf/ |
SkPDFFont.cpp | 164 size_t srcLen; 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, headerLen, &hexDataLen, dataLen [all...] |
/external/icu4c/tools/genrb/ |
wrtjava.c | 228 str_write_java( uint16_t* src, int32_t srcLen, UBool printEndLine, UErrorCode *status){ 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; 450 if(srcLen>0 ) 459 for (;byteIterator<srcLen;byteIterator++)
|
/external/skia/src/pdf/ |
SkPDFFont.cpp | 164 size_t srcLen; 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, headerLen, &hexDataLen, dataLen [all...] |