Lines Matching refs:nBuf
33185 ** absolute offset iOff, then attempt to write nBuf bytes of data from
33188 ** nBuf).
33194 int nBuf, /* Size of buffer pBuf in bytes */
33199 assert( nBuf==(nBuf&0x1ffff) );
33202 nBuf &= 0x1ffff;
33206 do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
33208 do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
33217 rc = osWrite(fd, pBuf, nBuf);
33731 static int unixGetTempname(int nBuf, char *zBuf);
35441 static int unixGetTempname(int nBuf, char *zBuf){
35457 assert( nBuf>2 );
35458 zBuf[nBuf-2] = 0;
35459 sqlite3_snprintf(nBuf, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX"%llx%c",
35461 if( zBuf[nBuf-2]!=0 || (iLimit++)>10 ) return SQLITE_ERROR;
36122 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
36128 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr);
36167 ** Write nBuf bytes of random data to the supplied buffer zBuf.
36169 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
36171 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int)));
36185 memset(zBuf, 0, nBuf);
36196 assert( sizeof(t)+sizeof(randomnessPid)<=(size_t)nBuf );
36197 nBuf = sizeof(t) + sizeof(randomnessPid);
36199 do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR );
36204 return nBuf;
39168 SQLITE_API void sqlite3_win32_write_debug(const char *zBuf, int nBuf){
39170 int nMin = MIN(nBuf, (SQLITE_WIN32_DBG_BUF_SIZE - 1)); /* may be negative. */
39786 static int winGetLastErrorMsg(DWORD lastErrno, int nBuf, char *zBuf){
39851 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%lx (%lu)", lastErrno, lastErrno);
39853 /* copy a maximum of nBuf chars to output buffer */
39854 sqlite3_snprintf(nBuf, zBuf, "%s", zOut);
42414 static int winMakeEndInDirSep(int nBuf, char *zBuf){
42420 }else if( nLen+1<nBuf ){
42441 int nMax, nBuf, nDir, nLen;
42453 nMax = pVfs->mxPathname; nBuf = nMax + 2;
42454 zBuf = sqlite3MallocZero( nBuf );
42639 if( (nLen + nPre + 17) > nBuf ){
42645 sqlite3_snprintf(nBuf-16-nLen, zBuf+nLen, SQLITE_TEMP_FILE_PREFIX);
43448 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
43450 winGetLastErrorMsg(osGetLastError(), nBuf, zBufOut);
43495 ** Write up to nBuf bytes of randomness into zBuf.
43497 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
43500 memset(zBuf, 0, nBuf);
43501 return nBuf;
43505 memset(zBuf, 0, nBuf);
43510 e.na = nBuf;
43549 return e.nXor>nBuf ? nBuf : e.nXor;
43640 ** a buffer of nBuf bytes. The OS layer should populate the
43656 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
43665 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
43668 if( nBuf>0 ) winGetLastErrorMsg(e, nBuf, zBuf);
47006 int nBuf, /* Size of buffer nBuf */
56577 int nBuf,
56578 u8 *zBuf /* Buffer of at least nBuf bytes */
56599 SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0
57934 int nBuf, /* Size of temporary buffer */
58001 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
74912 ** nBuf is the amount of space left in buf[]. The caller is responsible
78754 ** into buffer zBuf, length nBuf.
87640 int nBuf, /* Buffer size */
87644 p->aBuffer = (u8*)sqlite3Malloc(nBuf);
87648 p->iBufEnd = p->iBufStart = (iStart % nBuf);
87650 p->nBuffer = nBuf;
159361 int nBuf /* size of the BLOB */
159364 UNUSED_PARAMETER(nBuf);
159368 assert(j<=nBuf);
174970 int nBuf; /* Size of buffer aBuf */
176624 if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
176629 }while( nNew<(p->nBuf+nByte) );
176657 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
176658 p->nBuf += nByte;
176674 p->aBuf[p->nBuf++] = v;
176687 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
176705 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
176706 p->nBuf += nBlob;
176725 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
176726 p->nBuf += nStr;
176764 char *zOut = (char *)&p->aBuf[p->nBuf];
176772 p->nBuf = (int)((u8 *)zOut - p->aBuf);
176854 int nRewind = pBuf->nBuf; /* Set to zero if any values are modified */
176929 pBuf->nBuf = nRewind;
176931 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
177027 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, ppStmt, 0);
177172 int nRewind = buf.nBuf; /* Initial size of write buffer */
177190 nNoop = buf.nBuf;
177219 && buf.nBuf>nNoop
177220 && buf.nBuf>SESSIONS_STRM_CHUNK_SIZE
177222 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
177224 buf.nBuf = 0;
177231 if( buf.nBuf==nNoop ){
177232 buf.nBuf = nRewind;
177240 *pnChangeset = buf.nBuf;
177243 }else if( buf.nBuf>0 ){
177244 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
177413 int nMove = pIn->buf.nBuf - pIn->iNext;
177418 pIn->buf.nBuf -= pIn->iNext;
177420 pIn->nData = pIn->buf.nBuf;
177439 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
177443 pIn->buf.nBuf += nNew;
177448 pIn->nData = pIn->buf.nBuf;
177680 p->tblhdr.nBuf = 0;
178037 sPK.nBuf = 0;
178122 if( xOutput && sOut.nBuf>=SESSIONS_STRM_CHUNK_SIZE ){
178123 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
178124 sOut.nBuf = 0;
178131 *pnInverted = sOut.nBuf;
178134 }else if( sOut.nBuf>0 ){
178135 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
178264 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
178360 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
178422 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
178850 while( pApply->constraints.nBuf ){
178855 rc = sessionChangesetStart(&pIter2, 0, 0, cons.nBuf, cons.aBuf);
178874 assert( pApply->bDeferConstraints || pApply->constraints.nBuf==0 );
178878 if( pApply->constraints.nBuf>=cons.nBuf ){
179403 if( rc==SQLITE_OK && xOutput && buf.nBuf>=SESSIONS_STRM_CHUNK_SIZE ){
179404 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
179405 buf.nBuf = 0;
179411 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
179414 *pnOut = buf.nBuf;
195125 const int nBuf = 32;
195137 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
195172 assert( i<nBuf );
195188 for(i=0; i<nBuf; i++){
201054 int nBuf = *pnBuf;
201060 if( nBuf<p->nSuffix ) continue;
201061 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
201065 int nStem = nBuf - p->nSuffix;
201167 int nBuf = *pnBuf;
201168 switch( aBuf[nBuf-2] ){
201171 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
201172 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201173 *pnBuf = nBuf - 2;
201179 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
201180 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201181 *pnBuf = nBuf - 4;
201183 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
201184 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201185 *pnBuf = nBuf - 4;
201191 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
201192 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201193 *pnBuf = nBuf - 2;
201199 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
201200 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201201 *pnBuf = nBuf - 2;
201207 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
201208 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201209 *pnBuf = nBuf - 4;
201211 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
201212 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201213 *pnBuf = nBuf - 4;
201219 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
201220 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201221 *pnBuf = nBuf - 3;
201223 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
201224 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
201225 *pnBuf = nBuf - 5;
201227 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
201228 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201229 *pnBuf = nBuf - 4;
201231 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
201232 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201233 *pnBuf = nBuf - 3;
201239 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
201240 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
201241 *pnBuf = nBuf - 3;
201243 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
201244 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201245 *pnBuf = nBuf - 2;
201251 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
201252 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201253 *pnBuf = nBuf - 3;
201259 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
201260 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201261 *pnBuf = nBuf - 3;
201263 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
201264 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201265 *pnBuf = nBuf - 3;
201271 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
201272 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201273 *pnBuf = nBuf - 3;
201279 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
201280 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201281 *pnBuf = nBuf - 3;
201287 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
201288 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201289 *pnBuf = nBuf - 3;
201301 int nBuf = *pnBuf;
201302 switch( aBuf[nBuf-2] ){
201305 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
201306 memcpy(&aBuf[nBuf-2], "ate", 3);
201307 *pnBuf = nBuf - 2 + 3;
201313 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
201314 memcpy(&aBuf[nBuf-2], "ble", 3);
201315 *pnBuf = nBuf - 2 + 3;
201321 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
201322 memcpy(&aBuf[nBuf-2], "ize", 3);
201323 *pnBuf = nBuf - 2 + 3;
201335 int nBuf = *pnBuf;
201336 switch( aBuf[nBuf-2] ){
201339 if( nBuf>7 && 0==memcmp("ational", &aBuf[nBuf-7], 7) ){
201340 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201341 memcpy(&aBuf[nBuf-7], "ate", 3);
201342 *pnBuf = nBuf - 7 + 3;
201344 }else if( nBuf>6 && 0==memcmp("tional", &aBuf[nBuf-6], 6) ){
201345 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
201346 memcpy(&aBuf[nBuf-6], "tion", 4);
201347 *pnBuf = nBuf - 6 + 4;
201353 if( nBuf>4 && 0==memcmp("enci", &aBuf[nBuf-4], 4) ){
201354 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201355 memcpy(&aBuf[nBuf-4], "ence", 4);
201356 *pnBuf = nBuf - 4 + 4;
201358 }else if( nBuf>4 && 0==memcmp("anci", &aBuf[nBuf-4], 4) ){
201359 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201360 memcpy(&aBuf[nBuf-4], "ance", 4);
201361 *pnBuf = nBuf - 4 + 4;
201367 if( nBuf>4 && 0==memcmp("izer", &aBuf[nBuf-4], 4) ){
201368 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201369 memcpy(&aBuf[nBuf-4], "ize", 3);
201370 *pnBuf = nBuf - 4 + 3;
201376 if( nBuf>4 && 0==memcmp("logi", &aBuf[nBuf-4], 4) ){
201377 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201378 memcpy(&aBuf[nBuf-4], "log", 3);
201379 *pnBuf = nBuf - 4 + 3;
201385 if( nBuf>3 && 0==memcmp("bli", &aBuf[nBuf-3], 3) ){
201386 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201387 memcpy(&aBuf[nBuf-3], "ble", 3);
201388 *pnBuf = nBuf - 3 + 3;
201390 }else if( nBuf>4 && 0==memcmp("alli", &aBuf[nBuf-4], 4) ){
201391 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201392 memcpy(&aBuf[nBuf-4], "al", 2);
201393 *pnBuf = nBuf - 4 + 2;
201395 }else if( nBuf>5 && 0==memcmp("entli", &aBuf[nBuf-5], 5) ){
201396 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201397 memcpy(&aBuf[nBuf-5], "ent", 3);
201398 *pnBuf = nBuf - 5 + 3;
201400 }else if( nBuf>3 && 0==memcmp("eli", &aBuf[nBuf-3], 3) ){
201401 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201402 memcpy(&aBuf[nBuf-3], "e", 1);
201403 *pnBuf = nBuf - 3 + 1;
201405 }else if( nBuf>5 && 0==memcmp("ousli", &aBuf[nBuf-5], 5) ){
201406 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201407 memcpy(&aBuf[nBuf-5], "ous", 3);
201408 *pnBuf = nBuf - 5 + 3;
201414 if( nBuf>7 && 0==memcmp("ization", &aBuf[nBuf-7], 7) ){
201415 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201416 memcpy(&aBuf[nBuf-7], "ize", 3);
201417 *pnBuf = nBuf - 7 + 3;
201419 }else if( nBuf>5 && 0==memcmp("ation", &aBuf[nBuf-5], 5) ){
201420 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201421 memcpy(&aBuf[nBuf-5], "ate", 3);
201422 *pnBuf = nBuf - 5 + 3;
201424 }else if( nBuf>4 && 0==memcmp("ator", &aBuf[nBuf-4], 4) ){
201425 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201426 memcpy(&aBuf[nBuf-4], "ate", 3);
201427 *pnBuf = nBuf - 4 + 3;
201433 if( nBuf>5 && 0==memcmp("alism", &aBuf[nBuf-5], 5) ){
201434 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201435 memcpy(&aBuf[nBuf-5], "al", 2);
201436 *pnBuf = nBuf - 5 + 2;
201438 }else if( nBuf>7 && 0==memcmp("iveness", &aBuf[nBuf-7], 7) ){
201439 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201440 memcpy(&aBuf[nBuf-7], "ive", 3);
201441 *pnBuf = nBuf - 7 + 3;
201443 }else if( nBuf>7 && 0==memcmp("fulness", &aBuf[nBuf-7], 7) ){
201444 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201445 memcpy(&aBuf[nBuf-7], "ful", 3);
201446 *pnBuf = nBuf - 7 + 3;
201448 }else if( nBuf>7 && 0==memcmp("ousness", &aBuf[nBuf-7], 7) ){
201449 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201450 memcpy(&aBuf[nBuf-7], "ous", 3);
201451 *pnBuf = nBuf - 7 + 3;
201457 if( nBuf>5 && 0==memcmp("aliti", &aBuf[nBuf-5], 5) ){
201458 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201459 memcpy(&aBuf[nBuf-5], "al", 2);
201460 *pnBuf = nBuf - 5 + 2;
201462 }else if( nBuf>5 && 0==memcmp("iviti", &aBuf[nBuf-5], 5) ){
201463 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201464 memcpy(&aBuf[nBuf-5], "ive", 3);
201465 *pnBuf = nBuf - 5 + 3;
201467 }else if( nBuf>6 && 0==memcmp("biliti", &aBuf[nBuf-6], 6) ){
201468 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
201469 memcpy(&aBuf[nBuf-6], "ble", 3);
201470 *pnBuf = nBuf - 6 + 3;
201482 int nBuf = *pnBuf;
201483 switch( aBuf[nBuf-2] ){
201486 if( nBuf>4 && 0==memcmp("ical", &aBuf[nBuf-4], 4) ){
201487 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201488 memcpy(&aBuf[nBuf-4], "ic", 2);
201489 *pnBuf = nBuf - 4 + 2;
201495 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
201496 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201497 *pnBuf = nBuf - 4;
201503 if( nBuf>5 && 0==memcmp("icate", &aBuf[nBuf-5], 5) ){
201504 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201505 memcpy(&aBuf[nBuf-5], "ic", 2);
201506 *pnBuf = nBuf - 5 + 2;
201508 }else if( nBuf>5 && 0==memcmp("iciti", &aBuf[nBuf-5], 5) ){
201509 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201510 memcpy(&aBuf[nBuf-5], "ic", 2);
201511 *pnBuf = nBuf - 5 + 2;
201517 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
201518 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201519 *pnBuf = nBuf - 3;
201525 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
201526 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201527 *pnBuf = nBuf - 5;
201533 if( nBuf>5 && 0==memcmp("alize", &aBuf[nBuf-5], 5) ){
201534 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201535 memcpy(&aBuf[nBuf-5], "al", 2);
201536 *pnBuf = nBuf - 5 + 2;
201548 int nBuf = *pnBuf;
201549 switch( aBuf[nBuf-2] ){
201552 if( nBuf>3 && 0==memcmp("eed", &aBuf[nBuf-3], 3) ){
201553 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201554 memcpy(&aBuf[nBuf-3], "ee", 2);
201555 *pnBuf = nBuf - 3 + 2;
201557 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
201558 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
201559 *pnBuf = nBuf - 2;
201566 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
201567 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
201568 *pnBuf = nBuf - 3;
201584 int nBuf = *pnBuf;
201585 if( aBuf[nBuf-1]=='s' ){
201586 if( aBuf[nBuf-2]=='e' ){
201587 if( (nBuf>4 && aBuf[nBuf-4]=='s' && aBuf[nBuf-3]=='s')
201588 || (nBuf>3 && aBuf[nBuf-3]=='i' )
201590 *pnBuf = nBuf-2;
201592 *pnBuf = nBuf-1;
201595 else if( aBuf[nBuf-2]!='s' ){
201596 *pnBuf = nBuf-1;
201612 int nBuf;
201616 nBuf = nToken;
201617 memcpy(aBuf, pToken, nBuf);
201620 fts5PorterStep1A(aBuf, &nBuf);
201621 if( fts5PorterStep1B(aBuf, &nBuf) ){
201622 if( fts5PorterStep1B2(aBuf, &nBuf)==0 ){
201623 char c = aBuf[nBuf-1];
201625 && c!='l' && c!='s' && c!='z' && c==aBuf[nBuf-2]
201627 nBuf--;
201628 }else if( fts5Porter_MEq1(aBuf, nBuf) && fts5Porter_Ostar(aBuf, nBuf) ){
201629 aBuf[nBuf++] = 'e';
201635 if( aBuf[nBuf-1]=='y' && fts5Porter_Vowel(aBuf, nBuf-1) ){
201636 aBuf[nBuf-1] = 'i';
201640 fts5PorterStep2(aBuf, &nBuf);
201641 fts5PorterStep3(aBuf, &nBuf);
201642 fts5PorterStep4(aBuf, &nBuf);
201645 assert( nBuf>0 );
201646 if( aBuf[nBuf-1]=='e' ){
201647 if( fts5Porter_MGt1(aBuf, nBuf-1)
201648 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
201650 nBuf--;
201655 if( nBuf>1 && aBuf[nBuf-1]=='l'
201656 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
201658 nBuf--;
201661 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);