• Home
  • Raw
  • Download

Lines Matching refs:pToken

11785         const char *pToken, /* Pointer to buffer containing token */
26567 Token *pToken;
26569 pToken = va_arg(ap, Token*);
26571 if( pToken && pToken->n ){
26572 sqlite3StrAccumAppend(pAccum, (const char*)pToken->z, pToken->n);
93442 const Token *pToken, /* Token argument. Might be NULL */
93450 if( pToken ){
93451 if( op!=TK_INTEGER || pToken->z==0
93452 || sqlite3GetInt32(pToken->z, &iValue)==0 ){
93453 nExtra = pToken->n+1;
93462 if( pToken ){
93468 assert( pToken->z!=0 || pToken->n==0 );
93469 if( pToken->n ) memcpy(pNew->u.zToken, pToken->z, pToken->n);
93470 pNew->u.zToken[pToken->n] = 0;
93631 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
93634 assert( pToken );
93635 pNew = sqlite3ExprAlloc(db, TK_FUNCTION, pToken, 1);
103012 SQLITE_PRIVATE void sqlite3AddCollateType(Parse *pParse, Token *pToken){
103021 zColl = sqlite3NameFromToken(db, pToken);
105218 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
105235 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
152832 Fts3PhraseToken *pToken = &pExpr->pPhrase->aToken[i];
152834 pToken->z, pToken->n, pToken->isPrefix, &pToken->pSegcsr
152934 Fts3PhraseToken *pToken = &p->aToken[iToken];
152935 assert( pToken->pDeferred==0 || pToken->pSegcsr==0 );
152937 if( pToken->pSegcsr ){
152940 rc = fts3TermSelect(pTab, pToken, p->iColumn, &nThis, &pThis);
152945 assert( pToken->pSegcsr==0 );
152970 Fts3PhraseToken *pToken = &pPhrase->aToken[iToken];
152971 Fts3DeferredToken *pDeferred = pToken->pDeferred;
153092 Fts3PhraseToken *pToken = &p->aToken[i];
153093 if( pToken->bFirst || (pToken->pSegcsr!=0 && !pToken->pSegcsr->bLookup) ){
153096 if( pToken->pSegcsr ) bHaveIncr = 1;
153103 Fts3PhraseToken *pToken = &p->aToken[i];
153104 Fts3MultiSegReader *pSegcsr = pToken->pSegcsr;
153106 rc = sqlite3Fts3MsrIncrStart(pTab, pSegcsr, iCol, pToken->z, pToken->n);
153303 Fts3PhraseToken *pToken = &pPhrase->aToken[iToken];
153304 assert( pToken->pDeferred==0 );
153305 assert( pToken->pSegcsr || pPhrase->iDoclistToken>=0 );
153306 if( pToken->pSegcsr ){
153309 pTab, pToken->pSegcsr, &p->iDocid, &p->pList, &p->nList
153517 Fts3PhraseToken *pToken; /* The token itself */
153547 pTC->pToken = &pPhrase->aToken[i];
153549 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
153713 if( aTC[iTC].pToken && aTC[iTC].pRoot==pRoot
153726 Fts3PhraseToken *pToken = pTC->pToken;
153727 rc = sqlite3Fts3DeferToken(pCsr, pToken, pTC->iCol);
153728 fts3SegReaderCursorFree(pToken->pSegcsr);
153729 pToken->pSegcsr = 0;
153740 Fts3PhraseToken *pToken = pTC->pToken;
153743 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
153759 pTC->pToken = 0;
154351 Fts3PhraseToken *pToken = &pPhrase->aToken[i];
154352 assert( pToken->pDeferred==0 );
154353 if( pToken->pSegcsr ){
154354 sqlite3Fts3MsrIncrRestart(pToken->pSegcsr);
155632 Fts3PhraseToken *pToken;
155641 pToken = &((Fts3Phrase *)(&p[1]))->aToken[ii];
155642 memset(pToken, 0, sizeof(Fts3PhraseToken));
155647 pToken->n = nByte;
155648 pToken->isPrefix = (iEnd<nInput && zInput[iEnd]=='*');
155649 pToken->bFirst = (iBegin>0 && zInput[iBegin-1]=='^');
158241 char *pToken; /* storage for current token */
158330 c->pToken = NULL; /* no space allocated, yet. */
158343 sqlite3_free(c->pToken);
158383 pNew = sqlite3_realloc(c->pToken, c->nTokenAllocated);
158385 c->pToken = pNew;
158392 c->pToken[i] = (char)((ch>='A' && ch<='Z') ? ch-'A'+'a' : ch);
158394 *ppToken = c->pToken;
159003 Fts3PhraseToken *pToken; /* Pointer to corresponding expr token */
164285 Fts3PhraseToken *pPT = pDef->pToken;
164342 Fts3PhraseToken *pToken, /* Token to defer */
164351 pDeferred->pToken = pToken;
164356 assert( pToken->pDeferred==0 );
164357 pToken->pDeferred = pDeferred;
186544 const char *pToken, /* Pointer to buffer containing token */
187004 const char *pToken, int nToken, /* Token (or prefix) to query for */
187043 const char *pToken, int nToken /* Token to add or remove to or from index */
187167 const char *pToken, int nToken /* Token to add or remove to or from index */
187330 Fts5Token *pToken,
188963 const char *pToken, /* Buffer containing token */
188972 UNUSED_PARAM2(pToken, nToken);
189099 const char *pToken, /* Buffer containing token */
189106 UNUSED_PARAM2(pToken, nToken);
191035 Fts5Token *pToken
191043 pToken->p = z;
191044 pToken->n = 1;
191072 pToken->n = (z2 - z);
191084 pToken->n = (z2 - z);
191085 if( pToken->n==2 && memcmp(pToken->p, "OR", 2)==0 ) tok = FTS5_OR;
191086 if( pToken->n==3 && memcmp(pToken->p, "NOT", 3)==0 ) tok = FTS5_NOT;
191087 if( pToken->n==3 && memcmp(pToken->p, "AND", 3)==0 ) tok = FTS5_AND;
191092 *pz = &pToken->p[pToken->n];
192305 static int fts5ParseStringFromToken(Fts5Token *pToken, char **pz){
192307 *pz = sqlite3Fts5Strndup(&rc, pToken->p, pToken->n);
192423 const char *pToken, /* Buffer containing token */
192448 memcpy(pSyn->zTerm, pToken, nToken);
192473 pTerm->zTerm = sqlite3Fts5Strndup(&rc, pToken, nToken);
192516 Fts5Token *pToken, /* String to tokenize */
192527 rc = fts5ParseStringFromToken(pToken, &z);
193567 const char *pToken, /* Pointer to buffer containing token */
193586 && memcmp(pTerm->zTerm, pToken, nTerm)==0
193962 const char *pToken, int nToken /* Token to add or remove to or from index */
193973 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
193978 && memcmp(&zKey[1], pToken, nToken)==0
193995 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
194005 memcpy(&zKey[1], pToken, nToken);
199289 const u8 *pToken, /* Buffer containing prefix to match */
199323 fts5MultiIterNew(p, pStruct, flags, pColset, pToken, nToken, -1, 0, &p1);
199334 assert_nc( memcmp(pToken, pTerm, MIN(nToken, nTerm))<=0 );
199336 if( nTerm<nToken || memcmp(pToken, pTerm, nToken) ) break;
199562 const char *pToken, int nToken /* Token to add or remove to or from index */
199573 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
199578 int nByte = sqlite3Fts5IndexCharlenToBytelen(pToken, nToken, nChar);
199581 p->iWriteRowid, iCol, iPos, (char)(FTS5_MAIN_PREFIX+i+1), pToken,
199596 const char *pToken, int nToken, /* Token (or prefix) to query for */
199610 if( nToken ) memcpy(&buf.p[1], pToken, nToken);
199629 int nChar = fts5IndexCharlen(pToken, nToken);
203884 const char *pToken, /* Buffer containing token */
203896 return sqlite3Fts5IndexWrite(pIdx, pCtx->iCol, pCtx->szCol-1, pToken, nToken);
204315 const char *pToken, /* Buffer containing token */
204353 rc = sqlite3Fts5TermsetAdd(pTermset, 0, pToken, nToken, &bPresent);
204356 pCtx->iRowid, iCol, iPos, 0, pToken, nToken
204362 int nByte = sqlite3Fts5IndexCharlenToBytelen(pToken, nToken, nChar);
204364 rc = sqlite3Fts5TermsetAdd(pTermset, ii+1, pToken, nByte, &bPresent);
204367 pCtx->iRowid, iCol, iPos, ii+1, pToken, nByte
205777 const char *pToken,
205790 memcpy(aBuf, pToken, nBuf);
205837 return p->xToken(p->pCtx, tflags, pToken, nToken, iStart, iEnd);