• Home
  • Raw
  • Download

Lines Matching refs:aIter

165660   LcsIterator *aIter = (LcsIterator *)pCtx;
165661 aIter[iPhrase].pExpr = pExpr;
165699 LcsIterator *aIter;
165707 aIter = sqlite3_malloc(sizeof(LcsIterator) * pCsr->nPhrase);
165708 if( !aIter ) return SQLITE_NOMEM;
165709 memset(aIter, 0, sizeof(LcsIterator) * pCsr->nPhrase);
165710 (void)fts3ExprIterate(pCsr->pExpr, fts3MatchinfoLcsCb, (void*)aIter);
165713 LcsIterator *pIter = &aIter[i];
165724 LcsIterator *pIt = &aIter[i];
165729 fts3LcsIteratorAdvance(&aIter[i]);
165739 LcsIterator *pIter = &aIter[i];
165761 sqlite3_free(aIter);
191229 Fts5PoslistReader *aIter = aStatic;
191247 memcpy(aNew, aIter, sizeof(Fts5PoslistReader) * nIter);
191249 if( aIter!=aStatic ) sqlite3_free(aIter);
191250 aIter = aNew;
191252 sqlite3Fts5PoslistReaderInit(pIter->pData, pIter->nData, &aIter[nIter]);
191253 assert( aIter[nIter].bEof==0 );
191259 *pa = (u8*)aIter[0].a;
191260 *pn = aIter[0].n;
191269 if( aIter[i].bEof==0 ){
191270 if( aIter[i].iPos==iPrev ){
191271 if( sqlite3Fts5PoslistReaderNext(&aIter[i]) ) continue;
191273 if( aIter[i].iPos<iMin ){
191274 iMin = aIter[i].iPos;
191289 if( aIter!=aStatic ) sqlite3_free(aIter);
191312 Fts5PoslistReader *aIter = aStatic;
191323 aIter = (Fts5PoslistReader*)sqlite3_malloc(nByte);
191324 if( !aIter ) return SQLITE_NOMEM;
191326 memset(aIter, 0, sizeof(Fts5PoslistReader) * pPhrase->nTerm);
191346 sqlite3Fts5PoslistReaderInit(a, n, &aIter[i]);
191347 aIter[i].bFlag = (u8)bFlag;
191348 if( aIter[i].bEof ) goto ismatch_out;
191353 i64 iPos = aIter[0].iPos;
191357 Fts5PoslistReader *pPos = &aIter[i];
191376 if( sqlite3Fts5PoslistReaderNext(&aIter[i]) ) goto ismatch_out;
191383 if( aIter[i].bFlag ) sqlite3_free((u8*)aIter[i].a);
191385 if( aIter!=aStatic ) sqlite3_free(aIter);
202529 Fts5PoslistReader *aIter; /* One iterator for each phrase */
202537 aIter = pCsr->aInstIter;
202539 if( aIter ){
202549 sqlite3Fts5PoslistReaderInit(a, n, &aIter[i]);
202558 if( (aIter[i].bEof==0)
202559 && (iBest<0 || aIter[i].iPos<aIter[iBest].iPos)
202582 aInst[1] = FTS5_POS2COLUMN(aIter[iBest].iPos);
202583 aInst[2] = FTS5_POS2OFFSET(aIter[iBest].iPos);
202584 sqlite3Fts5PoslistReaderNext(&aIter[iBest]);