Lines Matching defs:snippet
202 /* TODO(shess) The snippet-generation code should be using the
1004 typedef struct Snippet {
1016 char *zSnippet; /* Snippet text */
1018 } Snippet;
1111 Snippet snippet; /* Cached snippet for the current row */
1827 ** and snippet delimiters specification.
2166 ** Snippet
2168 static void snippetClear(Snippet *p){
2178 Snippet *p, /* Append the entry to this snippet */
2213 Snippet *pSnippet,
2290 if( p->snippet.nMatch ) return;
2307 snippetOffsetsOfColumn(&p->q, &p->snippet, i, zDoc, nDoc);
2312 ** Convert the information in the aMatch[] array of the snippet
2315 static void snippetOffsetText(Snippet *p){
2401 ** Allowed values for Snippet.aMatch[].snStatus
2403 #define SNIPPET_IGNORE 0 /* It is ok to omit this match from the snippet */
2404 #define SNIPPET_DESIRED 1 /* We want to include this match in the snippet */
2407 ** Generate the text of a snippet.
2410 fulltext_cursor *pCursor, /* The cursor we need the snippet for */
2430 free(pCursor->snippet.zSnippet);
2431 pCursor->snippet.zSnippet = 0;
2432 aMatch = pCursor->snippet.aMatch;
2433 nMatch = pCursor->snippet.nMatch;
2515 pCursor->snippet.zSnippet = sb.s;
2516 pCursor->snippet.nSnippet = sb.len;
2529 snippetClear(&c->snippet);
2543 snippetClear(&c->snippet);
3209 ** Implementation of the snippet() function for FTS1
3237 sqlite3_result_text(pContext, pCursor->snippet.zSnippet,
3238 pCursor->snippet.nSnippet, SQLITE_STATIC);
3258 snippetOffsetText(&pCursor->snippet);
3260 pCursor->snippet.zOffset, pCursor->snippet.nOffset,
3276 if( strcmp(zName,"snippet")==0 ){
3332 sqlite3_overload_function(db, "snippet", -1);