Lines Matching refs:nIn
11332 int nIn, const void *pIn, /* Input changeset */
11985 int nIn, const void *pIn,
74689 u32 nIn; /* Size of input buffer aIn[] */
74695 nIn = pSrc->info.nLocal;
74697 if( aIn+nIn>pSrc->pPage->aDataEnd ){
74701 if( nIn==nRem && nIn<pDest->pPage->maxLocal ){
74702 memcpy(aOut, aIn, nIn);
74703 pBt->nPreformatSize = nIn + (aOut - pBt->pTmpSpace);
74719 if( nRem>nIn ){
74720 if( aIn+nIn+4>pSrc->pPage->aDataEnd ){
74723 ovflIn = get4byte(&pSrc->info.pPayload[nIn]);
74730 if( nIn>0 ){
74731 int nCopy = MIN(nOut, nIn);
74734 nIn -= nCopy;
74746 nIn = pSrc->pBt->usableSize - 4;
121498 unsigned int nIn; /* Number of bytes in input */
121510 nIn = (unsigned)sqlite3_value_bytes(argv[0]);
121543 while( nIn>0 ){
121547 if( len<=nIn && memcmp(zIn, azChar[i], len)==0 ) break;
121551 nIn -= len;
121555 while( nIn>0 ){
121559 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break;
121562 nIn -= len;
121569 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT);
145914 int nIn; /* Number of entries in aInLoop[] */
147007 if( pLevel->u.in.nIn==0 ){
147014 i = pLevel->u.in.nIn;
147015 pLevel->u.in.nIn += nEq;
147018 sizeof(pLevel->u.in.aInLoop[0])*pLevel->u.in.nIn);
147057 pLevel->u.in.nIn = 0;
147869 iIn = pLevel->u.in.nIn;
147891 assert( iIn>=0 && iIn<pLevel->u.in.nIn );
153192 int nIn = 0;
153241 nIn = 46; assert( 46==sqlite3LogEst(25) );
153249 if( pNew->aLTerm[i] && pNew->aLTerm[i]->pExpr==pExpr ) nIn = 0;
153253 nIn = sqlite3LogEst(pExpr->x.pList->nExpr);
153278 logK = estLog(nIn);
153280 x = M + logK + 10 - (nIn + rLogSize);
153285 saved_nEq, M, logK, nIn, rLogSize, x));
153290 saved_nEq, M, logK, nIn, rLogSize, x, nInMul));
153296 saved_nEq, M, logK, nIn, rLogSize, x, nInMul));
153369 assert( (eOp & WO_IN) || nIn==0 );
153372 pNew->nOut -= nIn;
153417 pNew->nOut -= nIn;
153447 pNew->rRun += nInMul + nIn;
153448 pNew->nOut += nInMul + nIn;
153463 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
156127 if( (pLoop->wsFlags & WHERE_IN_ABLE)!=0 && pLevel->u.in.nIn>0 ){
156131 for(j=pLevel->u.in.nIn, pIn=&pLevel->u.in.aInLoop[j-1]; j>0; j--, pIn--){
179924 int nIn = n;
179933 rc = getNextNode(pParse, zIn, nIn, &p, &nByte);
180023 assert( rc!=SQLITE_OK || (nByte>0 && nByte<=nIn) );
180024 nIn -= nByte;
180048 *pnConsumed = n - nIn;
181279 static void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){
181282 for(i=0; i<nIn; i++){
181292 if( nIn>mx*2 ){
181293 for(j=mx, i=nIn-mx; i<nIn; i++, j++){
181326 static void porter_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){
181330 if( nIn<3 || nIn>=(int)sizeof(zReverse)-7 ){
181333 copy_stemmer(zIn, nIn, zOut, pnOut);
181336 for(i=0, j=sizeof(zReverse)-6; i<nIn; i++, j--){
181345 copy_stemmer(zIn, nIn, zOut, pnOut);
190570 int nIn /* Length of z in bytes */
190573 const unsigned char *zTerm = &z[nIn];
213429 int nIn = sessionSerialLen(pIn);
213435 memcpy(pOut, pIn, nIn);
213436 pOut += nIn;
213438 pIn += nIn;
214191 int nIn, const void *pIn,
214195 int rc = sqlite3changeset_start(&pIter, nIn, (void*)pIn);
215187 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
217320 int nIn; /* Size of input text in bytes */
217424 rc = pApi->xColumnText(pFts, iCol, &ctx.zIn, &ctx.nIn);
217432 rc = pApi->xTokenize(pFts, ctx.zIn, ctx.nIn, (void*)&ctx,fts5HighlightCb);
217434 fts5HighlightAppend(&rc, &ctx, &ctx.zIn[ctx.iOff], ctx.nIn - ctx.iOff);
217685 rc = pApi->xColumnText(pFts, iBestCol, &ctx.zIn, &ctx.nIn);
217709 rc = pApi->xTokenize(pFts, ctx.zIn, ctx.nIn, (void*)&ctx,fts5HighlightCb);
217712 fts5HighlightAppend(&rc, &ctx, &ctx.zIn[ctx.iOff], ctx.nIn - ctx.iOff);
218197 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
218200 if( nIn<0 ){
218201 nIn = (int)strlen(pIn);
218203 zRet = (char*)sqlite3_malloc(nIn+1);
218205 memcpy(zRet, pIn, nIn);
218206 zRet[nIn] = '\0';
218750 sqlite3_int64 nIn = strlen(zIn);
218751 char *zOut = sqlite3_malloc64(nIn+1);
218760 memcpy(zOut, zIn, (size_t)(nIn+1));
228413 static int fts5IndexCharlen(const char *pIn, int nIn){
228416 while( i<nIn ){
228418 while( i<nIn && (pIn[i] & 0xc0)==0x80 ) i++;