Lines Matching refs:pCursor
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;
2440 for(i=0; i<pCursor->q.nTerms; i++){
2457 zDoc = (const char*)sqlite3_column_text(pCursor->pStmt, iCol+1);
2458 nDoc = sqlite3_column_bytes(pCursor->pStmt, iCol+1);
2515 pCursor->snippet.zSnippet = sb.s;
2516 pCursor->snippet.nSnippet = sb.len;
2524 static int fulltextClose(sqlite3_vtab_cursor *pCursor){
2525 fulltext_cursor *c = (fulltext_cursor *) pCursor;
2537 static int fulltextNext(sqlite3_vtab_cursor *pCursor){
2538 fulltext_cursor *c = (fulltext_cursor *) pCursor;
2542 TRACE(("FTS1 Next %p\n", pCursor));
2678 sqlite3_tokenizer_cursor *pCursor;
2683 int rc = pModule->xOpen(pTokenizer, pSegment, nSegment, &pCursor);
2685 pCursor->pTokenizer = pTokenizer;
2691 rc = pModule->xNext(pCursor,
2720 return pModule->xClose(pCursor);
2878 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
2882 fulltext_cursor *c = (fulltext_cursor *) pCursor;
2887 TRACE(("FTS1 Filter %p\n",pCursor));
2921 return fulltextNext(pCursor);
2928 static int fulltextEof(sqlite3_vtab_cursor *pCursor){
2929 fulltext_cursor *c = (fulltext_cursor *) pCursor;
2939 static int fulltextColumn(sqlite3_vtab_cursor *pCursor,
2941 fulltext_cursor *c = (fulltext_cursor *) pCursor;
2960 static int fulltextRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
2961 fulltext_cursor *c = (fulltext_cursor *) pCursor;
2973 sqlite3_tokenizer_cursor *pCursor;
2979 rc = pTokenizer->pModule->xOpen(pTokenizer, zText, -1, &pCursor);
2982 pCursor->pTokenizer = pTokenizer;
2983 while( SQLITE_OK==pTokenizer->pModule->xNext(pCursor,
2991 pTokenizer->pModule->xClose(pCursor);
3011 pTokenizer->pModule->xClose(pCursor);
3216 fulltext_cursor *pCursor;
3219 pCursor) ){
3225 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
3235 snippetAllOffsets(pCursor);
3236 snippetText(pCursor, zStart, zEnd, zEllipsis);
3237 sqlite3_result_text(pContext, pCursor->snippet.zSnippet,
3238 pCursor->snippet.nSnippet, SQLITE_STATIC);
3250 fulltext_cursor *pCursor;
3253 sqlite3_value_bytes(argv[0])!=sizeof(pCursor) ){
3256 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
3257 snippetAllOffsets(pCursor);
3258 snippetOffsetText(&pCursor->snippet);
3260 pCursor->snippet.zOffset, pCursor->snippet.nOffset,