Lines Matching defs:pToken
8591 const char *pToken, /* Pointer to buffer containing token */
22805 Token *pToken = va_arg(ap, Token*);
22807 if( pToken && pToken->n ){
22808 sqlite3StrAccumAppend(pAccum, (const char*)pToken->z, pToken->n);
85063 ** sequence named by pToken. Return a pointer to a new Expr node that
85431 ** for this node and for the pToken argument is a single allocation
85437 ** parameter is ignored if pToken is NULL or if the token does not
85441 ** Special case: If op==TK_INTEGER and pToken points to a string that
85450 const Token *pToken, /* Token argument. Might be NULL */
85457 if( pToken ){
85458 if( op!=TK_INTEGER || pToken->z==0
85459 || sqlite3GetInt32(pToken->z, &iValue)==0 ){
85460 nExtra = pToken->n+1;
85468 if( pToken ){
85475 assert( pToken->z!=0 || pToken->n==0 );
85476 if( pToken->n ) memcpy(pNew->u.zToken, pToken->z, pToken->n);
85477 pNew->u.zToken[pToken->n] = 0;
85479 && ((c = pToken->z[0])=='\'' || c=='"' || c=='[' || c=='`') ){
85548 const Token *pToken /* Argument token */
85555 p = sqlite3ExprAlloc(pParse->db, op, pToken, 1);
85619 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
85622 assert( pToken );
85623 pNew = sqlite3ExprAlloc(db, TK_FUNCTION, pToken, 1);
94196 SQLITE_PRIVATE void sqlite3AddCollateType(Parse *pParse, Token *pToken){
94205 zColl = sqlite3NameFromToken(db, pToken);
96357 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
96374 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
139878 Fts3PhraseToken *pToken = &pExpr->pPhrase->aToken[i];
139880 pToken->z, pToken->n, pToken->isPrefix, &pToken->pSegcsr
139980 Fts3PhraseToken *pToken = &p->aToken[iToken];
139981 assert( pToken->pDeferred==0 || pToken->pSegcsr==0 );
139983 if( pToken->pSegcsr ){
139986 rc = fts3TermSelect(pTab, pToken, p->iColumn, &nThis, &pThis);
139991 assert( pToken->pSegcsr==0 );
140016 Fts3PhraseToken *pToken = &pPhrase->aToken[iToken];
140017 Fts3DeferredToken *pDeferred = pToken->pDeferred;
140138 Fts3PhraseToken *pToken = &p->aToken[i];
140139 if( pToken->bFirst || (pToken->pSegcsr!=0 && !pToken->pSegcsr->bLookup) ){
140142 if( pToken->pSegcsr ) bHaveIncr = 1;
140149 Fts3PhraseToken *pToken = &p->aToken[i];
140150 Fts3MultiSegReader *pSegcsr = pToken->pSegcsr;
140152 rc = sqlite3Fts3MsrIncrStart(pTab, pSegcsr, iCol, pToken->z, pToken->n);
140324 ** Token pToken is an incrementally loaded token that is part of a
140349 Fts3PhraseToken *pToken = &pPhrase->aToken[iToken];
140350 assert( pToken->pDeferred==0 );
140351 assert( pToken->pSegcsr || pPhrase->iDoclistToken>=0 );
140352 if( pToken->pSegcsr ){
140355 pTab, pToken->pSegcsr, &p->iDocid, &p->pList, &p->nList
140563 Fts3PhraseToken *pToken; /* The token itself */
140593 pTC->pToken = &pPhrase->aToken[i];
140595 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
140760 if( aTC[iTC].pToken && aTC[iTC].pRoot==pRoot
140773 Fts3PhraseToken *pToken = pTC->pToken;
140774 rc = sqlite3Fts3DeferToken(pCsr, pToken, pTC->iCol);
140775 fts3SegReaderCursorFree(pToken->pSegcsr);
140776 pToken->pSegcsr = 0;
140787 Fts3PhraseToken *pToken = pTC->pToken;
140790 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
140806 pTC->pToken = 0;
141401 Fts3PhraseToken *pToken = &pPhrase->aToken[i];
141402 assert( pToken->pDeferred==0 );
141403 if( pToken->pSegcsr ){
141404 sqlite3Fts3MsrIncrRestart(pToken->pSegcsr);
142682 Fts3PhraseToken *pToken;
142691 pToken = &((Fts3Phrase *)(&p[1]))->aToken[ii];
142692 memset(pToken, 0, sizeof(Fts3PhraseToken));
142697 pToken->n = nByte;
142698 pToken->isPrefix = (iEnd<nInput && zInput[iEnd]=='*');
142699 pToken->bFirst = (iBegin>0 && zInput[iBegin-1]=='^');
145269 char *pToken; /* storage for current token */
145358 c->pToken = NULL; /* no space allocated, yet. */
145371 sqlite3_free(c->pToken);
145411 pNew = sqlite3_realloc(c->pToken, c->nTokenAllocated);
145413 c->pToken = pNew;
145420 c->pToken[i] = (char)((ch>='A' && ch<='Z') ? ch-'A'+'a' : ch);
145422 *ppToken = c->pToken;
146031 Fts3PhraseToken *pToken; /* Pointer to corresponding expr token */
151298 Fts3PhraseToken *pPT = pDef->pToken;
151351 ** Add an entry for token pToken
151355 Fts3PhraseToken *pToken, /* Token to defer */
151364 pDeferred->pToken = pToken;
151369 assert( pToken->pDeferred==0 );
151370 pToken->pDeferred = pDeferred;
166105 const char *pToken, /* Pointer to buffer containing token */
166504 const char *pToken, int nToken, /* Token (or prefix) to query for */
166547 const char *pToken, int nToken /* Token to add or remove to or from index */
166671 const char *pToken, int nToken /* Token to add or remove to or from index */
166819 Fts5Token *pToken,
168215 const char *pToken, /* Buffer containing token */
169561 ** const char *pToken // Pointer to buffer containing token
169936 Fts5Token *pToken
169944 pToken->p = z;
169945 pToken->n = 1;
169971 pToken->n = (z2 - z);
169983 pToken->n = (z2 - z);
169984 if( pToken->n==2 && memcmp(pToken->p, "OR", 2)==0 ) tok = FTS5_OR;
169985 if( pToken->n==3 && memcmp(pToken->p, "NOT", 3)==0 ) tok = FTS5_NOT;
169986 if( pToken->n==3 && memcmp(pToken->p, "AND", 3)==0 ) tok = FTS5_AND;
169991 *pz = &pToken->p[pToken->n];
171116 static int fts5ParseStringFromToken(Fts5Token *pToken, char **pz){
171118 *pz = sqlite3Fts5Strndup(&rc, pToken->p, pToken->n);
171209 const char *pToken, /* Buffer containing token */
171232 memcpy(pSyn->zTerm, pToken, nToken);
171257 pTerm->zTerm = sqlite3Fts5Strndup(&rc, pToken, nToken);
171300 Fts5Token *pToken, /* String to tokenize */
171311 rc = fts5ParseStringFromToken(pToken, &z);
172242 const char *pToken, int nToken /* Token to add or remove to or from index */
172250 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
172253 && memcmp(&p->zKey[1], pToken, nToken)==0
172268 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
172276 memcpy(&p->zKey[1], pToken, nToken);
176812 const u8 *pToken, /* Buffer containing prefix to match */
176813 int nToken, /* Size of buffer pToken in bytes */
176833 for(fts5MultiIterNew(p, pStruct, 1, flags, pToken, nToken, -1, 0, &p1);
176840 assert_nc( memcmp(pToken, pTerm, MIN(nToken, nTerm))<=0 );
176841 if( nTerm<nToken || memcmp(pToken, pTerm, nToken) ) break;
177058 const char *pToken, int nToken /* Token to add or remove to or from index */
177069 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
177073 int nByte = fts5IndexCharlenToBytelen(pToken, nToken, pConfig->aPrefix[i]);
177076 p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX+i+1, pToken, nByte
177090 const char *pToken, int nToken, /* Token (or prefix) to query for */
177106 memcpy(&buf.p[1], pToken, nToken);
177120 int nChar = fts5IndexCharlen(pToken, nToken);
179987 const char *pToken, /* Buffer containing token */
181101 const char *pToken, /* Buffer containing token */
181111 return sqlite3Fts5IndexWrite(pIdx, pCtx->iCol, pCtx->szCol-1, pToken, nToken);
181583 const char *pToken, /* Buffer containing token */
181593 pCtx->pConfig, pCtx->iRowid, pCtx->iCol, pCtx->szCol-1, pToken, nToken
182973 const char *pToken,
182986 memcpy(aBuf, pToken, nBuf);
183033 return p->xToken(p->pCtx, tflags, pToken, nToken, iStart, iEnd);