Home
last modified time | relevance | path

Searched refs:pCursor (Results 1 – 25 of 38) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Drecover.c627 static void interiorCursorDestroy(RecoverInteriorCursor *pCursor){ in interiorCursorDestroy() argument
629 while( pCursor ){ in interiorCursorDestroy()
630 RecoverInteriorCursor *p = pCursor; in interiorCursorDestroy()
631 pCursor = pCursor->pParent; in interiorCursorDestroy()
644 static void interiorCursorSetPage(RecoverInteriorCursor *pCursor, in interiorCursorSetPage() argument
648 if( pCursor->pPage ){ in interiorCursorSetPage()
649 sqlite3PagerUnref(pCursor->pPage); in interiorCursorSetPage()
650 pCursor->pPage = NULL; in interiorCursorSetPage()
652 pCursor->pPage = pPage; in interiorCursorSetPage()
653 pCursor->iChild = 0; in interiorCursorSetPage()
[all …]
Dtest_stat.c248 static int statClose(sqlite3_vtab_cursor *pCursor){ in statClose() argument
249 StatCursor *pCsr = (StatCursor *)pCursor; in statClose()
365 static int statNext(sqlite3_vtab_cursor *pCursor){ in statNext() argument
368 StatCursor *pCsr = (StatCursor *)pCursor; in statNext()
369 StatTable *pTab = (StatTable *)pCursor->pVtab; in statNext()
428 if( pCsr->iPage==0 ) return statNext(pCursor); in statNext()
485 static int statEof(sqlite3_vtab_cursor *pCursor){ in statEof() argument
486 StatCursor *pCsr = (StatCursor *)pCursor; in statEof()
491 sqlite3_vtab_cursor *pCursor, in statFilter() argument
495 StatCursor *pCsr = (StatCursor *)pCursor; in statFilter()
[all …]
Dtest_osinst.c941 static int vlogClose(sqlite3_vtab_cursor *pCursor){ in vlogClose() argument
942 VfslogCsr *p = (VfslogCsr *)pCursor; in vlogClose()
956 static int vlogNext(sqlite3_vtab_cursor *pCursor){ in vlogNext() argument
957 VfslogCsr *pCsr = (VfslogCsr *)pCursor; in vlogNext()
958 VfslogVtab *p = (VfslogVtab *)pCursor->pVtab; in vlogNext()
1007 static int vlogEof(sqlite3_vtab_cursor *pCursor){ in vlogEof() argument
1008 VfslogCsr *pCsr = (VfslogCsr *)pCursor; in vlogEof()
1009 VfslogVtab *p = (VfslogVtab *)pCursor->pVtab; in vlogEof()
1014 sqlite3_vtab_cursor *pCursor, in vlogFilter() argument
1018 VfslogCsr *pCsr = (VfslogCsr *)pCursor; in vlogFilter()
[all …]
Dvdbe.c236 pCx->pCursor = (BtCursor*) in allocateCursor()
238 sqlite3BtreeCursorZero(pCx->pCursor); in allocateCursor()
2134 pCrsr = pC->pCursor; in sqlite3VdbeExec()
2534 pCrsr = p->apCsr[pOp->p1]->pCursor; in sqlite3VdbeExec()
3074 rc = sqlite3BtreeCursor(pX, p2, wrFlag, pKeyInfo, pCur->pCursor); in sqlite3VdbeExec()
3083 pCur->pCursor = 0; in sqlite3VdbeExec()
3153 (KeyInfo*)pOp->p4.z, pCx->pCursor); in sqlite3VdbeExec()
3159 rc = sqlite3BtreeCursor(pCx->pBt, MASTER_ROOT, 1, 0, pCx->pCursor); in sqlite3VdbeExec()
3280 if( pC->pCursor!=0 ){ in sqlite3VdbeExec()
3311 rc = sqlite3BtreeFirst(pC->pCursor, &res); in sqlite3VdbeExec()
[all …]
/external/chromium_org/third_party/sqlite/
Drecover.patch237 + * int cursorEOF(Cursor *pCursor);
242 + * int cursorNext(Cursor *pCursor);
245 + * void cursorDestroy(Cursor *pCursor);
691 +static void interiorCursorDestroy(RecoverInteriorCursor *pCursor){
693 + while( pCursor ){
694 + RecoverInteriorCursor *p = pCursor;
695 + pCursor = pCursor->pParent;
708 +static void interiorCursorSetPage(RecoverInteriorCursor *pCursor,
712 + if( pCursor->pPage ){
713 + sqlite3PagerUnref(pCursor->pPage);
[all …]
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_aux.c206 static int fts3auxCloseMethod(sqlite3_vtab_cursor *pCursor){ in fts3auxCloseMethod() argument
207 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab; in fts3auxCloseMethod()
208 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor; in fts3auxCloseMethod()
238 static int fts3auxNextMethod(sqlite3_vtab_cursor *pCursor){ in fts3auxNextMethod() argument
239 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor; in fts3auxNextMethod()
240 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab; in fts3auxNextMethod()
333 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */ in fts3auxFilterMethod() argument
339 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor; in fts3auxFilterMethod()
340 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab; in fts3auxFilterMethod()
385 if( rc==SQLITE_OK ) rc = fts3auxNextMethod(pCursor); in fts3auxFilterMethod()
[all …]
Dfts3_tokenizer1.c147 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){ in simpleClose() argument
148 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleClose()
159 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */ in simpleNext() argument
166 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleNext()
167 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer; in simpleNext()
Dfts3_expr.c143 sqlite3_tokenizer_cursor *pCursor; in getNextToken() local
147 rc = pModule->xOpen(pTokenizer, z, n, &pCursor); in getNextToken()
153 pCursor->pTokenizer = pTokenizer; in getNextToken()
154 rc = pModule->xNext(pCursor, &zToken, &nToken, &iStart, &iEnd, &iPosition); in getNextToken()
181 pModule->xClose(pCursor); in getNextToken()
223 sqlite3_tokenizer_cursor *pCursor = 0; in getNextString() local
227 rc = pModule->xOpen(pTokenizer, zInput, nInput, &pCursor); in getNextString()
230 pCursor->pTokenizer = pTokenizer; in getNextString()
234 rc = pModule->xNext(pCursor, &zToken, &nToken, &iBegin, &iEnd, &iPos); in getNextString()
260 pModule->xClose(pCursor); in getNextString()
[all …]
Dfts3_icu.c165 static int icuClose(sqlite3_tokenizer_cursor *pCursor){ in icuClose() argument
166 IcuCursor *pCsr = (IcuCursor *)pCursor; in icuClose()
177 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */ in icuNext() argument
184 IcuCursor *pCsr = (IcuCursor *)pCursor; in icuNext()
Dfts3_tokenizer.h103 int (*xClose)(sqlite3_tokenizer_cursor *pCursor);
130 sqlite3_tokenizer_cursor *pCursor, /* Tokenizer cursor */
Dfts3_porter.c123 static int porterClose(sqlite3_tokenizer_cursor *pCursor){ in porterClose() argument
124 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor; in porterClose()
580 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by porterOpen */ in porterNext() argument
587 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor; in porterNext()
Dfts3.c1126 static int fts3CloseMethod(sqlite3_vtab_cursor *pCursor){ in fts3CloseMethod() argument
1127 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor; in fts3CloseMethod()
2994 static int fts3NextMethod(sqlite3_vtab_cursor *pCursor){ in fts3NextMethod() argument
2997 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor; in fts3NextMethod()
3040 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */ in fts3FilterMethod() argument
3052 Fts3Table *p = (Fts3Table *)pCursor->pVtab; in fts3FilterMethod()
3053 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor; in fts3FilterMethod()
3067 memset(&pCursor[1], 0, sizeof(Fts3Cursor)-sizeof(sqlite3_vtab_cursor)); in fts3FilterMethod()
3117 return fts3NextMethod(pCursor); in fts3FilterMethod()
3124 static int fts3EofMethod(sqlite3_vtab_cursor *pCursor){ in fts3EofMethod() argument
[all …]
/external/chromium_org/third_party/sqlite/src/ext/fts1/
Dsimple_tokenizer.c110 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){ in simpleClose() argument
111 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleClose()
122 sqlite3_tokenizer_cursor *pCursor, in simpleNext() argument
126 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleNext()
127 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer; in simpleNext()
Dfts1_tokenizer1.c136 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){ in simpleClose() argument
137 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleClose()
148 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */ in simpleNext() argument
155 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleNext()
156 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer; in simpleNext()
Dfts1.c2410 fulltext_cursor *pCursor, /* The cursor we need the snippet for */ in snippetText() argument
2430 free(pCursor->snippet.zSnippet); in snippetText()
2431 pCursor->snippet.zSnippet = 0; in snippetText()
2432 aMatch = pCursor->snippet.aMatch; in snippetText()
2433 nMatch = pCursor->snippet.nMatch; in snippetText()
2440 for(i=0; i<pCursor->q.nTerms; i++){ in snippetText()
2457 zDoc = (const char*)sqlite3_column_text(pCursor->pStmt, iCol+1); in snippetText()
2458 nDoc = sqlite3_column_bytes(pCursor->pStmt, iCol+1); in snippetText()
2515 pCursor->snippet.zSnippet = sb.s; in snippetText()
2516 pCursor->snippet.nSnippet = sb.len; in snippetText()
[all …]
Dfulltext.c989 static int fulltextClose(sqlite3_vtab_cursor *pCursor){ in fulltextClose() argument
990 fulltext_cursor *c = (fulltext_cursor *) pCursor; in fulltextClose()
999 static int fulltextNext(sqlite3_vtab_cursor *pCursor){ in fulltextNext() argument
1000 fulltext_cursor *c = (fulltext_cursor *) pCursor; in fulltextNext()
1141 sqlite3_tokenizer_cursor *pCursor; in tokenize_segment() local
1144 int rc = pModule->xOpen(pTokenizer, zQuery, -1, &pCursor); in tokenize_segment()
1146 pCursor->pTokenizer = pTokenizer; in tokenize_segment()
1152 rc = pModule->xNext(pCursor, in tokenize_segment()
1161 return pModule->xClose(pCursor); in tokenize_segment()
1227 static int fulltextFilter(sqlite3_vtab_cursor *pCursor, in fulltextFilter() argument
[all …]
Dtokenizer.h62 int (*xClose)(sqlite3_tokenizer_cursor *pCursor);
63 int (*xNext)(sqlite3_tokenizer_cursor *pCursor,
Dfts1_tokenizer.h62 int (*xClose)(sqlite3_tokenizer_cursor *pCursor);
63 int (*xNext)(sqlite3_tokenizer_cursor *pCursor,
Dfts1_porter.c121 static int porterClose(sqlite3_tokenizer_cursor *pCursor){ in porterClose() argument
122 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor; in porterClose()
579 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by porterOpen */ in porterNext() argument
586 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor; in porterNext()
/external/chromium_org/third_party/sqlite/src/ext/fts2/
Dfts2_tokenizer1.c145 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){ in simpleClose() argument
146 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleClose()
157 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */ in simpleNext() argument
164 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor; in simpleNext()
165 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer; in simpleNext()
Dfts2_icu.c165 static int icuClose(sqlite3_tokenizer_cursor *pCursor){ in icuClose() argument
166 IcuCursor *pCsr = (IcuCursor *)pCursor; in icuClose()
177 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */ in icuNext() argument
184 IcuCursor *pCsr = (IcuCursor *)pCursor; in icuNext()
Dfts2_tokenizer.h103 int (*xClose)(sqlite3_tokenizer_cursor *pCursor);
127 sqlite3_tokenizer_cursor *pCursor, /* Tokenizer cursor */
Dfts2.c3436 fulltext_cursor *pCursor, /* The cursor we need the snippet for */ in snippetText() argument
3456 sqlite3_free(pCursor->snippet.zSnippet); in snippetText()
3457 pCursor->snippet.zSnippet = 0; in snippetText()
3458 aMatch = pCursor->snippet.aMatch; in snippetText()
3459 nMatch = pCursor->snippet.nMatch; in snippetText()
3466 for(i=0; i<pCursor->q.nTerms; i++){ in snippetText()
3483 zDoc = (const char*)sqlite3_column_text(pCursor->pStmt, iCol+1); in snippetText()
3484 nDoc = sqlite3_column_bytes(pCursor->pStmt, iCol+1); in snippetText()
3541 pCursor->snippet.zSnippet = stringBufferData(&sb); in snippetText()
3542 pCursor->snippet.nSnippet = stringBufferLength(&sb); in snippetText()
[all …]
Dfts2_porter.c120 static int porterClose(sqlite3_tokenizer_cursor *pCursor){ in porterClose() argument
121 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor; in porterClose()
577 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by porterOpen */ in porterNext() argument
584 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor; in porterNext()
/external/chromium_org/third_party/sqlite/src/ext/rtree/
Drtree.c892 static int testRtreeCell(Rtree *pRtree, RtreeCursor *pCursor, int *pbEof){ in testRtreeCell() argument
898 nodeGetCell(pRtree, pCursor->pNode, pCursor->iCell, &cell); in testRtreeCell()
899 for(ii=0; bRes==0 && ii<pCursor->nConstraint; ii++){ in testRtreeCell()
900 RtreeConstraint *p = &pCursor->aConstraint[ii]; in testRtreeCell()
946 static int testRtreeEntry(Rtree *pRtree, RtreeCursor *pCursor, int *pbEof){ in testRtreeEntry() argument
951 nodeGetCell(pRtree, pCursor->pNode, pCursor->iCell, &cell); in testRtreeEntry()
952 for(ii=0; ii<pCursor->nConstraint; ii++){ in testRtreeEntry()
953 RtreeConstraint *p = &pCursor->aConstraint[ii]; in testRtreeEntry()
993 RtreeCursor *pCursor, in descendToCell() argument
1003 RtreeNode *pSavedNode = pCursor->pNode; in descendToCell()
[all …]

12