Home | History | Annotate | Download | only in orig

Lines Matching defs:nArg

4116 ** ^The third parameter (nArg)
4172 ** nArg parameter is a better match than a function implementation with
4173 ** a negative nArg. ^A function where the preferred text encoding
4190 int nArg,
4200 int nArg,
4210 int nArg,
5443 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5674 SQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);
7153 void (*xNotify)(void **apArg, int nArg), /* Callback function to invoke */
10640 i16 nArg; /* Number of arguments. -1 means unlimited */
10693 ** FUNCTION(zName, nArg, iArg, bNC, xFunc)
10695 ** implemented by C function xFunc that accepts nArg arguments. The
10700 ** VFUNCTION(zName, nArg, iArg, bNC, xFunc)
10703 ** AGGREGATE(zName, nArg, iArg, bNC, xStep, xFinal)
10709 ** LIKEFUNC(zName, nArg, pArg, flags)
10711 ** that accepts nArg arguments and is implemented by a call to C
10717 #define FUNCTION(zName, nArg, iArg, bNC, xFunc) \
10718 {nArg, SQLITE_FUNC_CONSTANT|SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL), \
10720 #define VFUNCTION(zName, nArg, iArg, bNC, xFunc) \
10721 {nArg, SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL), \
10723 #define FUNCTION2(zName, nArg, iArg, bNC, xFunc, extraFlags) \
10724 {nArg,SQLITE_FUNC_CONSTANT|SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL)|extraFlags,\
10726 #define STR_FUNCTION(zName, nArg, pArg, bNC, xFunc) \
10727 {nArg, SQLITE_FUNC_CONSTANT|SQLITE_UTF8|(bNC*SQLITE_FUNC_NEEDCOLL), \
10729 #define LIKEFUNC(zName, nArg, arg, flags) \
10730 {nArg, SQLITE_FUNC_CONSTANT|SQLITE_UTF8|flags, \
10732 #define AGGREGATE(zName, nArg, arg, nc, xStep, xFinal) \
10733 {nArg, SQLITE_UTF8|(nc*SQLITE_FUNC_NEEDCOLL), \
12443 int nArg; /* Total number of arguments */
12995 SQLITE_PRIVATE FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*);
20678 if( p->nArg<=p->nUsed ) return 0;
20682 if( p->nArg<=p->nUsed ) return 0.0;
20686 if( p->nArg<=p->nUsed ) return 0;
63271 sqlite3_snprintf(nTemp, zTemp, "%s(%d)", pDef->zName, pDef->nArg);
63846 int nArg; /* Number of arguments in subprograms */
63863 nArg = pParse->nMaxArg;
63884 resolveP2Values(p, &nArg);
63908 p->apArg = allocSpace(p->apArg, nArg*sizeof(Mem*), &zCsr, zEnd, &nByte);
74063 int nArg;
74087 nArg = (int)pArgc->u.i;
74094 for(i = 0; i<nArg; i++){
74099 rc = pModule->xFilter(pVtabCursor, iQuery, pOp->p4.z, nArg, apArg);
74281 int nArg;
74293 nArg = pOp->p2;
74299 for(i=0; i<nArg; i++){
74306 rc = pModule->xUpdate(pVtab, nArg, apArg, &rowid);
74310 assert( nArg>1 && apArg[0] && (apArg[0]->flags&MEM_Null) );
83883 2+IsStat34, /* nArg */
84184 2+IsStat34, /* nArg */
84331 1+IsStat34, /* nArg */
85616 sqlite3VdbeAddOp3(v, OP_Function, 0, regArgs+3-pFunc->nArg, regArgs+3);
85617 assert( pFunc->nArg==-1 || (pFunc->nArg&0xff)==pFunc->nArg );
85618 sqlite3VdbeChangeP5(v, (u8)(pFunc->nArg));
85641 1, /* nArg */
85662 3, /* nArg */
90577 ** matches the request for a function with nArg arguments in a system
90581 ** If nArg is -1 that means to only return a match (non-zero) if p->nArg
90585 ** If nArg is -2 that means that we are searching for any function
90599 ** If nArg==(-2) then any function with a non-null xStep or xFunc is
90606 int nArg, /* Desired number of arguments. (-1)==any */
90611 /* nArg of -2 is a special case */
90612 if( nArg==(-2) ) return (p->xFunc==0 && p->xStep==0) ? 0 : FUNC_PERFECT_MATCH;
90615 if( p->nArg!=nArg && p->nArg>=0 ) return 0;
90619 if( p->nArg==nArg ){
90689 ** If nArg is -2, then the first valid function found is returned. A
90690 ** function is valid if either xFunc or xStep is non-zero. The nArg==(-2)
90692 ** of arguments. If nArg is -2, then createFlag must be 0.
90702 int nArg, /* Number of arguments. -1 means any number */
90711 assert( nArg>=(-2) );
90712 assert( nArg>=(-1) || createFlag==0 );
90719 int score = matchQuality(p, nArg, enc);
90744 int score = matchQuality(p, nArg, enc);
90760 pBest->nArg = (u16)nArg;
91902 x.nArg = argc-1;
97135 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
105868 int nArg;
105874 nArg = pList->nExpr;
105875 regAgg = sqlite3GetTempRange(pParse, nArg);
105878 nArg = 0;
105883 assert( nArg==1 );
105891 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
105902 sqlite3VdbeChangeP5(v, (u8)nArg);
105903 sqlite3ExprCacheAffinityChange(pParse, regAgg, nArg);
105904 sqlite3ReleaseTempRange(pParse, regAgg, nArg);
109811 int nArg = pTab->nModuleArg;
109838 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
110294 int nArg, /* Number of arguments to the function */
110328 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
123519 int nArg,
123536 (nArg<-1 || nArg>SQLITE_MAX_FUNCTION_ARG) ||
123557 rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF8|extraFlags,
123560 rc = sqlite3CreateFunc(db, zFunctionName, nArg, SQLITE_UTF16LE|extraFlags,
123577 p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 0);
123578 if( p && (p->funcFlags & SQLITE_FUNC_ENCMASK)==enc && p->nArg==nArg ){
123589 p = sqlite3FindFunction(db, zFunctionName, nName, nArg, (u8)enc, 1);
123609 p->nArg = (u16)nArg;
123619 int nArg,
123626 return sqlite3_create_function_v2(db, zFunc, nArg, enc, p, xFunc, xStep,
123633 int nArg,
123653 rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p, xFunc, xStep, xFinal, pArg);
123670 int nArg,
123682 rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xFunc, xStep, xFinal,0);
123706 int nArg
123711 if( sqlite3FindFunction(db, zName, nName, nArg, SQLITE_UTF8, 0)==0 ){
123712 rc = sqlite3CreateFunc(db, zName, nArg, SQLITE_UTF8,
125851 int nArg = 0; /* Number of entries in aArg[] */
125872 if( p->xUnlockNotify!=xUnlockNotify && nArg!=0 ){
125873 xUnlockNotify(aArg, nArg);
125874 nArg = 0;
125879 assert( nArg<=(int)ArraySize(aStatic) || aArg==aDyn );
125880 if( (!aDyn && nArg==(int)ArraySize(aStatic))
125881 || (aDyn && nArg==(int)(sqlite3MallocSize(aDyn)/sizeof(void*)))
125884 void **pNew = (void **)sqlite3Malloc(nArg*sizeof(void *)*2);
125886 memcpy(pNew, aArg, nArg*sizeof(void *));
125914 xUnlockNotify(aArg, nArg);
125915 nArg = 0;
125920 aArg[nArg++] = p->pUnlockArg;
125937 if( nArg!=0 ){
125938 xUnlockNotify(aArg, nArg);
130103 int nArg, /* Size of argument array */
130107 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
130403 int nArg, /* Number of SQL function arguments */
130420 UNUSED_PARAMETER(nArg);
142198 int nArg, /* Size of argument array */
142216 nArg==1 /* DELETE operations */
142217 || nArg==(2 + p->nColumn + 3) /* INSERT or UPDATE operations */
142224 if( nArg>1
142232 if( nArg>1 && sqlite3_value_int(apVal[2 + p->nColumn + 2])<0 ){
142258 if( nArg>1 && p->zContentTbl==0 ){
142306 if( nArg>1 && rc==SQLITE_OK ){
143517 int nArg; /* Bytes in zArg */
143530 nArg = (int)strlen(zArg);
143531 pCsr->aMatchinfo = (u32 *)sqlite3_malloc(sizeof(u32)*nMatchinfo + nArg + 1);
143536 memcpy(pCsr->zMatchinfo, zArg, nArg+1);
144102 int nArg, /* Size of array argv[] */
144115 for(i=0; rc==SQLITE_OK && i<nArg; i++){
147904 static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
147910 UNUSED_PARAMETER(nArg);
147958 static void rtreedepth(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
147959 UNUSED_PARAMETER(nArg);
148026 static void geomCallback(sqlite3_context *ctx, int nArg, sqlite3_value **aArg){
148031 nBlob = sizeof(RtreeMatchArg) + (nArg-1)*sizeof(RtreeDValue);
148039 pBlob->nParam = nArg;
148040 for(i=0; i<nArg; i++){
148358 static void icuRegexpFunc(sqlite3_context *p, int nArg, sqlite3_value **apArg){
148364 (void)nArg; /* Unused parameter */
148441 static void icuCaseFunc16(sqlite3_context *p, int nArg, sqlite3_value **apArg){
148450 assert(nArg==1 || nArg==2);
148451 if( nArg==2 ){
148528 int nArg,
148538 assert(nArg==2);
148568 int nArg; /* Number of arguments */
148597 db, p->zName, p->nArg, p->enc, p->pContext, p->xFunc, 0, 0