• Home
  • Raw
  • Download

Lines Matching refs:iPos

142649       int nByte = 0, iBegin = 0, iEnd = 0, iPos = 0;
142650 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
144959 int iPos = 0;
145001 while( SQLITE_OK==p->xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos) ){
145002 Tcl_ListObjAppendElement(0, pRet, Tcl_NewIntObj(iPos));
145501 int iPos; /* Current 'pos' value */
145722 pCsr->iPos = 0;
145748 &pCsr->iStart, &pCsr->iEnd, &pCsr->iPos
145830 sqlite3_result_int(pCtx, pCsr->iPos);
146574 sqlite3_int64 iPos, /* Position of term for entry to add */
146606 assert( iPos>p->iLastPos || (iPos==0 && p->iLastPos==0) );
146607 rc = fts3PendingListAppendVarint(&p, 2+iPos-p->iLastPos);
146609 p->iLastPos = iPos;
146635 int iPos,
146647 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
146680 int iPos = 0;
146709 && SQLITE_OK==(rc = xNext(pCsr, &zToken, &nToken, &iStart, &iEnd, &iPos))
146712 if( iPos>=nWord ) nWord = iPos+1;
146717 if( iPos<0 || !zToken || nToken<=0 ){
146724 p, iCol, iPos, &p->aIndex[0].hPending, zToken, nToken
146733 p, iCol, iPos, &pIndex->hPending, zToken, pIndex->nPrefix
150940 int iPos /* Position */
150948 ret += (ret<<3) + iPos;
150995 i64 iPos = 0;
151004 iPos = 0;
151012 iPos += (iVal - 2);
151015 (int)iCol, (int)iPos
151090 int iPos = 0; /* Position of token in zText */
151092 rc = pModule->xNext(pT, &zToken, &nToken, &iDum1, &iDum2, &iPos);
151096 zToken, nToken, iLang, 0, iDocid, iCol, iPos
151101 zToken, p->aIndex[i].nPrefix, iLang, i, iDocid, iCol, iPos
151264 int iPos = 0; /* Position of token in zText */
151266 rc = pModule->xNext(pTC, &zToken, &nToken, &iDum1, &iDum2, &iPos);
151270 && (pPT->bFirst==0 || iPos==0)
151274 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
151644 int iPos; /* Index of first token in snippet */
152132 int iPos;
152136 fts3SnippetDetails(&sIter, mCovered, &iPos, &iScore, &mCover,&mHighlite);
152139 pFragment->iPos = iPos;
152293 int iPos = pFragment->iPos; /* First token of snippet */
152344 if( iCurrent<iPos ){ continue; }
152349 pTab, pCsr->iLangid, nSnippet, &zDoc[iBegin], n, &iPos, &hlmask
152358 if( iPos>0 || iFragment>0 ){
152364 if( rc!=SQLITE_OK || iCurrent<iPos ) continue;
152367 if( iCurrent>=(iPos+nSnippet) ){
152375 isHighlight = (hlmask & ((u64)1 << (iCurrent-iPos)))!=0;
152377 if( iCurrent>iPos ) rc = fts3StringAppend(pOut, &zDoc[iEnd], iBegin-iEnd);
152629 int iPos; /* Current position */
152663 pIter->iPos += (int)(iRead-2);
152711 pIt->iPos = pIt->iPosOffset;
152727 if( pAdv==0 || pIter->iPos<pAdv->iPos ){
152730 if( nThisLcs==0 || pIter->iPos==pIter[-1].iPos ){
153066 int iPos; /* Position just read from pList */
153086 int iPos = 0; /* First position in position-list */
153093 fts3GetDeltaPosition(&pList, &iPos);
153094 assert( iPos>=0 );
153101 pT->iPos = iPos;
153194 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
153195 iMinPos = pT->iPos-pT->iOff;
153208 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);
166391 #define FTS5_POS2COLUMN(iPos) (int)(iPos >> 32)
166392 #define FTS5_POS2OFFSET(iPos) (int)(iPos & 0xFFFFFFFF)
166405 i64 iPos; /* (iCol<<32) + iPos */
166516 int iPos, /* Position of token within column */
166639 int iPos, /* Position of token within column */
168147 int iPos; /* Current token offset in zIn[] */
168192 int iPos;
168195 iPos = p->iPos++;
168198 if( iPos<p->iRangeStart || iPos>p->iRangeEnd ) return SQLITE_OK;
168199 if( p->iRangeStart && iPos==p->iRangeStart ) p->iOff = iStartOff;
168202 if( iPos==p->iter.iStart ){
168208 if( iPos==p->iter.iEnd ){
168220 if( p->iRangeEnd>0 && iPos==p->iRangeEnd ){
168223 if( iPos<p->iter.iEnd ){
168798 if( sqlite3Fts5PoslistNext64(pIter->a, pIter->n, &pIter->i, &pIter->iPos) ){
168818 i64 iPos
168823 if( (iPos & colmask) != (pWriter->iPrev & colmask) ){
168825 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos>>32));
168826 pWriter->iPrev = (iPos & colmask);
168828 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], (iPos-pWriter->iPrev)+2);
168829 pWriter->iPrev = iPos;
170121 if( aIter[i].iPos==iPrev ){
170124 if( aIter[i].iPos<iMin ){
170125 iMin = aIter[i].iPos;
170204 i64 iPos = aIter[0].iPos;
170209 i64 iAdj = iPos + i;
170210 if( pPos->iPos!=iAdj ){
170212 while( pPos->iPos<iAdj ){
170215 if( pPos->iPos>iAdj ) iPos = pPos->iPos-i;
170221 rc = sqlite3Fts5PoslistWriterAppend(&pPhrase->poslist, &writer, iPos);
170243 i64 iPos; /* Current position */
170250 p->iPos = p->iLookahead;
170254 return (p->iPos==FTS5_LOOKAHEAD_EOF);
170270 return (p->iPos==FTS5_LOOKAHEAD_EOF);
170344 iMax = a[0].reader.iPos;
170350 if( pPos->iPos<iMin || pPos->iPos>iMax ){
170352 while( pPos->iPos<iMin ){
170355 if( pPos->iPos>iMax ) iMax = pPos->iPos;
170362 i64 iPos = a[i].reader.iPos;
170364 if( a[i].pOut->n==0 || iPos!=pWriter->iPrev ){
170365 sqlite3Fts5PoslistWriterAppend(a[i].pOut, pWriter, iPos);
172068 int iPos; /* Position of last value written */
172210 int iPos, /* Position of token within column */
172291 p->iPos = 0;
172302 p->iPos = 0;
172306 p->nData += sqlite3Fts5PutVarint(&pPtr[p->nData], iPos - p->iPos + 2);
172307 p->iPos = iPos;
176276 int iPos = 0;
176280 if( (nCopy - iPos)<=nSpace ){
176281 n = nCopy - iPos;
176283 n = fts5PoslistPrefix(&pPoslist[iPos], nSpace);
176286 fts5BufferSafeAppendBlob(pBuf, &pPoslist[iPos], n);
176287 iPos += n;
176291 if( iPos>=nCopy ) break;
177027 int iPos, /* Position of token within column */
177039 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
177046 p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX+i+1, pToken, nByte
177363 int iPos,
177371 ret += (ret<<3) + iPos;
177446 int iCol = FTS5_POS2COLUMN(sReader.iPos);
177447 int iOff = FTS5_POS2OFFSET(sReader.iPos);
177797 i64 iPos = 0; /* Position read from poslist */
177807 while( 0==sqlite3Fts5PoslistNext64(poslist.p, poslist.n, &iOff, &iPos) ){
177808 int iCol = FTS5_POS2COLUMN(iPos);
177809 int iTokOff = FTS5_POS2OFFSET(iPos);
177834 int iPos, /* Position term appears in */
177840 ret = fts5IndexEntryCksum(iRowid, iCol, iPos, 0, pTerm, nTerm);
177845 ret ^= fts5IndexEntryCksum(iRowid, iCol, iPos, iIdx+1, pTerm, nByte);
179862 && (iBest<0 || aIter[i].iPos<aIter[iBest].iPos)
179885 aInst[1] = FTS5_POS2COLUMN(aIter[iBest].iPos);
179886 aInst[2] = FTS5_POS2OFFSET(aIter[iBest].iPos);
184106 i64 iPos = 0; /* 64-bit position read from poslist */
184112 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
184118 while( 0==sqlite3Fts5PoslistNext64(pPos, nPos, &iOff, &iPos) ){
184119 int ii = FTS5_POS2COLUMN(iPos);