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;
159349 int nBuf /* size of the BLOB */
159352 UNUSED_PARAMETER(nBuf);
159356 assert(j<=nBuf);
174958 int nBuf; /* Size of buffer aBuf */
176612 if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
176617 }while( nNew<(p->nBuf+nByte) );
176645 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
176646 p->nBuf += nByte;
176662 p->aBuf[p->nBuf++] = v;
176675 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
176693 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
176694 p->nBuf += nBlob;
176713 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
176714 p->nBuf += nStr;
176752 char *zOut = (char *)&p->aBuf[p->nBuf];
176760 p->nBuf = (int)((u8 *)zOut - p->aBuf);
176842 int nRewind = pBuf->nBuf; /* Set to zero if any values are modified */
176917 pBuf->nBuf = nRewind;
176919 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
177015 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, ppStmt, 0);
177160 int nRewind = buf.nBuf; /* Initial size of write buffer */
177178 nNoop = buf.nBuf;
177207 && buf.nBuf>nNoop
177208 && buf.nBuf>SESSIONS_STRM_CHUNK_SIZE
177210 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
177212 buf.nBuf = 0;
177219 if( buf.nBuf==nNoop ){
177220 buf.nBuf = nRewind;
177228 *pnChangeset = buf.nBuf;
177231 }else if( buf.nBuf>0 ){
177232 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
177401 int nMove = pIn->buf.nBuf - pIn->iNext;
177406 pIn->buf.nBuf -= pIn->iNext;
177408 pIn->nData = pIn->buf.nBuf;
177427 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
177431 pIn->buf.nBuf += nNew;
177436 pIn->nData = pIn->buf.nBuf;
177668 p->tblhdr.nBuf = 0;
178025 sPK.nBuf = 0;
178110 if( xOutput && sOut.nBuf>=SESSIONS_STRM_CHUNK_SIZE ){
178111 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
178112 sOut.nBuf = 0;
178119 *pnInverted = sOut.nBuf;
178122 }else if( sOut.nBuf>0 ){
178123 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
178252 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
178348 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
178410 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
178838 while( pApply->constraints.nBuf ){
178843 rc = sessionChangesetStart(&pIter2, 0, 0, cons.nBuf, cons.aBuf);
178862 assert( pApply->bDeferConstraints || pApply->constraints.nBuf==0 );
178866 if( pApply->constraints.nBuf>=cons.nBuf ){
179391 if( rc==SQLITE_OK && xOutput && buf.nBuf>=SESSIONS_STRM_CHUNK_SIZE ){
179392 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
179393 buf.nBuf = 0;
179399 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
179402 *pnOut = buf.nBuf;
195113 const int nBuf = 32;
195125 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
195160 assert( i<nBuf );
195176 for(i=0; i<nBuf; i++){
201042 int nBuf = *pnBuf;
201048 if( nBuf<p->nSuffix ) continue;
201049 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
201053 int nStem = nBuf - p->nSuffix;
201155 int nBuf = *pnBuf;
201156 switch( aBuf[nBuf-2] ){
201159 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
201160 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201161 *pnBuf = nBuf - 2;
201167 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
201168 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201169 *pnBuf = nBuf - 4;
201171 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
201172 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201173 *pnBuf = nBuf - 4;
201179 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
201180 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201181 *pnBuf = nBuf - 2;
201187 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
201188 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201189 *pnBuf = nBuf - 2;
201195 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
201196 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201197 *pnBuf = nBuf - 4;
201199 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
201200 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201201 *pnBuf = nBuf - 4;
201207 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
201208 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201209 *pnBuf = nBuf - 3;
201211 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
201212 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
201213 *pnBuf = nBuf - 5;
201215 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
201216 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
201217 *pnBuf = nBuf - 4;
201219 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
201220 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201221 *pnBuf = nBuf - 3;
201227 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
201228 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
201229 *pnBuf = nBuf - 3;
201231 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
201232 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
201233 *pnBuf = nBuf - 2;
201239 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
201240 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201241 *pnBuf = nBuf - 3;
201247 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
201248 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201249 *pnBuf = nBuf - 3;
201251 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
201252 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201253 *pnBuf = nBuf - 3;
201259 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
201260 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201261 *pnBuf = nBuf - 3;
201267 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
201268 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201269 *pnBuf = nBuf - 3;
201275 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
201276 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
201277 *pnBuf = nBuf - 3;
201289 int nBuf = *pnBuf;
201290 switch( aBuf[nBuf-2] ){
201293 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
201294 memcpy(&aBuf[nBuf-2], "ate", 3);
201295 *pnBuf = nBuf - 2 + 3;
201301 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
201302 memcpy(&aBuf[nBuf-2], "ble", 3);
201303 *pnBuf = nBuf - 2 + 3;
201309 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
201310 memcpy(&aBuf[nBuf-2], "ize", 3);
201311 *pnBuf = nBuf - 2 + 3;
201323 int nBuf = *pnBuf;
201324 switch( aBuf[nBuf-2] ){
201327 if( nBuf>7 && 0==memcmp("ational", &aBuf[nBuf-7], 7) ){
201328 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201329 memcpy(&aBuf[nBuf-7], "ate", 3);
201330 *pnBuf = nBuf - 7 + 3;
201332 }else if( nBuf>6 && 0==memcmp("tional", &aBuf[nBuf-6], 6) ){
201333 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
201334 memcpy(&aBuf[nBuf-6], "tion", 4);
201335 *pnBuf = nBuf - 6 + 4;
201341 if( nBuf>4 && 0==memcmp("enci", &aBuf[nBuf-4], 4) ){
201342 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201343 memcpy(&aBuf[nBuf-4], "ence", 4);
201344 *pnBuf = nBuf - 4 + 4;
201346 }else if( nBuf>4 && 0==memcmp("anci", &aBuf[nBuf-4], 4) ){
201347 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201348 memcpy(&aBuf[nBuf-4], "ance", 4);
201349 *pnBuf = nBuf - 4 + 4;
201355 if( nBuf>4 && 0==memcmp("izer", &aBuf[nBuf-4], 4) ){
201356 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201357 memcpy(&aBuf[nBuf-4], "ize", 3);
201358 *pnBuf = nBuf - 4 + 3;
201364 if( nBuf>4 && 0==memcmp("logi", &aBuf[nBuf-4], 4) ){
201365 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201366 memcpy(&aBuf[nBuf-4], "log", 3);
201367 *pnBuf = nBuf - 4 + 3;
201373 if( nBuf>3 && 0==memcmp("bli", &aBuf[nBuf-3], 3) ){
201374 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201375 memcpy(&aBuf[nBuf-3], "ble", 3);
201376 *pnBuf = nBuf - 3 + 3;
201378 }else if( nBuf>4 && 0==memcmp("alli", &aBuf[nBuf-4], 4) ){
201379 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201380 memcpy(&aBuf[nBuf-4], "al", 2);
201381 *pnBuf = nBuf - 4 + 2;
201383 }else if( nBuf>5 && 0==memcmp("entli", &aBuf[nBuf-5], 5) ){
201384 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201385 memcpy(&aBuf[nBuf-5], "ent", 3);
201386 *pnBuf = nBuf - 5 + 3;
201388 }else if( nBuf>3 && 0==memcmp("eli", &aBuf[nBuf-3], 3) ){
201389 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201390 memcpy(&aBuf[nBuf-3], "e", 1);
201391 *pnBuf = nBuf - 3 + 1;
201393 }else if( nBuf>5 && 0==memcmp("ousli", &aBuf[nBuf-5], 5) ){
201394 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201395 memcpy(&aBuf[nBuf-5], "ous", 3);
201396 *pnBuf = nBuf - 5 + 3;
201402 if( nBuf>7 && 0==memcmp("ization", &aBuf[nBuf-7], 7) ){
201403 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201404 memcpy(&aBuf[nBuf-7], "ize", 3);
201405 *pnBuf = nBuf - 7 + 3;
201407 }else if( nBuf>5 && 0==memcmp("ation", &aBuf[nBuf-5], 5) ){
201408 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201409 memcpy(&aBuf[nBuf-5], "ate", 3);
201410 *pnBuf = nBuf - 5 + 3;
201412 }else if( nBuf>4 && 0==memcmp("ator", &aBuf[nBuf-4], 4) ){
201413 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201414 memcpy(&aBuf[nBuf-4], "ate", 3);
201415 *pnBuf = nBuf - 4 + 3;
201421 if( nBuf>5 && 0==memcmp("alism", &aBuf[nBuf-5], 5) ){
201422 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201423 memcpy(&aBuf[nBuf-5], "al", 2);
201424 *pnBuf = nBuf - 5 + 2;
201426 }else if( nBuf>7 && 0==memcmp("iveness", &aBuf[nBuf-7], 7) ){
201427 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201428 memcpy(&aBuf[nBuf-7], "ive", 3);
201429 *pnBuf = nBuf - 7 + 3;
201431 }else if( nBuf>7 && 0==memcmp("fulness", &aBuf[nBuf-7], 7) ){
201432 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201433 memcpy(&aBuf[nBuf-7], "ful", 3);
201434 *pnBuf = nBuf - 7 + 3;
201436 }else if( nBuf>7 && 0==memcmp("ousness", &aBuf[nBuf-7], 7) ){
201437 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
201438 memcpy(&aBuf[nBuf-7], "ous", 3);
201439 *pnBuf = nBuf - 7 + 3;
201445 if( nBuf>5 && 0==memcmp("aliti", &aBuf[nBuf-5], 5) ){
201446 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201447 memcpy(&aBuf[nBuf-5], "al", 2);
201448 *pnBuf = nBuf - 5 + 2;
201450 }else if( nBuf>5 && 0==memcmp("iviti", &aBuf[nBuf-5], 5) ){
201451 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201452 memcpy(&aBuf[nBuf-5], "ive", 3);
201453 *pnBuf = nBuf - 5 + 3;
201455 }else if( nBuf>6 && 0==memcmp("biliti", &aBuf[nBuf-6], 6) ){
201456 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
201457 memcpy(&aBuf[nBuf-6], "ble", 3);
201458 *pnBuf = nBuf - 6 + 3;
201470 int nBuf = *pnBuf;
201471 switch( aBuf[nBuf-2] ){
201474 if( nBuf>4 && 0==memcmp("ical", &aBuf[nBuf-4], 4) ){
201475 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201476 memcpy(&aBuf[nBuf-4], "ic", 2);
201477 *pnBuf = nBuf - 4 + 2;
201483 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
201484 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
201485 *pnBuf = nBuf - 4;
201491 if( nBuf>5 && 0==memcmp("icate", &aBuf[nBuf-5], 5) ){
201492 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201493 memcpy(&aBuf[nBuf-5], "ic", 2);
201494 *pnBuf = nBuf - 5 + 2;
201496 }else if( nBuf>5 && 0==memcmp("iciti", &aBuf[nBuf-5], 5) ){
201497 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201498 memcpy(&aBuf[nBuf-5], "ic", 2);
201499 *pnBuf = nBuf - 5 + 2;
201505 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
201506 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201507 *pnBuf = nBuf - 3;
201513 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
201514 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201515 *pnBuf = nBuf - 5;
201521 if( nBuf>5 && 0==memcmp("alize", &aBuf[nBuf-5], 5) ){
201522 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
201523 memcpy(&aBuf[nBuf-5], "al", 2);
201524 *pnBuf = nBuf - 5 + 2;
201536 int nBuf = *pnBuf;
201537 switch( aBuf[nBuf-2] ){
201540 if( nBuf>3 && 0==memcmp("eed", &aBuf[nBuf-3], 3) ){
201541 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
201542 memcpy(&aBuf[nBuf-3], "ee", 2);
201543 *pnBuf = nBuf - 3 + 2;
201545 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
201546 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
201547 *pnBuf = nBuf - 2;
201554 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
201555 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
201556 *pnBuf = nBuf - 3;
201572 int nBuf = *pnBuf;
201573 if( aBuf[nBuf-1]=='s' ){
201574 if( aBuf[nBuf-2]=='e' ){
201575 if( (nBuf>4 && aBuf[nBuf-4]=='s' && aBuf[nBuf-3]=='s')
201576 || (nBuf>3 && aBuf[nBuf-3]=='i' )
201578 *pnBuf = nBuf-2;
201580 *pnBuf = nBuf-1;
201583 else if( aBuf[nBuf-2]!='s' ){
201584 *pnBuf = nBuf-1;
201600 int nBuf;
201604 nBuf = nToken;
201605 memcpy(aBuf, pToken, nBuf);
201608 fts5PorterStep1A(aBuf, &nBuf);
201609 if( fts5PorterStep1B(aBuf, &nBuf) ){
201610 if( fts5PorterStep1B2(aBuf, &nBuf)==0 ){
201611 char c = aBuf[nBuf-1];
201613 && c!='l' && c!='s' && c!='z' && c==aBuf[nBuf-2]
201615 nBuf--;
201616 }else if( fts5Porter_MEq1(aBuf, nBuf) && fts5Porter_Ostar(aBuf, nBuf) ){
201617 aBuf[nBuf++] = 'e';
201623 if( aBuf[nBuf-1]=='y' && fts5Porter_Vowel(aBuf, nBuf-1) ){
201624 aBuf[nBuf-1] = 'i';
201628 fts5PorterStep2(aBuf, &nBuf);
201629 fts5PorterStep3(aBuf, &nBuf);
201630 fts5PorterStep4(aBuf, &nBuf);
201633 assert( nBuf>0 );
201634 if( aBuf[nBuf-1]=='e' ){
201635 if( fts5Porter_MGt1(aBuf, nBuf-1)
201636 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
201638 nBuf--;
201643 if( nBuf>1 && aBuf[nBuf-1]=='l'
201644 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
201646 nBuf--;
201649 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);