• Home
  • Raw
  • Download

Lines Matching refs:aIter

165688   LcsIterator *aIter = (LcsIterator *)pCtx;
165689 aIter[iPhrase].pExpr = pExpr;
165727 LcsIterator *aIter;
165735 aIter = sqlite3_malloc(sizeof(LcsIterator) * pCsr->nPhrase);
165736 if( !aIter ) return SQLITE_NOMEM;
165737 memset(aIter, 0, sizeof(LcsIterator) * pCsr->nPhrase);
165738 (void)fts3ExprIterate(pCsr->pExpr, fts3MatchinfoLcsCb, (void*)aIter);
165741 LcsIterator *pIter = &aIter[i];
165752 LcsIterator *pIt = &aIter[i];
165757 fts3LcsIteratorAdvance(&aIter[i]);
165767 LcsIterator *pIter = &aIter[i];
165789 sqlite3_free(aIter);
191257 Fts5PoslistReader *aIter = aStatic;
191275 memcpy(aNew, aIter, sizeof(Fts5PoslistReader) * nIter);
191277 if( aIter!=aStatic ) sqlite3_free(aIter);
191278 aIter = aNew;
191280 sqlite3Fts5PoslistReaderInit(pIter->pData, pIter->nData, &aIter[nIter]);
191281 assert( aIter[nIter].bEof==0 );
191287 *pa = (u8*)aIter[0].a;
191288 *pn = aIter[0].n;
191297 if( aIter[i].bEof==0 ){
191298 if( aIter[i].iPos==iPrev ){
191299 if( sqlite3Fts5PoslistReaderNext(&aIter[i]) ) continue;
191301 if( aIter[i].iPos<iMin ){
191302 iMin = aIter[i].iPos;
191317 if( aIter!=aStatic ) sqlite3_free(aIter);
191340 Fts5PoslistReader *aIter = aStatic;
191351 aIter = (Fts5PoslistReader*)sqlite3_malloc(nByte);
191352 if( !aIter ) return SQLITE_NOMEM;
191354 memset(aIter, 0, sizeof(Fts5PoslistReader) * pPhrase->nTerm);
191374 sqlite3Fts5PoslistReaderInit(a, n, &aIter[i]);
191375 aIter[i].bFlag = (u8)bFlag;
191376 if( aIter[i].bEof ) goto ismatch_out;
191381 i64 iPos = aIter[0].iPos;
191385 Fts5PoslistReader *pPos = &aIter[i];
191404 if( sqlite3Fts5PoslistReaderNext(&aIter[i]) ) goto ismatch_out;
191411 if( aIter[i].bFlag ) sqlite3_free((u8*)aIter[i].a);
191413 if( aIter!=aStatic ) sqlite3_free(aIter);
202557 Fts5PoslistReader *aIter; /* One iterator for each phrase */
202565 aIter = pCsr->aInstIter;
202567 if( aIter ){
202577 sqlite3Fts5PoslistReaderInit(a, n, &aIter[i]);
202586 if( (aIter[i].bEof==0)
202587 && (iBest<0 || aIter[i].iPos<aIter[iBest].iPos)
202610 aInst[1] = FTS5_POS2COLUMN(aIter[iBest].iPos);
202611 aInst[2] = FTS5_POS2OFFSET(aIter[iBest].iPos);
202612 sqlite3Fts5PoslistReaderNext(&aIter[iBest]);