/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/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/icu4c/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/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 | 465 int srcLen, dstLen, nameLen; 478 srcLen = strlen(src); 481 srcFile = malloc(srcLen +1 + nameLen +1); 482 memcpy(srcFile, src, srcLen); 483 srcFile[srcLen] = FSSEP; 484 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1);
|
/external/chromium/third_party/icu/source/test/cintltst/ |
spreptst.c | 293 unescapeData(const char* src, int32_t srcLen, 443 int32_t srcLen; 450 srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZE, &status); 455 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); 459 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); 476 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 478 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); 503 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 506 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); 513 if(destLen != srcLen){ [all...] |
idnatest.c | 603 int32_t srcLen; 619 srcLen = u_strlen(src); 621 testCompareWithSrc(src,srcLen,src,srcLen,testName, func, TRUE); 624 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); 628 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE); 630 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE); 634 testCompareWithSrc(src,srcLen,ascii1,u_strlen(ascii1),testName, func,FALSE); 636 testCompareWithSrc(src,srcLen,ascii0,u_strlen(ascii0),testName, func,FALSE); 708 int32_t srcLen = u_strlen(src) [all...] |
cbiditst.c | 80 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, [all...] |
/external/chromium/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/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 | 601 int32_t srcLen; 617 srcLen = u_strlen(src); 619 testCompareWithSrc(src,srcLen,src,srcLen,testName, func, TRUE); 622 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); 626 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE); 628 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE); 632 testCompareWithSrc(src,srcLen,ascii1,u_strlen(ascii1),testName, func,FALSE); 634 testCompareWithSrc(src,srcLen,ascii0,u_strlen(ascii0),testName, func,FALSE); 682 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/base/cmds/rawbu/ |
backup.cpp | 255 int srcLen = strlen(srcPath); 284 fullPath = (char*)malloc(srcLen + strlen(de->d_name) + 2); 286 fullPath[srcLen] = '/'; 287 strcpy(fullPath+srcLen+1, de->d_name);
|
/external/chromium/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); 449 int32_t srcLen=res->u.fBinaryValue.fLength; 451 if(srcLen>0 ) 460 for (;byteIterator<srcLen;byteIterator++)
|
/external/icu4c/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/third_party/icu/source/test/intltest/ |
testidna.cpp | 807 int32_t srcLen = u_strlen(src); //subtract null 809 testCompare(src,srcLen,src,srcLen,testName, func, TRUE); 812 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); 816 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE); 818 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE); 822 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE); 824 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE); [all...] |
/external/icu4c/test/intltest/ |
testidna.cpp | 806 int32_t srcLen = u_strlen(src); //subtract null 808 testCompare(src,srcLen,src,srcLen,testName, func, TRUE); 811 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); 815 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE); 817 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE); 821 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE); 823 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE); [all...] |
/external/chromium/third_party/icu/source/io/ |
uprntf_p.c | 566 int32_t srcLen, expLen; 585 srcLen = unum_getSymbol(format, 594 srcExpBuf, srcLen, 600 srcExpBuf, srcLen, 658 srcLen, [all...] |
/external/icu4c/io/ |
uprntf_p.c | 566 int32_t srcLen, expLen; 585 srcLen = unum_getSymbol(format, 594 srcExpBuf, srcLen, 600 srcExpBuf, srcLen, 658 srcLen, [all...] |