Lines Matching refs:pCursor

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;
3466 for(i=0; i<pCursor->q.nTerms; i++){
3483 zDoc = (const char*)sqlite3_column_text(pCursor->pStmt, iCol+1);
3484 nDoc = sqlite3_column_bytes(pCursor->pStmt, iCol+1);
3541 pCursor->snippet.zSnippet = stringBufferData(&sb);
3542 pCursor->snippet.nSnippet = stringBufferLength(&sb);
3550 static int fulltextClose(sqlite3_vtab_cursor *pCursor){
3551 fulltext_cursor *c = (fulltext_cursor *) pCursor;
3562 static int fulltextNext(sqlite3_vtab_cursor *pCursor){
3563 fulltext_cursor *c = (fulltext_cursor *) pCursor;
3566 TRACE(("FTS2 Next %p\n", pCursor));
3726 sqlite3_tokenizer_cursor *pCursor;
3732 int rc = pModule->xOpen(pTokenizer, pSegment, nSegment, &pCursor);
3734 pCursor->pTokenizer = pTokenizer;
3740 rc = pModule->xNext(pCursor,
3786 return pModule->xClose(pCursor);
3989 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
3993 fulltext_cursor *c = (fulltext_cursor *) pCursor;
3997 TRACE(("FTS2 Filter %p\n",pCursor));
4060 return fulltextNext(pCursor);
4067 static int fulltextEof(sqlite3_vtab_cursor *pCursor){
4068 fulltext_cursor *c = (fulltext_cursor *) pCursor;
4078 static int fulltextColumn(sqlite3_vtab_cursor *pCursor,
4080 fulltext_cursor *c = (fulltext_cursor *) pCursor;
4099 static int fulltextRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
4100 fulltext_cursor *c = (fulltext_cursor *) pCursor;
4113 sqlite3_tokenizer_cursor *pCursor;
4119 rc = pTokenizer->pModule->xOpen(pTokenizer, zText, -1, &pCursor);
4122 pCursor->pTokenizer = pTokenizer;
4123 while( SQLITE_OK==(rc=pTokenizer->pModule->xNext(pCursor,
4162 pTokenizer->pModule->xClose(pCursor);
6343 fulltext_cursor *pCursor;
6346 sqlite3_value_bytes(argv[0])!=sizeof(pCursor) ){
6352 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
6362 snippetAllOffsets(pCursor);
6363 snippetText(pCursor, zStart, zEnd, zEllipsis);
6364 sqlite3_result_text(pContext, pCursor->snippet.zSnippet,
6365 pCursor->snippet.nSnippet, SQLITE_STATIC);
6377 fulltext_cursor *pCursor;
6380 sqlite3_value_bytes(argv[0])!=sizeof(pCursor) ){
6383 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
6384 snippetAllOffsets(pCursor);
6385 snippetOffsetText(&pCursor->snippet);
6387 pCursor->snippet.zOffset, pCursor->snippet.nOffset,
6593 fulltext_cursor *pCursor;
6597 sqlite3_value_bytes(argv[0])!=sizeof(pCursor) ){
6607 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
6608 v = cursor_vtab(pCursor);
6822 fulltext_cursor *pCursor;
6826 sqlite3_value_bytes(argv[0])!=sizeof(pCursor) ){
6834 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
6835 v = cursor_vtab(pCursor);
6996 fulltext_cursor *pCursor;
7000 sqlite3_value_bytes(argv[0])!=sizeof(pCursor) ){
7012 memcpy(&pCursor, sqlite3_value_blob(argv[0]), sizeof(pCursor));
7013 v = cursor_vtab(pCursor);