Lines Matching refs:zDoc
587 const char *zDoc, /* Document text to extract snippet from */
588 int nDoc, /* Size of buffer zDoc in bytes */
618 /* Open a cursor on zDoc/nDoc. Check if there are (nSnippet+nDesired)
619 ** or more tokens in zDoc/nDoc.
621 rc = pMod->xOpen(pTab->pTokenizer, zDoc, nDoc, &pC);
661 const char *zDoc; /* Document text to extract snippet from */
662 int nDoc; /* Size of zDoc in bytes */
670 sqlite3_tokenizer_cursor *pC; /* Tokenizer cursor open on zDoc/nDoc */
674 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol);
675 if( zDoc==0 ){
685 rc = pMod->xOpen(pTab->pTokenizer, zDoc, nDoc, &pC);
692 int iBegin; /* Offset in zDoc of start of token */
693 int iFin; /* Offset in zDoc of end of token */
703 rc = fts3StringAppend(pOut, &zDoc[iEnd], -1);
711 rc = fts3SnippetShift(pTab, nSnippet, &zDoc[iBegin], n, &iPos, &hlmask);
734 if( iCurrent>iPos ) rc = fts3StringAppend(pOut, &zDoc[iEnd], iBegin-iEnd);
736 if( rc==SQLITE_OK ) rc = fts3StringAppend(pOut, &zDoc[iBegin], iFin-iBegin);
1490 const char *zDoc;
1507 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol+1);
1509 if( zDoc==0 ){
1518 rc = pMod->xOpen(pTab->pTokenizer, zDoc, nDoc, &pC);