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);
85045 ** sequence named by pToken. Return a pointer to a new Expr node that
85413 ** for this node and for the pToken argument is a single allocation
85419 ** parameter is ignored if pToken is NULL or if the token does not
85423 ** Special case: If op==TK_INTEGER and pToken points to a string that
85432 const Token *pToken, /* Token argument. Might be NULL */
85439 if( pToken ){
85440 if( op!=TK_INTEGER || pToken->z==0
85441 || sqlite3GetInt32(pToken->z, &iValue)==0 ){
85442 nExtra = pToken->n+1;
85450 if( pToken ){
85457 assert( pToken->z!=0 || pToken->n==0 );
85458 if( pToken->n ) memcpy(pNew->u.zToken, pToken->z, pToken->n);
85459 pNew->u.zToken[pToken->n] = 0;
85461 && ((c = pToken->z[0])=='\'' || c=='"' || c=='[' || c=='`') ){
85530 const Token *pToken /* Argument token */
85537 p = sqlite3ExprAlloc(pParse->db, op, pToken, 1);
85601 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
85604 assert( pToken );
85605 pNew = sqlite3ExprAlloc(db, TK_FUNCTION, pToken, 1);
94178 SQLITE_PRIVATE void sqlite3AddCollateType(Parse *pParse, Token *pToken){
94187 zColl = sqlite3NameFromToken(db, pToken);
96339 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
96356 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
139848 Fts3PhraseToken *pToken = &pExpr->pPhrase->aToken[i];
139850 pToken->z, pToken->n, pToken->isPrefix, &pToken->pSegcsr
139950 Fts3PhraseToken *pToken = &p->aToken[iToken];
139951 assert( pToken->pDeferred==0 || pToken->pSegcsr==0 );
139953 if( pToken->pSegcsr ){
139956 rc = fts3TermSelect(pTab, pToken, p->iColumn, &nThis, &pThis);
139961 assert( pToken->pSegcsr==0 );
139986 Fts3PhraseToken *pToken = &pPhrase->aToken[iToken];
139987 Fts3DeferredToken *pDeferred = pToken->pDeferred;
140108 Fts3PhraseToken *pToken = &p->aToken[i];
140109 if( pToken->bFirst || (pToken->pSegcsr!=0 && !pToken->pSegcsr->bLookup) ){
140112 if( pToken->pSegcsr ) bHaveIncr = 1;
140119 Fts3PhraseToken *pToken = &p->aToken[i];
140120 Fts3MultiSegReader *pSegcsr = pToken->pSegcsr;
140122 rc = sqlite3Fts3MsrIncrStart(pTab, pSegcsr, iCol, pToken->z, pToken->n);
140294 ** Token pToken is an incrementally loaded token that is part of a
140319 Fts3PhraseToken *pToken = &pPhrase->aToken[iToken];
140320 assert( pToken->pDeferred==0 );
140321 assert( pToken->pSegcsr || pPhrase->iDoclistToken>=0 );
140322 if( pToken->pSegcsr ){
140325 pTab, pToken->pSegcsr, &p->iDocid, &p->pList, &p->nList
140533 Fts3PhraseToken *pToken; /* The token itself */
140563 pTC->pToken = &pPhrase->aToken[i];
140565 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
140730 if( aTC[iTC].pToken && aTC[iTC].pRoot==pRoot
140743 Fts3PhraseToken *pToken = pTC->pToken;
140744 rc = sqlite3Fts3DeferToken(pCsr, pToken, pTC->iCol);
140745 fts3SegReaderCursorFree(pToken->pSegcsr);
140746 pToken->pSegcsr = 0;
140757 Fts3PhraseToken *pToken = pTC->pToken;
140760 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
140776 pTC->pToken = 0;
141371 Fts3PhraseToken *pToken = &pPhrase->aToken[i];
141372 assert( pToken->pDeferred==0 );
141373 if( pToken->pSegcsr ){
141374 sqlite3Fts3MsrIncrRestart(pToken->pSegcsr);
142652 Fts3PhraseToken *pToken;
142661 pToken = &((Fts3Phrase *)(&p[1]))->aToken[ii];
142662 memset(pToken, 0, sizeof(Fts3PhraseToken));
142667 pToken->n = nByte;
142668 pToken->isPrefix = (iEnd<nInput && zInput[iEnd]=='*');
142669 pToken->bFirst = (iBegin>0 && zInput[iBegin-1]=='^');
145239 char *pToken; /* storage for current token */
145328 c->pToken = NULL; /* no space allocated, yet. */
145341 sqlite3_free(c->pToken);
145381 pNew = sqlite3_realloc(c->pToken, c->nTokenAllocated);
145383 c->pToken = pNew;
145390 c->pToken[i] = (char)((ch>='A' && ch<='Z') ? ch-'A'+'a' : ch);
145392 *ppToken = c->pToken;
146001 Fts3PhraseToken *pToken; /* Pointer to corresponding expr token */
151268 Fts3PhraseToken *pPT = pDef->pToken;
151321 ** Add an entry for token pToken to the pCsr->pDeferred list.
151325 Fts3PhraseToken *pToken, /* Token to defer */
151334 pDeferred->pToken = pToken;
151339 assert( pToken->pDeferred==0 );
151340 pToken->pDeferred = pDeferred;
166075 const char *pToken, /* Pointer to buffer containing token */
166474 const char *pToken, int nToken, /* Token (or prefix) to query for */
166517 const char *pToken, int nToken /* Token to add or remove to or from index */
166641 const char *pToken, int nToken /* Token to add or remove to or from index */
166789 Fts5Token *pToken,
168185 const char *pToken, /* Buffer containing token */
169531 ** const char *pToken // Pointer to buffer containing token
169906 Fts5Token *pToken
169914 pToken->p = z;
169915 pToken->n = 1;
169941 pToken->n = (z2 - z);
169953 pToken->n = (z2 - z);
169954 if( pToken->n==2 && memcmp(pToken->p, "OR", 2)==0 ) tok = FTS5_OR;
169955 if( pToken->n==3 && memcmp(pToken->p, "NOT", 3)==0 ) tok = FTS5_NOT;
169956 if( pToken->n==3 && memcmp(pToken->p, "AND", 3)==0 ) tok = FTS5_AND;
169961 *pz = &pToken->p[pToken->n];
171086 static int fts5ParseStringFromToken(Fts5Token *pToken, char **pz){
171088 *pz = sqlite3Fts5Strndup(&rc, pToken->p, pToken->n);
171179 const char *pToken, /* Buffer containing token */
171202 memcpy(pSyn->zTerm, pToken, nToken);
171227 pTerm->zTerm = sqlite3Fts5Strndup(&rc, pToken, nToken);
171270 Fts5Token *pToken, /* String to tokenize */
171281 rc = fts5ParseStringFromToken(pToken, &z);
172212 const char *pToken, int nToken /* Token to add or remove to or from index */
172220 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
172223 && memcmp(&p->zKey[1], pToken, nToken)==0
172238 iHash = fts5HashKey2(pHash->nSlot, (u8)bByte, (const u8*)pToken, nToken);
172246 memcpy(&p->zKey[1], pToken, nToken);
176782 const u8 *pToken, /* Buffer containing prefix to match */
176783 int nToken, /* Size of buffer pToken in bytes */
176803 for(fts5MultiIterNew(p, pStruct, 1, flags, pToken, nToken, -1, 0, &p1);
176810 assert_nc( memcmp(pToken, pTerm, MIN(nToken, nTerm))<=0 );
176811 if( nTerm<nToken || memcmp(pToken, pTerm, nToken) ) break;
177028 const char *pToken, int nToken /* Token to add or remove to or from index */
177039 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
177043 int nByte = fts5IndexCharlenToBytelen(pToken, nToken, pConfig->aPrefix[i]);
177046 p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX+i+1, pToken, nByte
177060 const char *pToken, int nToken, /* Token (or prefix) to query for */
177076 memcpy(&buf.p[1], pToken, nToken);
177090 int nChar = fts5IndexCharlen(pToken, nToken);
179957 const char *pToken, /* Buffer containing token */
181071 const char *pToken, /* Buffer containing token */
181081 return sqlite3Fts5IndexWrite(pIdx, pCtx->iCol, pCtx->szCol-1, pToken, nToken);
181553 const char *pToken, /* Buffer containing token */
181563 pCtx->pConfig, pCtx->iRowid, pCtx->iCol, pCtx->szCol-1, pToken, nToken
182943 const char *pToken,
182956 memcpy(aBuf, pToken, nBuf);
183003 pToken, nToken, iStart, iEnd);