Lines Matching refs:term
174081 Blob term; /* Current term */
174119 int bFirst = (p->term.n==0); /* True for first term on the node */
174138 blobGrowBuffer(&p->term, nPrefix+nSuffix, &rc);
174140 memcpy(&p->term.a[nPrefix], &p->aNode[p->iOff], nSuffix);
174141 p->term.n = nPrefix+nSuffix;
174162 sqlite3_free(p->term.a);
174636 if( fts3TermCmp(zKey, nKey, reader.term.a, reader.term.n)<=0 ){
174675 blobGrowBuffer(&pNode->key, reader.term.n, &rc);
174677 memcpy(pNode->key.a, reader.term.a, reader.term.n);
174678 pNode->key.n = reader.term.n;
174946 int res = fts3TermCmp(reader.term.a, reader.term.n, zTerm, nTerm);
174952 pNew, &prev, reader.term.a, reader.term.n,
209235 Fts5Buffer term; /* Buffer containing previous term on page */
209341 Fts5Buffer term; /* Current term */
210536 if( iOff+nNew>pIter->pLeaf->szLeaf || nKeep>pIter->term.n || nNew==0 ){
210540 pIter->term.n = nKeep;
210541 fts5BufferAppendBlob(&p->rc, &pIter->term, nNew, &a[iOff]);
210542 assert( pIter->term.n<=pIter->term.nSpace );
210825 sqlite3Fts5BufferSet(&p->rc,&pIter->term, (int)strlen(zTerm), (u8*)zTerm);
210905 sqlite3Fts5BufferSet(&p->rc, &pIter->term, (int)strlen(zTerm),
211217 fts5BufferSet(&p->rc, &pIter->term, nKeep, pTerm);
211218 fts5BufferAppendBlob(&p->rc, &pIter->term, nNew, &a[iOff]);
211322 || fts5BufferCompareBlob(&pIter->term, pTerm, nTerm)==0 /* 3 */
211323 || (bGe && fts5BufferCompareBlob(&pIter->term, pTerm, nTerm)>0) /* 4 */
211374 sqlite3Fts5BufferSet(&p->rc, &pIter->term, n, z);
211395 fts5BufferFree(&pIter->term);
211426 int nMin = MIN(p1->term.n, p2->term.n);
211427 int res = fts5Memcmp(p1->term.p, p2->term.p, nMin);
211428 if( res==0 ) res = p1->term.n - p2->term.n;
211465 || fts5BufferCompare(&pFirst->term, &p1->term)
211525 int res = fts5BufferCompare(&p1->term, &p2->term);
212444 *pn = p->term.n;
212445 return p->term.p;
212802 int nMin = MIN(pPage->term.n, nTerm);
212844 if( pPage->term.n ){
212845 n = 1 + fts5PrefixCompress(nMin, pPage->term.p, pTerm);
212852 nPrefix = fts5PrefixCompress(nMin, pPage->term.p, pTerm);
212862 fts5BufferSet(&p->rc, &pPage->term, nTerm, pTerm);
212959 fts5BufferFree(&pLeaf->term);
213051 fts5BufferAppendVarint(&p->rc, &buf, pSeg->term.n);
213052 fts5BufferAppendBlob(&p->rc, &buf, pSeg->term.n, pSeg->term.p);
213109 Fts5Buffer term;
213119 memset(&term, 0, sizeof(Fts5Buffer));
213168 if( nTerm!=term.n || fts5Memcmp(pTerm, term.p, nTerm) ){
213172 fts5BufferSet(&p->rc, &term, nTerm, pTerm);
213235 fts5BufferFree(&term);
213992 int nTerm = pSeg->term.n;
213993 const u8 *pTerm = pSeg->term.p;
214360 if( pSeg->pLeaf && pSeg->term.p[0]!=FTS5_MAIN_PREFIX ){
214897 Fts5Buffer term = {0,0,0}; /* Buffer used to hold most recent term */
214939 fts5TestTerm(p, &term, z, n, cksum2, &cksum3);
214955 fts5TestTerm(p, &term, 0, 0, cksum2, &cksum3);
214962 fts5BufferFree(&term);
215234 Fts5Buffer term; /* Current term read from page */
215241 memset(&term, 0, sizeof(Fts5Buffer));
215257 term.n = nKeep;
215258 fts5BufferAppendBlob(&rc, &term, nAppend, &a[iOff]);
215260 &rc, &s, " term=%.*s", term.n, (const char*)term.p
215280 fts5BufferFree(&term);
215282 Fts5Buffer term; /* Current term read from page */
215291 memset(&term, 0, sizeof(Fts5Buffer));
215352 if( nByte>term.n ){
215356 term.n = nByte;
215363 fts5BufferAppendBlob(&rc, &term, nByte, &a[iOff]);
215367 &rc, &s, " term=%.*s", term.n, (const char*)term.p
215372 fts5BufferFree(&term);
221862 Fts5Buffer term; /* Current value of 'term' column */
222190 sqlite3Fts5BufferFree(&pCsr->term);
222213 sqlite3Fts5BufferSet(&rc, &pCsr->term, nTerm, (const u8*)zTerm);
222286 sqlite3Fts5BufferSet(&rc, &pCsr->term, nTerm, (const u8*)zTerm);
222353 if( nTerm!=pCsr->term.n
222354 || (nTerm>0 && memcmp(zTerm, pCsr->term.p, nTerm))
222462 pCtx, (const char*)pCsr->term.p, pCsr->term.n, SQLITE_TRANSIENT