Home | History | Annotate | Download | only in fts2

Lines Matching defs:snippet

366 /* TODO(shess) The snippet-generation code should be using the
1924 typedef struct Snippet {
1936 char *zSnippet; /* Snippet text */
1938 } Snippet;
2069 Snippet snippet; /* Cached snippet for the current row */
2872 ** and snippet delimiters specification.
3209 ** Snippet
3211 static void snippetClear(Snippet *p){
3221 Snippet *p, /* Append the entry to this snippet */
3256 Snippet *pSnippet,
3335 if( p->snippet.nMatch ) return;
3352 snippetOffsetsOfColumn(&p->q, &p->snippet, i, zDoc, nDoc);
3357 ** Convert the information in the aMatch[] array of the snippet
3360 static void snippetOffsetText(Snippet *p){
3427 ** Allowed values for Snippet.aMatch[].snStatus
3429 #define SNIPPET_IGNORE 0 /* It is ok to omit this match from the snippet */
3430 #define SNIPPET_DESIRED 1 /* We want to include this match in the snippet */
3433 ** Generate the text of a snippet.
3436 fulltext_cursor *pCursor, /* The cursor we need the snippet for */
3456 sqlite3_free(pCursor->snippet.zSnippet);
3457 pCursor->snippet.zSnippet = 0;
3458 aMatch = pCursor->snippet.aMatch;
3459 nMatch = pCursor->snippet.nMatch;
3541 pCursor->snippet.zSnippet = stringBufferData(&sb);
3542 pCursor->snippet.nSnippet = stringBufferLength(&sb);
3555 snippetClear(&c->snippet);
3567 snippetClear(&c->snippet);
6336 ** Implementation of the snippet() function for FTS2
6364 sqlite3_result_text(pContext, pCursor->snippet.zSnippet,
6365 pCursor->snippet.nSnippet, SQLITE_STATIC);
6385 snippetOffsetText(&pCursor->snippet);
6387 pCursor->snippet.zOffset, pCursor->snippet.nOffset,
7112 if( strcmp(zName,"snippet")==0 ){
7256 && SQLITE_OK==(rc = sqlite3_overload_function(db, "snippet", -1))