Lines Matching refs:iPos
110585 int iPos = sqlite3TableColumnToIndex(pPk, i);
110587 if( iPos<pPk->nKeyCol ) continue;
110588 regOut = reg+1+iPos-(iPos>iColPos);
180294 int nByte = 0, iBegin = 0, iEnd = 0, iPos = 0;
180295 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
182609 int iPos = 0;
182651 while( SQLITE_OK==p->xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos) ){
182652 Tcl_ListObjAppendElement(0, pRet, Tcl_NewIntObj(iPos));
183156 int iPos; /* Current 'pos' value */
183378 pCsr->iPos = 0;
183404 &pCsr->iStart, &pCsr->iEnd, &pCsr->iPos
183486 sqlite3_result_int(pCtx, pCsr->iPos);
184236 sqlite3_int64 iPos, /* Position of term for entry to add */
184268 assert( iPos>p->iLastPos || (iPos==0 && p->iLastPos==0) );
184269 rc = fts3PendingListAppendVarint(&p, 2+iPos-p->iLastPos);
184271 p->iLastPos = iPos;
184297 int iPos,
184309 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
184342 int iPos = 0;
184371 && SQLITE_OK==(rc = xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos))
184374 if( iPos>=nWord ) nWord = iPos+1;
184379 if( iPos<0 || !zToken || nToken<=0 ){
184386 p, iCol, iPos, &p->aIndex[0].hPending, zToken, nToken
184395 p, iCol, iPos, &pIndex->hPending, zToken, pIndex->nPrefix
188723 int iPos /* Position */
188731 ret += (ret<<3) + iPos;
188778 u64 iPos = 0;
188787 iPos = 0;
188799 iPos += (iVal - 2);
188802 (int)iCol, (int)iPos
188876 int iPos = 0; /* Position of token in zText */
188878 rc = pModule->xNext(pT, &zToken, &nToken, &iDum1, &iDum2, &iPos);
188882 zToken, nToken, iLang, 0, iDocid, iCol, iPos
188887 zToken, p->aIndex[i].nPrefix, iLang, i, iDocid, iCol, iPos
189056 int iPos = 0; /* Position of token in zText */
189058 rc = pModule->xNext(pTC, &zToken, &nToken, &iDum1, &iDum2, &iPos);
189062 && (pPT->bFirst==0 || iPos==0)
189066 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
189438 int iPos; /* Index of first token in snippet */
189930 int iPos;
189934 fts3SnippetDetails(&sIter, mCovered, &iPos, &iScore, &mCover,&mHighlite);
189937 pFragment->iPos = iPos;
190092 int iPos = pFragment->iPos; /* First token of snippet */
190143 if( iCurrent<iPos ){ continue; }
190148 pTab, pCsr->iLangid, nSnippet, &zDoc[iBegin], n, &iPos, &hlmask
190157 if( iPos>0 || iFragment>0 ){
190163 if( rc!=SQLITE_OK || iCurrent<iPos ) continue;
190166 if( iCurrent>=(iPos+nSnippet) ){
190174 isHighlight = (hlmask & ((u64)1 << (iCurrent-iPos)))!=0;
190176 if( iCurrent>iPos ) rc = fts3StringAppend(pOut, &zDoc[iEnd], iBegin-iEnd);
190444 int iPos; /* Current position */
190480 pIter->iPos += (int)(iRead-2);
190527 pIt->iPos = pIt->iPosOffset;
190547 if( pAdv==0 || pIter->iPos<pAdv->iPos ){
190550 if( nThisLcs==0 || pIter->iPos==pIter[-1].iPos ){
190901 i64 iPos; /* Position just read from pList */
190921 i64 iPos = 0; /* First position in position-list */
190928 fts3GetDeltaPosition(&pList, &iPos);
190929 assert_fts3_nc( iPos>=0 );
190936 pT->iPos = iPos;
191029 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
191030 iMinPos = pT->iPos-pT->iOff;
191043 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);
215825 #define FTS5_POS2COLUMN(iPos) (int)(iPos >> 32)
215826 #define FTS5_POS2OFFSET(iPos) (int)(iPos & 0x7FFFFFFF)
215839 i64 iPos; /* (iCol<<32) + iPos */
215921 int iPos,
215990 int iPos, /* Position of token within column */
216124 int iPos, /* Position of token within column */
217989 int iPos; /* Current token offset in zIn[] */
218034 int iPos;
218039 iPos = p->iPos++;
218042 if( iPos<p->iRangeStart || iPos>p->iRangeEnd ) return SQLITE_OK;
218043 if( p->iRangeStart && iPos==p->iRangeStart ) p->iOff = iStartOff;
218046 if( iPos==p->iter.iStart ){
218052 if( iPos==p->iter.iEnd ){
218064 if( p->iRangeEnd>0 && iPos==p->iRangeEnd ){
218067 if( iPos>=p->iter.iStart && iPos<p->iter.iEnd ){
218129 int iPos; /* Current token position */
218175 if( p->iPos>0 ){
218183 rc = fts5SentenceFinderAdd(p, p->iPos);
218188 p->iPos++;
218199 int iPos, /* Starting offset to score */
218213 sqlite3_int64 iEnd = (sqlite3_int64)iPos + nToken;
218218 if( rc==SQLITE_OK && ic==iCol && iOff>=iPos && iOff<iEnd ){
218303 sFinder.iPos = 0;
218800 if( sqlite3Fts5PoslistNext64(pIter->a, pIter->n, &pIter->i, &pIter->iPos) ){
218826 i64 iPos
218828 if( iPos>=*piPrev ){
218830 if( (iPos & colmask) != (*piPrev & colmask) ){
218832 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos>>32));
218833 *piPrev = (iPos & colmask);
218835 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos-*piPrev)+2);
218836 *piPrev = iPos;
218843 i64 iPos
218847 sqlite3Fts5PoslistSafeAppend(pBuf, &pWriter->iPrev, iPos);
220470 if( aIter[i].iPos==iPrev ){
220473 if( aIter[i].iPos<iMin ){
220474 iMin = aIter[i].iPos;
220553 i64 iPos = aIter[0].iPos;
220558 i64 iAdj = iPos + i;
220559 if( pPos->iPos!=iAdj ){
220561 while( pPos->iPos<iAdj ){
220564 if( pPos->iPos>iAdj ) iPos = pPos->iPos-i;
220570 if( bFirst==0 || FTS5_POS2OFFSET(iPos)==0 ){
220571 rc = sqlite3Fts5PoslistWriterAppend(&pPhrase->poslist, &writer, iPos);
220594 i64 iPos; /* Current position */
220601 p->iPos = p->iLookahead;
220605 return (p->iPos==FTS5_LOOKAHEAD_EOF);
220689 iMax = a[0].reader.iPos;
220695 if( pPos->iPos<iMin || pPos->iPos>iMax ){
220697 while( pPos->iPos<iMin ){
220700 if( pPos->iPos>iMax ) iMax = pPos->iPos;
220707 i64 iPos = a[i].reader.iPos;
220709 if( a[i].pOut->n==0 || iPos!=pWriter->iPrev ){
220710 sqlite3Fts5PoslistWriterAppend(a[i].pOut, pWriter, iPos);
223104 int iPos; /* Position of last value written */
223279 int iPos, /* Position of token within column */
223384 p->iPos = 0;
223399 p->iPos = 0;
223402 p->iCol = (i16)(iPos = iCol);
223408 p->nData += sqlite3Fts5PutVarint(&pPtr[p->nData], iPos - p->iPos + 2);
223409 p->iPos = iPos;
228264 int iPos = 0;
228268 if( (nCopy - iPos)<=nSpace ){
228269 n = nCopy - iPos;
228271 n = fts5PoslistPrefix(&pPoslist[iPos], nSpace);
228274 fts5BufferSafeAppendBlob(pBuf, &pPoslist[iPos], n);
228275 iPos += n;
228279 if( iPos>=nCopy ) break;
228610 i64 iPos; /* For iterating through a position list */
228634 if( p->iPos>=0 ){
228636 while( *pp && p->iPos>(*pp)->iPos ){
228656 sqlite3Fts5PoslistNext64((p)->aPos,(p)->iter.nPoslist,&(p)->iOff,&(p)->iPos)
228711 pSave->iPos = 0;
228735 sqlite3Fts5PoslistSafeAppend(&tmp, &iPrev, pThis->iPos);
228741 if( pThis->iPos!=iPrev ){
228742 sqlite3Fts5PoslistSafeAppend(&tmp, &iPrev, pThis->iPos);
228749 if( pHead->iPos!=iPrev ){
228750 sqlite3Fts5PoslistSafeAppend(&tmp, &iPrev, pHead->iPos);
229113 int iPos, /* Position of token within column */
229125 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
229133 p->iWriteRowid, iCol, iPos, (char)(FTS5_MAIN_PREFIX+i+1), pToken,
229388 int iPos,
229396 ret += (ret<<3) + iPos;
229471 int iCol = FTS5_POS2COLUMN(sReader.iPos);
229472 int iOff = FTS5_POS2OFFSET(sReader.iPos);
229867 i64 iPos = 0; /* Position read from poslist */
229883 while( 0==sqlite3Fts5PoslistNext64(poslist.p, poslist.n, &iOff, &iPos) ){
229884 int iCol = FTS5_POS2COLUMN(iPos);
229885 int iTokOff = FTS5_POS2OFFSET(iPos);
232359 && (iBest<0 || aIter[i].iPos<aIter[iBest].iPos)
232384 aInst[1] = FTS5_POS2COLUMN(aIter[iBest].iPos);
232385 aInst[2] = FTS5_POS2OFFSET(aIter[iBest].iPos);
234173 int iPos;
234185 iPos = pCtx->szCol-1;
234190 iPos = pCtx->iCol;
234196 iPos = 0;
234204 pCtx->iRowid, iCol, iPos, 0, pToken, nToken
234215 pCtx->iRowid, iCol, iPos, ii+1, pToken, nByte
237571 i64 iPos = 0; /* 64-bit position read from poslist */
237580 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
237590 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
237591 int ii = FTS5_POS2COLUMN(iPos);
237603 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff,&iPos) ){
237604 assert_nc( iPos>=0 && iPos<nCol );
237605 if( iPos>=nCol ){
237609 pCsr->aDoc[iPos]++;