Lines Matching refs:nIn
11803 int nIn, const void *pIn, /* Input changeset */
12444 ** Argument pIn must point to a buffer containing a changeset nIn bytes
12456 int nIn, const void *pIn,
77947 u32 nIn; /* Size of input buffer aIn[] */
77957 nIn = pSrc->info.nLocal;
77959 if( aIn+nIn>pSrc->pPage->aDataEnd ){
77963 if( nIn==nRem && nIn<pDest->pPage->maxLocal ){
77964 memcpy(aOut, aIn, nIn);
77965 pBt->nPreformatSize = nIn + (aOut - pBt->pTmpSpace);
77981 if( nRem>nIn ){
77982 if( aIn+nIn+4>pSrc->pPage->aDataEnd ){
77985 ovflIn = get4byte(&pSrc->info.pPayload[nIn]);
77992 if( nIn>0 ){
77993 int nCopy = MIN(nOut, nIn);
77996 nIn -= nCopy;
78008 nIn = pSrc->pBt->usableSize - 4;
126068 unsigned int nIn; /* Number of bytes in input */
126080 nIn = (unsigned)sqlite3_value_bytes(argv[0]);
126113 while( nIn>0 ){
126117 if( len<=nIn && memcmp(zIn, azChar[i], len)==0 ) break;
126121 nIn -= len;
126125 while( nIn>0 ){
126129 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break;
126132 nIn -= len;
126139 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT);
151402 int nIn; /* Number of entries in aInLoop[] */
152568 if( pLevel->u.in.nIn==0 ){
152575 i = pLevel->u.in.nIn;
152576 pLevel->u.in.nIn += nEq;
152580 sizeof(pLevel->u.in.aInLoop[0])*pLevel->u.in.nIn);
152619 pLevel->u.in.nIn = 0;
153409 for(iIn=0; ALWAYS(iIn<pLevel->u.in.nIn); iIn++){
159397 int nIn = 0;
159446 nIn = 46; assert( 46==sqlite3LogEst(25) );
159450 ** However, the nIn multiplier should only be applied once, not once
159452 ** first such term in use, and sets nIn back to 0 if it is not. */
159454 if( pNew->aLTerm[i] && pNew->aLTerm[i]->pExpr==pExpr ) nIn = 0;
159458 nIn = sqlite3LogEst(pExpr->x.pList->nExpr);
159483 logK = estLog(nIn);
159485 x = M + logK + 10 - (nIn + rLogSize);
159488 ("IN operator (N=%d M=%d logK=%d nIn=%d rLogSize=%d x=%d) "
159490 saved_nEq, M, logK, nIn, rLogSize, x));
159493 ("IN operator (N=%d M=%d logK=%d nIn=%d rLogSize=%d x=%d"
159495 saved_nEq, M, logK, nIn, rLogSize, x, nInMul));
159499 ("IN operator (N=%d M=%d logK=%d nIn=%d rLogSize=%d x=%d"
159501 saved_nEq, M, logK, nIn, rLogSize, x, nInMul));
159561 ** values of nIn and nInMul. In other words, assuming that all
159563 ** the value of pNew->nOut to account for pTerm (but not nIn/nInMul). */
159575 assert( (eOp & WO_IN) || nIn==0 );
159578 pNew->nOut -= nIn;
159623 pNew->nOut -= nIn;
159653 pNew->rRun += nInMul + nIn;
159654 pNew->nOut += nInMul + nIn;
159669 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
162878 if( (pLoop->wsFlags & WHERE_IN_ABLE)!=0 && pLevel->u.in.nIn>0 ){
162882 for(j=pLevel->u.in.nIn, pIn=&pLevel->u.in.aInLoop[j-1]; j>0; j--, pIn--){
186940 int nIn = n;
186949 rc = getNextNode(pParse, zIn, nIn, &p, &nByte);
187039 assert( rc!=SQLITE_OK || (nByte>0 && nByte<=nIn) );
187040 nIn -= nByte;
187064 *pnConsumed = n - nIn;
188295 static void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){
188298 for(i=0; i<nIn; i++){
188308 if( nIn>mx*2 ){
188309 for(j=mx, i=nIn-mx; i<nIn; i++, j++){
188320 ** Stem the input word zIn[0..nIn-1]. Store the output in zOut.
188321 ** zOut is at least big enough to hold nIn bytes. Write the actual
188342 static void porter_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){
188346 if( nIn<3 || nIn>=(int)sizeof(zReverse)-7 ){
188349 copy_stemmer(zIn, nIn, zOut, pnOut);
188352 for(i=0, j=sizeof(zReverse)-6; i<nIn; i++, j--){
188361 copy_stemmer(zIn, nIn, zOut, pnOut);
197574 ** all characters in string zIn/nIn to be separators (if bAlnum==0) or
197577 ** For each codepoint in the zIn/nIn string, this function checks if the
197585 ** identifies as a diacritic) occurs in the zIn/nIn string it is ignored.
197593 int nIn /* Length of z in bytes */
197596 const unsigned char *zTerm = &z[nIn];
220511 int nIn = sessionSerialLen(pIn);
220517 memcpy(pOut, pIn, nIn);
220518 pOut += nIn;
220520 pIn += nIn;
221273 int nIn, const void *pIn,
221277 int rc = sqlite3changeset_start(&pIter, nIn, (void*)pIn);
222269 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
224402 int nIn; /* Size of input text in bytes */
224506 rc = pApi->xColumnText(pFts, iCol, &ctx.zIn, &ctx.nIn);
224514 rc = pApi->xTokenize(pFts, ctx.zIn, ctx.nIn, (void*)&ctx,fts5HighlightCb);
224516 fts5HighlightAppend(&rc, &ctx, &ctx.zIn[ctx.iOff], ctx.nIn - ctx.iOff);
224767 rc = pApi->xColumnText(pFts, iBestCol, &ctx.zIn, &ctx.nIn);
224791 rc = pApi->xTokenize(pFts, ctx.zIn, ctx.nIn, (void*)&ctx,fts5HighlightCb);
224794 fts5HighlightAppend(&rc, &ctx, &ctx.zIn[ctx.iOff], ctx.nIn - ctx.iOff);
225272 ** Return a nul-terminated copy of the string indicated by pIn. If nIn
225279 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
225282 if( nIn<0 ){
225283 nIn = (int)strlen(pIn);
225285 zRet = (char*)sqlite3_malloc(nIn+1);
225287 memcpy(zRet, pIn, nIn);
225288 zRet[nIn] = '\0';
225832 sqlite3_int64 nIn = strlen(zIn);
225833 char *zOut = sqlite3_malloc64(nIn+1);
225842 memcpy(zOut, zIn, (size_t)(nIn+1));
235497 ** pIn is a UTF-8 encoded string, nIn bytes in size. Return the number of
235500 static int fts5IndexCharlen(const char *pIn, int nIn){
235503 while( i<nIn ){
235505 while( i<nIn && (pIn[i] & 0xc0)==0x80 ) i++;