• Home
  • Raw
  • Download

Lines Matching refs:iPos

167279       int nByte = 0, iBegin = 0, iEnd = 0, iPos = 0;
167280 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
169592 int iPos = 0;
169634 while( SQLITE_OK==p->xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos) ){
169635 Tcl_ListObjAppendElement(0, pRet, Tcl_NewIntObj(iPos));
170139 int iPos; /* Current 'pos' value */
170360 pCsr->iPos = 0;
170386 &pCsr->iStart, &pCsr->iEnd, &pCsr->iPos
170468 sqlite3_result_int(pCtx, pCsr->iPos);
171216 sqlite3_int64 iPos, /* Position of term for entry to add */
171248 assert( iPos>p->iLastPos || (iPos==0 && p->iLastPos==0) );
171249 rc = fts3PendingListAppendVarint(&p, 2+iPos-p->iLastPos);
171251 p->iLastPos = iPos;
171277 int iPos,
171289 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
171322 int iPos = 0;
171351 && SQLITE_OK==(rc = xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos))
171354 if( iPos>=nWord ) nWord = iPos+1;
171359 if( iPos<0 || !zToken || nToken<=0 ){
171366 p, iCol, iPos, &p->aIndex[0].hPending, zToken, nToken
171375 p, iCol, iPos, &pIndex->hPending, zToken, pIndex->nPrefix
175671 int iPos /* Position */
175679 ret += (ret<<3) + iPos;
175726 u64 iPos = 0;
175735 iPos = 0;
175747 iPos += (iVal - 2);
175750 (int)iCol, (int)iPos
175824 int iPos = 0; /* Position of token in zText */
175826 rc = pModule->xNext(pT, &zToken, &nToken, &iDum1, &iDum2, &iPos);
175830 zToken, nToken, iLang, 0, iDocid, iCol, iPos
175835 zToken, p->aIndex[i].nPrefix, iLang, i, iDocid, iCol, iPos
176004 int iPos = 0; /* Position of token in zText */
176006 rc = pModule->xNext(pTC, &zToken, &nToken, &iDum1, &iDum2, &iPos);
176010 && (pPT->bFirst==0 || iPos==0)
176014 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
176382 int iPos; /* Index of first token in snippet */
176876 int iPos;
176880 fts3SnippetDetails(&sIter, mCovered, &iPos, &iScore, &mCover,&mHighlite);
176883 pFragment->iPos = iPos;
177038 int iPos = pFragment->iPos; /* First token of snippet */
177089 if( iCurrent<iPos ){ continue; }
177094 pTab, pCsr->iLangid, nSnippet, &zDoc[iBegin], n, &iPos, &hlmask
177103 if( iPos>0 || iFragment>0 ){
177109 if( rc!=SQLITE_OK || iCurrent<iPos ) continue;
177112 if( iCurrent>=(iPos+nSnippet) ){
177120 isHighlight = (hlmask & ((u64)1 << (iCurrent-iPos)))!=0;
177122 if( iCurrent>iPos ) rc = fts3StringAppend(pOut, &zDoc[iEnd], iBegin-iEnd);
177390 int iPos; /* Current position */
177424 pIter->iPos += (int)(iRead-2);
177472 pIt->iPos = pIt->iPosOffset;
177492 if( pAdv==0 || pIter->iPos<pAdv->iPos ){
177495 if( nThisLcs==0 || pIter->iPos==pIter[-1].iPos ){
177846 int iPos; /* Position just read from pList */
177866 int iPos = 0; /* First position in position-list */
177873 fts3GetDeltaPosition(&pList, &iPos);
177874 assert_fts3_nc( iPos>=0 );
177881 pT->iPos = iPos;
177974 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
177975 iMinPos = pT->iPos-pT->iOff;
177988 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);
201603 #define FTS5_POS2COLUMN(iPos) (int)(iPos >> 32)
201604 #define FTS5_POS2OFFSET(iPos) (int)(iPos & 0x7FFFFFFF)
201617 i64 iPos; /* (iCol<<32) + iPos */
201699 int iPos,
201760 int iPos, /* Position of token within column */
201895 int iPos, /* Position of token within column */
203737 int iPos; /* Current token offset in zIn[] */
203782 int iPos;
203787 iPos = p->iPos++;
203790 if( iPos<p->iRangeStart || iPos>p->iRangeEnd ) return SQLITE_OK;
203791 if( p->iRangeStart && iPos==p->iRangeStart ) p->iOff = iStartOff;
203794 if( iPos==p->iter.iStart ){
203800 if( iPos==p->iter.iEnd ){
203812 if( p->iRangeEnd>0 && iPos==p->iRangeEnd ){
203815 if( iPos>=p->iter.iStart && iPos<p->iter.iEnd ){
203877 int iPos; /* Current token position */
203923 if( p->iPos>0 ){
203931 rc = fts5SentenceFinderAdd(p, p->iPos);
203936 p->iPos++;
203947 int iPos, /* Starting offset to score */
203961 sqlite3_int64 iEnd = (sqlite3_int64)iPos + nToken;
203966 if( rc==SQLITE_OK && ic==iCol && iOff>=iPos && iOff<iEnd ){
204051 sFinder.iPos = 0;
204538 if( sqlite3Fts5PoslistNext64(pIter->a, pIter->n, &pIter->i, &pIter->iPos) ){
204564 i64 iPos
204567 if( (iPos & colmask) != (*piPrev & colmask) ){
204569 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos>>32));
204570 *piPrev = (iPos & colmask);
204572 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos-*piPrev)+2);
204573 *piPrev = iPos;
204579 i64 iPos
204583 sqlite3Fts5PoslistSafeAppend(pBuf, &pWriter->iPrev, iPos);
206085 if( aIter[i].iPos==iPrev ){
206088 if( aIter[i].iPos<iMin ){
206089 iMin = aIter[i].iPos;
206168 i64 iPos = aIter[0].iPos;
206173 i64 iAdj = iPos + i;
206174 if( pPos->iPos!=iAdj ){
206176 while( pPos->iPos<iAdj ){
206179 if( pPos->iPos>iAdj ) iPos = pPos->iPos-i;
206185 if( bFirst==0 || FTS5_POS2OFFSET(iPos)==0 ){
206186 rc = sqlite3Fts5PoslistWriterAppend(&pPhrase->poslist, &writer, iPos);
206209 i64 iPos; /* Current position */
206216 p->iPos = p->iLookahead;
206220 return (p->iPos==FTS5_LOOKAHEAD_EOF);
206304 iMax = a[0].reader.iPos;
206310 if( pPos->iPos<iMin || pPos->iPos>iMax ){
206312 while( pPos->iPos<iMin ){
206315 if( pPos->iPos>iMax ) iMax = pPos->iPos;
206322 i64 iPos = a[i].reader.iPos;
206324 if( a[i].pOut->n==0 || iPos!=pWriter->iPrev ){
206325 sqlite3Fts5PoslistWriterAppend(a[i].pOut, pWriter, iPos);
208621 int iPos; /* Position of last value written */
208796 int iPos, /* Position of token within column */
208901 p->iPos = 0;
208916 p->iPos = 0;
208919 p->iCol = (i16)(iPos = iCol);
208925 p->nData += sqlite3Fts5PutVarint(&pPtr[p->nData], iPos - p->iPos + 2);
208926 p->iPos = iPos;
213709 int iPos = 0;
213713 if( (nCopy - iPos)<=nSpace ){
213714 n = nCopy - iPos;
213716 n = fts5PoslistPrefix(&pPoslist[iPos], nSpace);
213719 fts5BufferSafeAppendBlob(pBuf, &pPoslist[iPos], n);
213720 iPos += n;
213724 if( iPos>=nCopy ) break;
214457 int iPos, /* Position of token within column */
214469 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
214477 p->iWriteRowid, iCol, iPos, (char)(FTS5_MAIN_PREFIX+i+1), pToken,
214725 int iPos,
214733 ret += (ret<<3) + iPos;
214808 int iCol = FTS5_POS2COLUMN(sReader.iPos);
214809 int iOff = FTS5_POS2OFFSET(sReader.iPos);
215164 i64 iPos = 0; /* Position read from poslist */
215179 while( 0==sqlite3Fts5PoslistNext64(poslist.p, poslist.n, &iOff, &iPos) ){
215180 int iCol = FTS5_POS2COLUMN(iPos);
215181 int iTokOff = FTS5_POS2OFFSET(iPos);
217497 && (iBest<0 || aIter[i].iPos<aIter[iBest].iPos)
217520 aInst[1] = FTS5_POS2COLUMN(aIter[iBest].iPos);
217521 aInst[2] = FTS5_POS2OFFSET(aIter[iBest].iPos);
219282 int iPos;
219294 iPos = pCtx->szCol-1;
219299 iPos = pCtx->iCol;
219305 iPos = 0;
219313 pCtx->iRowid, iCol, iPos, 0, pToken, nToken
219324 pCtx->iRowid, iCol, iPos, ii+1, pToken, nByte
222526 i64 iPos = 0; /* 64-bit position read from poslist */
222535 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
222545 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
222546 int ii = FTS5_POS2COLUMN(iPos);
222558 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff,&iPos) ){
222559 assert_nc( iPos>=0 && iPos<nCol );
222560 if( iPos>=nCol ){
222564 pCsr->aDoc[iPos]++;