Lines Matching refs:iPos
142679 int nByte = 0, iBegin = 0, iEnd = 0, iPos = 0;
142680 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
144989 int iPos = 0;
145031 while( SQLITE_OK==p->xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos) ){
145032 Tcl_ListObjAppendElement(0, pRet, Tcl_NewIntObj(iPos));
145531 int iPos; /* Current 'pos' value */
145752 pCsr->iPos = 0;
145778 &pCsr->iStart, &pCsr->iEnd, &pCsr->iPos
145860 sqlite3_result_int(pCtx, pCsr->iPos);
146604 sqlite3_int64 iPos, /* Position of term for entry to add */
146636 assert( iPos>p->iLastPos || (iPos==0 && p->iLastPos==0) );
146637 rc = fts3PendingListAppendVarint(&p, 2+iPos-p->iLastPos);
146639 p->iLastPos = iPos;
146665 int iPos,
146677 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
146710 int iPos = 0;
146739 && SQLITE_OK==(rc = xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos))
146742 if( iPos>=nWord ) nWord = iPos+1;
146747 if( iPos<0 || !zToken || nToken<=0 ){
146754 p, iCol, iPos, &p->aIndex[0].hPending, zToken, nToken
146763 p, iCol, iPos, &pIndex->hPending, zToken, pIndex->nPrefix
150970 int iPos /* Position */
150978 ret += (ret<<3) + iPos;
151025 i64 iPos = 0;
151034 iPos = 0;
151042 iPos += (iVal - 2);
151045 (int)iCol, (int)iPos
151120 int iPos = 0; /* Position of token in zText */
151122 rc = pModule->xNext(pT, &zToken, &nToken, &iDum1, &iDum2, &iPos);
151126 zToken, nToken, iLang, 0, iDocid, iCol, iPos
151131 zToken, p->aIndex[i].nPrefix, iLang, i, iDocid, iCol, iPos
151294 int iPos = 0; /* Position of token in zText */
151296 rc = pModule->xNext(pTC, &zToken, &nToken, &iDum1, &iDum2, &iPos);
151300 && (pPT->bFirst==0 || iPos==0)
151304 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
151674 int iPos; /* Index of first token in snippet */
152162 int iPos;
152166 fts3SnippetDetails(&sIter, mCovered, &iPos, &iScore, &mCover,&mHighlite);
152169 pFragment->iPos = iPos;
152323 int iPos = pFragment->iPos; /* First token of snippet */
152374 if( iCurrent<iPos ){ continue; }
152379 pTab, pCsr->iLangid, nSnippet, &zDoc[iBegin], n, &iPos, &hlmask
152388 if( iPos>0 || iFragment>0 ){
152394 if( rc!=SQLITE_OK || iCurrent<iPos ) continue;
152397 if( iCurrent>=(iPos+nSnippet) ){
152405 isHighlight = (hlmask & ((u64)1 << (iCurrent-iPos)))!=0;
152407 if( iCurrent>iPos ) rc = fts3StringAppend(pOut, &zDoc[iEnd], iBegin-iEnd);
152659 int iPos; /* Current position */
152693 pIter->iPos += (int)(iRead-2);
152741 pIt->iPos = pIt->iPosOffset;
152757 if( pAdv==0 || pIter->iPos<pAdv->iPos ){
152760 if( nThisLcs==0 || pIter->iPos==pIter[-1].iPos ){
153096 int iPos; /* Position just read from pList */
153116 int iPos = 0; /* First position in position-list */
153123 fts3GetDeltaPosition(&pList, &iPos);
153124 assert( iPos>=0 );
153131 pT->iPos = iPos;
153224 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
153225 iMinPos = pT->iPos-pT->iOff;
153238 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);
166421 #define FTS5_POS2COLUMN(iPos) (int)(iPos >> 32)
166422 #define FTS5_POS2OFFSET(iPos) (int)(iPos & 0xFFFFFFFF)
166435 i64 iPos; /* (iCol<<32) + iPos */
166546 int iPos, /* Position of token within column */
166669 int iPos, /* Position of token within column */
168177 int iPos; /* Current token offset in zIn[] */
168222 int iPos;
168225 iPos = p->iPos++;
168228 if( iPos<p->iRangeStart || iPos>p->iRangeEnd ) return SQLITE_OK;
168229 if( p->iRangeStart && iPos==p->iRangeStart ) p->iOff = iStartOff;
168232 if( iPos==p->iter.iStart ){
168238 if( iPos==p->iter.iEnd ){
168250 if( p->iRangeEnd>0 && iPos==p->iRangeEnd ){
168253 if( iPos<p->iter.iEnd ){
168828 if( sqlite3Fts5PoslistNext64(pIter->a, pIter->n, &pIter->i, &pIter->iPos) ){
168848 i64 iPos
168853 if( (iPos & colmask) != (pWriter->iPrev & colmask) ){
168855 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos>>32));
168856 pWriter->iPrev = (iPos & colmask);
168858 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos-pWriter->iPrev)+2);
168859 pWriter->iPrev = iPos;
170151 if( aIter[i].iPos==iPrev ){
170154 if( aIter[i].iPos<iMin ){
170155 iMin = aIter[i].iPos;
170234 i64 iPos = aIter[0].iPos;
170239 i64 iAdj = iPos + i;
170240 if( pPos->iPos!=iAdj ){
170242 while( pPos->iPos<iAdj ){
170245 if( pPos->iPos>iAdj ) iPos = pPos->iPos-i;
170251 rc = sqlite3Fts5PoslistWriterAppend(&pPhrase->poslist, &writer, iPos);
170273 i64 iPos; /* Current position */
170280 p->iPos = p->iLookahead;
170284 return (p->iPos==FTS5_LOOKAHEAD_EOF);
170300 return (p->iPos==FTS5_LOOKAHEAD_EOF);
170374 iMax = a[0].reader.iPos;
170380 if( pPos->iPos<iMin || pPos->iPos>iMax ){
170382 while( pPos->iPos<iMin ){
170385 if( pPos->iPos>iMax ) iMax = pPos->iPos;
170392 i64 iPos = a[i].reader.iPos;
170394 if( a[i].pOut->n==0 || iPos!=pWriter->iPrev ){
170395 sqlite3Fts5PoslistWriterAppend(a[i].pOut, pWriter, iPos);
172098 int iPos; /* Position of last value written */
172240 int iPos, /* Position of token within column */
172321 p->iPos = 0;
172332 p->iPos = 0;
172336 p->nData += sqlite3Fts5PutVarint(&pPtr[p->nData], iPos - p->iPos + 2);
172337 p->iPos = iPos;
176306 int iPos = 0;
176310 if( (nCopy - iPos)<=nSpace ){
176311 n = nCopy - iPos;
176313 n = fts5PoslistPrefix(&pPoslist[iPos], nSpace);
176316 fts5BufferSafeAppendBlob(pBuf, &pPoslist[iPos], n);
176317 iPos += n;
176321 if( iPos>=nCopy ) break;
177057 int iPos, /* Position of token within column */
177069 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
177076 p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX+i+1, pToken, nByte
177393 int iPos,
177401 ret += (ret<<3) + iPos;
177476 int iCol = FTS5_POS2COLUMN(sReader.iPos);
177477 int iOff = FTS5_POS2OFFSET(sReader.iPos);
177827 i64 iPos = 0; /* Position read from poslist */
177837 while( 0==sqlite3Fts5PoslistNext64(poslist.p, poslist.n, &iOff, &iPos) ){
177838 int iCol = FTS5_POS2COLUMN(iPos);
177839 int iTokOff = FTS5_POS2OFFSET(iPos);
177864 int iPos, /* Position term appears in */
177870 ret = fts5IndexEntryCksum(iRowid, iCol, iPos, 0, pTerm, nTerm);
177875 ret ^= fts5IndexEntryCksum(iRowid, iCol, iPos, iIdx+1, pTerm, nByte);
179892 && (iBest<0 || aIter[i].iPos<aIter[iBest].iPos)
179915 aInst[1] = FTS5_POS2COLUMN(aIter[iBest].iPos);
179916 aInst[2] = FTS5_POS2OFFSET(aIter[iBest].iPos);
184136 i64 iPos = 0; /* 64-bit position read from poslist */
184142 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
184148 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
184149 int ii = FTS5_POS2COLUMN(iPos);