Lines Matching refs:nTerm
958 int nTerm; /* Number of bytes in pTerm[] */
1353 static int term_select(fulltext_vtab *v, const char *pTerm, int nTerm,
1360 rc = sqlite3_bind_text(s, 1, pTerm, nTerm, SQLITE_STATIC);
1394 int nTerm, /* Number of bytes in pTerm */
1402 rc = sqlite3_bind_text(s, 1, pTerm, nTerm, SQLITE_STATIC);
1449 const char *pTerm, int nTerm,
1462 rc = sqlite3_bind_text(s, 2, pTerm, nTerm, SQLITE_STATIC);
2224 int nTerm; /* Number of query string terms */
2246 nTerm = pQuery->nTerms;
2247 if( nTerm>=FTS1_ROTOR_SZ ){
2248 nTerm = FTS1_ROTOR_SZ - 1;
2257 for(i=0; i<nTerm; i++){
2261 if( aTerm[i].nTerm!=nToken ) continue;
2265 if( i==nTerm-1 || aTerm[i+1].iPhrase==1 ){
2597 rc = term_select_all(v, iColumn, pQTerm->pTerm, pQTerm->nTerm, pLeft);
2604 rc = term_select_all(v, iColumn, pQTerm[i].pTerm, pQTerm[i].nTerm, pRight);
2619 /* Add a new term pTerm[0..nTerm-1] to the query *q.
2621 static void queryAdd(Query *q, const char *pTerm, int nTerm){
2631 t->pTerm = malloc(nTerm+1);
2632 memcpy(t->pTerm, pTerm, nTerm);
2633 t->pTerm[nTerm] = 0;
2634 t->nTerm = nTerm;
2681 int nTerm = 1;
2710 pQuery->pTerms[pQuery->nTerms-1].iPhrase = nTerm;
2712 nTerm++;
3016 static int index_insert_term(fulltext_vtab *v, const char *pTerm, int nTerm,
3022 rc = term_select(v, pTerm, nTerm, iSegment, &iIndexRow, &doclist);
3027 rc = term_insert(v, NULL, pTerm, nTerm, iSegment, &doclist);
3049 while( (rc=term_insert(v, &iIndexRow, pTerm, nTerm, iSegment,
3058 rc2 = term_select(v, pTerm, nTerm, iSegment, &iSegmentRow, &old);