Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 45) sorted by relevance

12

/sqlite-3.40.0/tool/
H A Dmkkeywordhash.c337 int n = pA->len - pB->len; in keywordCompare1()
429 totalLen += p->len; in main()
445 if( pOther->len<=p->len ) continue; in main()
446 for(k=0; k<=pOther->len-p->len; k++){ in main()
465 for(k=p->longestSuffix+1; k<p->len && k<pOther->len; k++){ in main()
482 nChar += p->len; in main()
493 p->len -= k; in main()
496 k = p->len; in main()
548 k += p->len; in main()
549 if( j+p->len>70 ){ in main()
[all …]
H A Ddbhash.c169 static void hash_step(const unsigned char *data, unsigned int len){ in hash_step() argument
173 if( (g.cx.count[0] += len << 3) < j ){ in hash_step()
174 g.cx.count[1] += (len>>29)+1; in hash_step()
177 if( (j + len) > 63 ){ in hash_step()
180 for(; i + 63 < len; i += 64){ in hash_step()
187 (void)memcpy(&g.cx.buffer[j], &data[i], len - i); in hash_step()
H A Dmksourceid.c658 unsigned int len in SHA1Update() argument
663 if ((context->count[0] += len << 3) < j) in SHA1Update()
664 context->count[1] += (len>>29)+1; in SHA1Update()
666 if ((j + len) > 63) { in SHA1Update()
669 for ( ; i + 63 < len; i += 64) in SHA1Update()
675 (void)memcpy(&context->buffer[j], &data[i], len - i); in SHA1Update()
/sqlite-3.40.0/test/
H A Dfts2h.test21 # Generate a term of len copies of char.
22 proc bigterm {char len} {
23 for {set term ""} {$len>0} {incr len -1} {
31 proc bigtermdoc {chars len} {
39 set len 5000
40 set doc1 [bigtermdoc {a b c d} $len]
41 set doc2 [bigtermdoc {b d e f} $len]
42 set doc3 [bigtermdoc {a c e} $len]
44 set aterm [bigterm a $len]
45 set bterm [bigterm b $len]
[all …]
H A Dfts3ah.test26 proc bigtermdoc {chars len} {
29 append doc " " [string repeat $char $len]
34 set len 5000
35 set doc1 [bigtermdoc {a b c d} $len]
36 set doc2 [bigtermdoc {b d e f} $len]
37 set doc3 [bigtermdoc {a c e} $len]
39 set aterm [string repeat a $len]
40 set bterm [string repeat b $len]
41 set xterm [string repeat x $len]
H A Dwapp.tcl479 set len 0
481 set len [dict get $W CONTENT_LENGTH]
485 dict set W .toread $len
792 set len 0
794 set len [dict get $wapp CONTENT_LENGTH]
798 dict set wapp CONTENT [read stdin $len]
825 scan $req %d:%s len hdr
826 incr len [string length "$len:,"]
832 set len 0
834 set len [dict get $W CONTENT_LENGTH]
[all …]
H A Dspeedtest1.c563 int i, n, len; in speedtest1_run() local
577 len = (int)strlen(z); in speedtest1_run()
614 g.nResult += len; in speedtest1_run()
832 zNum[len] = '%'; in testset_main()
833 zNum[len+1] = 0; in testset_main()
854 zNum[len] = '%'; in testset_main()
855 zNum[len+1] = 0; in testset_main()
875 zNum[len] = '%'; in testset_main()
876 zNum[len+1] = 0; in testset_main()
1669 unsigned x1, len; in testset_orm() local
[all …]
H A Dthreadtest3.c284 void MD5Update(MD5Context *ctx, const unsigned char *buf, unsigned int len){ in MD5Update() argument
290 if ((ctx->bits[0] = t + ((uint32)len << 3)) < t) in MD5Update()
292 ctx->bits[1] += len >> 29; in MD5Update()
302 if (len < t) { in MD5Update()
303 memcpy(p, buf, len); in MD5Update()
310 len -= t; in MD5Update()
315 while (len >= 64) { in MD5Update()
320 len -= 64; in MD5Update()
325 memcpy(ctx->u.in, buf, len); in MD5Update()
H A Ddbstatus2.test77 set len [string length [read $fd]]
79 set len
H A Dbadutf2.test56 foreach { i len uval xstr ustr u2u } {
108 sqlite3_bind_text $S 1 $xstr $len
/sqlite-3.40.0/mptest/
H A Dmptest.c783 return n+len; in findEndif()
787 n += skip + len; in findEndif()
789 n += len; in findEndif()
883 int len; in runScript() local
896 ii += len; in runScript()
900 ii += len; in runScript()
909 iBegin = ii + len; in runScript()
985 if( len-jj-1!=sResult.n || strncmp(sResult.z, zAns, len-jj-1) ){ in runScript()
1155 len += iEnd; in runScript()
1156 iBegin = ii+len; in runScript()
[all …]
/sqlite-3.40.0/src/
H A Dtest5.c39 int len; in binarize() local
44 bytes = Tcl_GetStringFromObj(objv[1], &len); in binarize()
45 pRet = Tcl_NewByteArrayObj((u8*)bytes, len+1); in binarize()
136 int len; in test_translate() local
164 z = (char*)Tcl_GetByteArrayFromObj(objv[1], &len); in test_translate()
167 z = sqlite3_malloc(len); in test_translate()
168 memcpy(z, zTmp, len); in test_translate()
174 len = sqlite3ValueBytes(pVal, enc_to) + (enc_to==SQLITE_UTF8?1:2); in test_translate()
175 Tcl_SetObjResult(interp, Tcl_NewByteArrayObj((u8*)z, len)); in test_translate()
H A Dtclsqlite.c2018 int len; in DbObjCmd()
2121 int len; in DbObjCmd() local
2151 int len; in DbObjCmd() local
2317 int len; in DbObjCmd() local
2637 int len, xrc; in DbObjCmd()
2678 if( len>0 ) memcpy(pData, pBA, len); in DbObjCmd()
3008 int len; in DbObjCmd() local
3059 int len; in DbObjCmd() local
3105 int len; in DbObjCmd() local
3316 int len; in DbObjCmd() local
[all …]
H A Dtest_func.c105 int len; in test_destructor() local
110 len = sqlite3_value_bytes(argv[0]); in test_destructor()
111 zVal = testContextMalloc(pCtx, len+3); in test_destructor()
115 zVal[len+1] = 0; in test_destructor()
116 zVal[len+2] = 0; in test_destructor()
118 memcpy(zVal, sqlite3_value_text(argv[0]), len); in test_destructor()
128 int len; in test_destructor16() local
133 len = sqlite3_value_bytes16(argv[0]); in test_destructor16()
134 zVal = testContextMalloc(pCtx, len+3); in test_destructor16()
138 zVal[len+1] = 0; in test_destructor16()
[all …]
H A Dtest_md5.c195 void MD5Update(MD5Context *ctx, const unsigned char *buf, unsigned int len){ in MD5Update() argument
201 if ((ctx->bits[0] = t + ((uint32)len << 3)) < t) in MD5Update()
203 ctx->bits[1] += len >> 29; in MD5Update()
213 if (len < t) { in MD5Update()
214 memcpy(p, buf, len); in MD5Update()
221 len -= t; in MD5Update()
226 while (len >= 64) { in MD5Update()
231 len -= 64; in MD5Update()
236 memcpy(ctx->in, buf, len); in MD5Update()
H A Dfunc.c318 int len; in substrFunc() local
339 len = 0; in substrFunc()
364 p1 += len; in substrFunc()
394 if( p1+p2>len ){ in substrFunc()
395 p2 = len-p1; in substrFunc()
1400 len = aLen[i]; in trimFunc()
1401 if( len<=nIn && memcmp(zIn, azChar[i], len)==0 ) break; in trimFunc()
1404 zIn += len; in trimFunc()
1405 nIn -= len; in trimFunc()
1413 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break; in trimFunc()
[all …]
H A Dutf.c183 sqlite3_int64 len; /* Maximum length of output string in bytes */ in sqlite3VdbeMemTranslate() local
238 len = 2 * (sqlite3_int64)pMem->n + 1; in sqlite3VdbeMemTranslate()
245 len = 2 * (sqlite3_int64)pMem->n + 2; in sqlite3VdbeMemTranslate()
256 zOut = sqlite3DbMallocRaw(pMem->db, len); in sqlite3VdbeMemTranslate()
343 assert( (pMem->n+(desiredEnc==SQLITE_UTF8?1:2))<=len ); in sqlite3VdbeMemTranslate()
H A Dmem1.c242 size_t len; in sqlite3MemInit() local
246 len = sizeof(cpuCount); in sqlite3MemInit()
248 sysctlbyname("hw.ncpu", &cpuCount, &len, NULL, 0); in sqlite3MemInit()
H A Dos_unix.c6959 int len; in proxyGetLockPath() local
6980 if( lPath[len-1]!='/' ){ in proxyGetLockPath()
6988 lPath[i+len] = (c=='/')?'_':c; in proxyGetLockPath()
6990 lPath[i+len]='\0'; in proxyGetLockPath()
7000 int i, len; in proxyCreateLockPath() local
7006 len = (int)strlen(lockPath); in proxyCreateLockPath()
7008 for( i=1; i<len; i++ ){ in proxyCreateLockPath()
7275 if( len<0 ){ in proxyConchLock()
7577 memcpy(conchPath, dbPath, len+1); in proxyCreateConchPathname()
7580 for( i=(len-1); i>=0; i-- ){ in proxyCreateConchPathname()
[all …]
H A Dtest_syscall.c123 static int ts_fallocate(int fd, off_t off, off_t len);
393 static int ts_fallocate(int fd, off_t off, off_t len){ in ts_fallocate() argument
397 return orig_fallocate(fd, off, len); in ts_fallocate()
/sqlite-3.40.0/ext/misc/
H A Ddbdump.c95 int len; in appendText() local
99 len = nAppend+p->n+1; in appendText()
101 len += 2; in appendText()
103 if( zAppend[i]==quote ) len++; in appendText()
107 if( p->n+len>=p->nAlloc ){ in appendText()
109 p->nAlloc = p->nAlloc*2 + len + 20; in appendText()
H A Dsha1.c155 unsigned int len /* Number of bytes in data */ in hash_step() argument
160 if( (p->count[0] += len << 3) < j ){ in hash_step()
161 p->count[1] += (len>>29)+1; in hash_step()
164 if( (j + len) > 63 ){ in hash_step()
167 for(; i + 63 < len; i += 64){ in hash_step()
174 (void)memcpy(&p->buffer[j], &data[i], len - i); in hash_step()
/sqlite-3.40.0/ext/fts1/
H A Dfts1.c72 sb->len = 0; in initStringBuffer()
79 if( sb->len + nFrom >= sb->alloced ){ in nappend()
88 sb->len += nFrom; in nappend()
89 sb->s[sb->len] = 0; in nappend()
893 size_t len = 0; in string_format() local
906 r = result = malloc(len); in string_format()
919 assert( r == result + len ); in string_format()
2331 p->nOffset = sb.len; in snippetOffsetText()
2384 if( p->len==0 ) return; in appendWhiteSpace()
2393 while( p->len>0 && safe_isspace(p->s[p->len-1]) ){ in trimWhiteSpace()
[all …]
/sqlite-3.40.0/ext/wasm/common/
H A Dwhwasmutil.js771 let len = 0;
777 if(u<=0x7f) ++len;
778 else if(u<=0x7ff) len += 2;
779 else if(u<=0xffff) len += 3;
780 else len += 4;
782 return len;
/sqlite-3.40.0/
H A Dltmain.sh3826 size_t len, patlen;
3831 len = strlen (str);
3834 if (patlen <= len)
3836 str += len - patlen;
3918 int len;
3930 *name = XMALLOC (char, len);
3931 strncpy (*name, arg, len-1);
3932 (*name)[len - 1] = '\0';
4008 int len = strlen (new_value);
4009 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
[all …]

12