Lines Matching refs:pIter
47025 WalIterator *pIter = 0; /* Wal iterator context */
47041 rc = walIteratorInit(pWal, &pIter);
47045 assert( pIter );
47096 while( rc==SQLITE_OK && 0==walIteratorNext(pIter, &iDbpage, &iFrame) ){
47154 walIteratorFree(pIter);
49616 BtLock *pIter;
49643 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
49644 /* The condition (pIter->eLock!=eLock) in the following if(...)
49647 ** (eLock==WRITE_LOCK || pIter->eLock==WRITE_LOCK)
49653 assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK );
49654 assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK);
49655 if( pIter->pBtree!=p && pIter->iTable==iTab && pIter->eLock!=eLock ){
49656 sqlite3ConnectionBlocked(p->db, pIter->pBtree->db);
49689 BtLock *pIter;
49707 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
49708 if( pIter->iTable==iTable && pIter->pBtree==p ){
49709 pLock = pIter;
50368 u8 *pIter = &pCell[pPage->childPtrSize];
50383 pIter += getVarint32(pIter, nSize);
50388 /* pIter now points at the 64-bit integer key value, a variable length
50389 ** integer. The following block moves pIter to point at the first byte
50391 pEnd = &pIter[9];
50392 while( (*pIter++)&0x80 && pIter<pEnd );
50394 pIter += getVarint32(pIter, nSize);
50409 nSize += (u32)(pIter - pCell);
51969 BtLock *pIter;
51970 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
51971 if( pIter->pBtree!=p ){
51972 pBlock = pIter->pBtree->db;
71816 static void vdbeSorterIterZero(sqlite3 *db, VdbeSorterIter *pIter){
71817 sqlite3DbFree(db, pIter->aAlloc);
71818 memset(pIter, 0, sizeof(VdbeSorterIter));
71822 ** Advance iterator pIter to the next key in its PMA. Return SQLITE_OK if
71827 VdbeSorterIter *pIter /* Iterator to advance */
71834 assert( pIter->iEof>=pIter->iReadOff );
71835 if( pIter->iEof-pIter->iReadOff>5 ){
71838 nRead = (int)(pIter->iEof - pIter->iReadOff);
71842 vdbeSorterIterZero(db, pIter);
71846 rc = sqlite3OsRead(pIter->pFile, pIter->aAlloc, nRead, pIter->iReadOff);
71848 iOff = getVarint32(pIter->aAlloc, nRec);
71851 if( (iOff+nRec)>pIter->nAlloc ){
71852 int nNew = pIter->nAlloc*2;
71854 pIter->aAlloc = sqlite3DbReallocOrFree(db, pIter->aAlloc, nNew);
71855 if( !pIter->aAlloc ) return SQLITE_NOMEM;
71856 pIter->nAlloc = nNew;
71861 pIter->pFile, &pIter->aAlloc[nRead], nRead2, pIter->iReadOff+nRead
71867 pIter->iReadOff += iOff+nRec;
71868 pIter->nKey = nRec;
71869 pIter->aKey = &pIter->aAlloc[iOff];
71926 ** Initialize iterator pIter to scan through the PMA stored in file pFile
71935 VdbeSorterIter *pIter, /* Iterator to populate */
71941 assert( pIter->aAlloc==0 );
71942 pIter->pFile = pSorter->pTemp1;
71943 pIter->iReadOff = iStart;
71944 pIter->nAlloc = 128;
71945 pIter->aAlloc = (u8 *)sqlite3DbMallocRaw(db, pIter->nAlloc);
71946 if( !pIter->aAlloc ){
71950 rc = vdbeSorterReadVarint(pSorter->pTemp1, &pIter->iReadOff, &nByte);
71952 pIter->iEof = pIter->iReadOff + nByte;
71955 rc = vdbeSorterIterNext(db, pIter);
72338 VdbeSorterIter *pIter = &pSorter->aIter[i];
72339 rc = vdbeSorterIterInit(db, pSorter, pSorter->iReadOff, pIter, &nByte);
72340 pSorter->iReadOff = pIter->iEof;
72431 VdbeSorterIter *pIter = &pSorter->aIter[ pSorter->aTree[1] ];
72432 assert( pIter->pFile );
72433 nToWrite = pIter->nKey + sqlite3VarintLen(pIter->nKey);
72434 rc = sqlite3OsWrite(pTemp2, pIter->aAlloc, nToWrite, iWrite2);
72501 VdbeSorterIter *pIter;
72502 pIter = &pSorter->aIter[ pSorter->aTree[1] ];
72503 *pnKey = pIter->nKey;
72504 pKey = pIter->aKey;
120655 char *pIter; /* Used to iterate through aAll */
120658 pIter = pDL->pNextDocid;
120660 pIter = pDL->aAll;
120663 if( pIter>=pEnd ){
120668 pIter += sqlite3Fts3GetVarint(pIter, &iDelta);
120674 pDL->pList = pIter;
120675 fts3PoslistCopy(0, &pIter);
120676 pDL->nList = (int)(pIter - pDL->pList);
120678 /* pIter now points just past the 0x00 that terminates the position-
120680 ** edited in place by fts3EvalNearTrim(), then pIter may not actually
120682 ** with this case by advancing pIter past the zero-padding added by
120684 while( pIter<pEnd && *pIter==0 ) pIter++;
120686 pDL->pNextDocid = pIter;
120687 assert( pIter>=&pDL->aAll[pDL->nAll] || *pIter );
121784 char *pIter = pPhrase->doclist.pList;
121788 if( !pIter
121797 if( *pIter==0x01 ){
121798 pIter++;
121799 pIter += sqlite3Fts3GetVarint32(pIter, &iThis);
121804 fts3ColumnlistCopy(0, &pIter);
121805 if( *pIter==0x00 ) return 0;
121806 pIter++;
121807 pIter += sqlite3Fts3GetVarint32(pIter, &iThis);
121810 return ((iCol==iThis)?pIter:0);
123061 Fts3Expr *pIter = pNotBranch;
123062 while( pIter->pLeft ){
123063 pIter = pIter->pLeft;
123065 pIter->pLeft = pRet;
127100 SegmentNode *pIter;
127103 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
127104 int nStart = fts3TreeFinishNode(pIter, iHeight, iNextLeaf);
127105 int nWrite = pIter->nData - nStart;
127107 rc = fts3WriteSegment(p, iNextFree, &pIter->aData[nStart], nWrite);
127109 iNextLeaf += (pIter->nEntry+1);
128897 char *pIter = *ppIter;
128898 if( pIter ){
128902 if( 0==(*pIter & 0xFE) ){
128904 pIter = 0;
128907 fts3GetDeltaPosition(&pIter, &iIter);
128911 *ppIter = pIter;
128918 static int fts3SnippetNextCandidate(SnippetIter *pIter){
128921 if( pIter->iCurrent<0 ){
128926 pIter->iCurrent = 0;
128931 for(i=0; i<pIter->nPhrase; i++){
128932 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128933 fts3SnippetAdvance(&pPhrase->pHead, &pPhrase->iHead, pIter->nSnippet);
128939 for(i=0; i<pIter->nPhrase; i++){
128940 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128949 pIter->iCurrent = iStart = iEnd - pIter->nSnippet + 1;
128950 for(i=0; i<pIter->nPhrase; i++){
128951 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128962 ** iterator pIter.
128965 SnippetIter *pIter, /* Snippet iterator */
128972 int iStart = pIter->iCurrent; /* First token of snippet */
128978 for(i=0; i<pIter->nPhrase; i++){
128979 SnippetPhrase *pPhrase = &pIter->aPhrase[i];
128984 while( iCsr<(iStart+pIter->nSnippet) ){
129553 static int fts3LcsIteratorAdvance(LcsIterator *pIter){
129554 char *pRead = pIter->pRead;
129563 pIter->iPos += (int)(iRead-2);
129566 pIter->pRead = pRead;
129596 LcsIterator *pIter = &aIter[i];
129597 nToken -= pIter->pExpr->pPhrase->nToken;
129598 pIter->iPosOffset = nToken;
129620 LcsIterator *pIter = &aIter[i];
129621 if( pIter->pRead==0 ){
129625 if( pAdv==0 || pIter->iPos<pAdv->iPos ){
129626 pAdv = pIter;
129628 if( nThisLcs==0 || pIter->iPos==pIter[-1].iPos ){
133987 UBreakIterator *pIter; /* ICU break-iterator object */
134097 pCsr->pIter = ubrk_open(UBRK_WORD, p->zLocale, pCsr->aChar, iOut, &status);
134104 ubrk_first(pCsr->pIter);
134114 ubrk_close(pCsr->pIter);
134140 iStart = ubrk_current(pCsr->pIter);
134141 iEnd = ubrk_next(pCsr->pIter);