Lines Matching defs:nBuf
33064 ** absolute offset iOff, then attempt to write nBuf bytes of data from
33067 ** nBuf).
33073 int nBuf, /* Size of buffer pBuf in bytes */
33078 assert( nBuf==(nBuf&0x1ffff) );
33081 nBuf &= 0x1ffff;
33085 do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
33087 do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
33096 rc = osWrite(fd, pBuf, nBuf);
33610 static int unixGetTempname(int nBuf, char *zBuf);
35286 static int unixGetTempname(int nBuf, char *zBuf){
35302 assert( nBuf>2 );
35303 zBuf[nBuf-2] = 0;
35304 sqlite3_snprintf(nBuf, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX"%llx%c",
35306 if( zBuf[nBuf-2]!=0 || (iLimit++)>10 ) return SQLITE_ERROR;
35967 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
35973 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr);
36012 ** Write nBuf bytes of random data to the supplied buffer zBuf.
36014 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
36016 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int)));
36030 memset(zBuf, 0, nBuf);
36041 assert( sizeof(t)+sizeof(randomnessPid)<=(size_t)nBuf );
36042 nBuf = sizeof(t) + sizeof(randomnessPid);
36044 do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR );
36049 return nBuf;
39013 SQLITE_API void sqlite3_win32_write_debug(const char *zBuf, int nBuf){
39015 int nMin = MIN(nBuf, (SQLITE_WIN32_DBG_BUF_SIZE - 1)); /* may be negative. */
39631 static int winGetLastErrorMsg(DWORD lastErrno, int nBuf, char *zBuf){
39696 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%lx (%lu)", lastErrno, lastErrno);
39698 /* copy a maximum of nBuf chars to output buffer */
39699 sqlite3_snprintf(nBuf, zBuf, "%s", zOut);
42259 static int winMakeEndInDirSep(int nBuf, char *zBuf){
42265 }else if( nLen+1<nBuf ){
42286 int nMax, nBuf, nDir, nLen;
42298 nMax = pVfs->mxPathname; nBuf = nMax + 2;
42299 zBuf = sqlite3MallocZero( nBuf );
42484 if( (nLen + nPre + 17) > nBuf ){
42490 sqlite3_snprintf(nBuf-16-nLen, zBuf+nLen, SQLITE_TEMP_FILE_PREFIX);
43293 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
43295 winGetLastErrorMsg(osGetLastError(), nBuf, zBufOut);
43340 ** Write up to nBuf bytes of randomness into zBuf.
43342 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
43345 memset(zBuf, 0, nBuf);
43346 return nBuf;
43350 memset(zBuf, 0, nBuf);
43355 e.na = nBuf;
43394 return e.nXor>nBuf ? nBuf : e.nXor;
43485 ** a buffer of nBuf bytes. The OS layer should populate the
43501 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
43510 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
43513 if( nBuf>0 ) winGetLastErrorMsg(e, nBuf, zBuf);
46852 int nBuf, /* Size of buffer nBuf */
56331 int nBuf,
56332 u8 *zBuf /* Buffer of at least nBuf bytes */
56353 SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0
57688 int nBuf, /* Size of temporary buffer */
57755 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
74653 ** nBuf is the amount of space left in buf[]. The caller is responsible
78481 ** into buffer zBuf, length nBuf.
87309 int nBuf, /* Buffer size */
87313 p->aBuffer = (u8*)sqlite3Malloc(nBuf);
87317 p->iBufEnd = p->iBufStart = (iStart % nBuf);
87319 p->nBuffer = nBuf;
158655 int nBuf /* size of the BLOB */
158658 UNUSED_PARAMETER(nBuf);
158662 assert(j<=nBuf);
174234 int nBuf; /* Size of buffer aBuf */
175888 if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
175893 }while( nNew<(p->nBuf+nByte) );
175921 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
175922 p->nBuf += nByte;
175938 p->aBuf[p->nBuf++] = v;
175951 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
175969 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
175970 p->nBuf += nBlob;
175989 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
175990 p->nBuf += nStr;
176028 char *zOut = (char *)&p->aBuf[p->nBuf];
176036 p->nBuf = (int)((u8 *)zOut - p->aBuf);
176118 int nRewind = pBuf->nBuf; /* Set to zero if any values are modified */
176193 pBuf->nBuf = nRewind;
176195 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
176291 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, ppStmt, 0);
176436 int nRewind = buf.nBuf; /* Initial size of write buffer */
176454 nNoop = buf.nBuf;
176483 && buf.nBuf>nNoop
176484 && buf.nBuf>SESSIONS_STRM_CHUNK_SIZE
176486 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
176488 buf.nBuf = 0;
176495 if( buf.nBuf==nNoop ){
176496 buf.nBuf = nRewind;
176504 *pnChangeset = buf.nBuf;
176507 }else if( buf.nBuf>0 ){
176508 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
176677 int nMove = pIn->buf.nBuf - pIn->iNext;
176682 pIn->buf.nBuf -= pIn->iNext;
176684 pIn->nData = pIn->buf.nBuf;
176703 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
176707 pIn->buf.nBuf += nNew;
176712 pIn->nData = pIn->buf.nBuf;
176944 p->tblhdr.nBuf = 0;
177301 sPK.nBuf = 0;
177386 if( xOutput && sOut.nBuf>=SESSIONS_STRM_CHUNK_SIZE ){
177387 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
177388 sOut.nBuf = 0;
177395 *pnInverted = sOut.nBuf;
177398 }else if( sOut.nBuf>0 ){
177399 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
177528 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
177624 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
177686 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
178114 while( pApply->constraints.nBuf ){
178119 rc = sessionChangesetStart(&pIter2, 0, 0, cons.nBuf, cons.aBuf);
178138 assert( pApply->bDeferConstraints || pApply->constraints.nBuf==0 );
178142 if( pApply->constraints.nBuf>=cons.nBuf ){
178667 if( rc==SQLITE_OK && xOutput && buf.nBuf>=SESSIONS_STRM_CHUNK_SIZE ){
178668 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
178669 buf.nBuf = 0;
178675 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
178678 *pnOut = buf.nBuf;
194186 const int nBuf = 32;
194198 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
194233 assert( i<nBuf );
194249 for(i=0; i<nBuf; i++){
200101 int nBuf = *pnBuf;
200107 if( nBuf<p->nSuffix ) continue;
200108 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
200112 int nStem = nBuf - p->nSuffix;
200214 int nBuf = *pnBuf;
200215 switch( aBuf[nBuf-2] ){
200218 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
200219 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
200220 *pnBuf = nBuf - 2;
200226 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
200227 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
200228 *pnBuf = nBuf - 4;
200230 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
200231 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
200232 *pnBuf = nBuf - 4;
200238 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
200239 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
200240 *pnBuf = nBuf - 2;
200246 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
200247 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
200248 *pnBuf = nBuf - 2;
200254 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
200255 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
200256 *pnBuf = nBuf - 4;
200258 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
200259 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
200260 *pnBuf = nBuf - 4;
200266 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
200267 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200268 *pnBuf = nBuf - 3;
200270 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
200271 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
200272 *pnBuf = nBuf - 5;
200274 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
200275 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
200276 *pnBuf = nBuf - 4;
200278 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
200279 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200280 *pnBuf = nBuf - 3;
200286 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
200287 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
200288 *pnBuf = nBuf - 3;
200290 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
200291 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
200292 *pnBuf = nBuf - 2;
200298 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
200299 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200300 *pnBuf = nBuf - 3;
200306 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
200307 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200308 *pnBuf = nBuf - 3;
200310 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
200311 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200312 *pnBuf = nBuf - 3;
200318 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
200319 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200320 *pnBuf = nBuf - 3;
200326 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
200327 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200328 *pnBuf = nBuf - 3;
200334 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
200335 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
200336 *pnBuf = nBuf - 3;
200348 int nBuf = *pnBuf;
200349 switch( aBuf[nBuf-2] ){
200352 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
200353 memcpy(&aBuf[nBuf-2], "ate", 3);
200354 *pnBuf = nBuf - 2 + 3;
200360 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
200361 memcpy(&aBuf[nBuf-2], "ble", 3);
200362 *pnBuf = nBuf - 2 + 3;
200368 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
200369 memcpy(&aBuf[nBuf-2], "ize", 3);
200370 *pnBuf = nBuf - 2 + 3;
200382 int nBuf = *pnBuf;
200383 switch( aBuf[nBuf-2] ){
200386 if( nBuf>7 && 0==memcmp("ational", &aBuf[nBuf-7], 7) ){
200387 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
200388 memcpy(&aBuf[nBuf-7], "ate", 3);
200389 *pnBuf = nBuf - 7 + 3;
200391 }else if( nBuf>6 && 0==memcmp("tional", &aBuf[nBuf-6], 6) ){
200392 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
200393 memcpy(&aBuf[nBuf-6], "tion", 4);
200394 *pnBuf = nBuf - 6 + 4;
200400 if( nBuf>4 && 0==memcmp("enci", &aBuf[nBuf-4], 4) ){
200401 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200402 memcpy(&aBuf[nBuf-4], "ence", 4);
200403 *pnBuf = nBuf - 4 + 4;
200405 }else if( nBuf>4 && 0==memcmp("anci", &aBuf[nBuf-4], 4) ){
200406 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200407 memcpy(&aBuf[nBuf-4], "ance", 4);
200408 *pnBuf = nBuf - 4 + 4;
200414 if( nBuf>4 && 0==memcmp("izer", &aBuf[nBuf-4], 4) ){
200415 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200416 memcpy(&aBuf[nBuf-4], "ize", 3);
200417 *pnBuf = nBuf - 4 + 3;
200423 if( nBuf>4 && 0==memcmp("logi", &aBuf[nBuf-4], 4) ){
200424 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200425 memcpy(&aBuf[nBuf-4], "log", 3);
200426 *pnBuf = nBuf - 4 + 3;
200432 if( nBuf>3 && 0==memcmp("bli", &aBuf[nBuf-3], 3) ){
200433 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
200434 memcpy(&aBuf[nBuf-3], "ble", 3);
200435 *pnBuf = nBuf - 3 + 3;
200437 }else if( nBuf>4 && 0==memcmp("alli", &aBuf[nBuf-4], 4) ){
200438 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200439 memcpy(&aBuf[nBuf-4], "al", 2);
200440 *pnBuf = nBuf - 4 + 2;
200442 }else if( nBuf>5 && 0==memcmp("entli", &aBuf[nBuf-5], 5) ){
200443 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200444 memcpy(&aBuf[nBuf-5], "ent", 3);
200445 *pnBuf = nBuf - 5 + 3;
200447 }else if( nBuf>3 && 0==memcmp("eli", &aBuf[nBuf-3], 3) ){
200448 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
200449 memcpy(&aBuf[nBuf-3], "e", 1);
200450 *pnBuf = nBuf - 3 + 1;
200452 }else if( nBuf>5 && 0==memcmp("ousli", &aBuf[nBuf-5], 5) ){
200453 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200454 memcpy(&aBuf[nBuf-5], "ous", 3);
200455 *pnBuf = nBuf - 5 + 3;
200461 if( nBuf>7 && 0==memcmp("ization", &aBuf[nBuf-7], 7) ){
200462 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
200463 memcpy(&aBuf[nBuf-7], "ize", 3);
200464 *pnBuf = nBuf - 7 + 3;
200466 }else if( nBuf>5 && 0==memcmp("ation", &aBuf[nBuf-5], 5) ){
200467 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200468 memcpy(&aBuf[nBuf-5], "ate", 3);
200469 *pnBuf = nBuf - 5 + 3;
200471 }else if( nBuf>4 && 0==memcmp("ator", &aBuf[nBuf-4], 4) ){
200472 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200473 memcpy(&aBuf[nBuf-4], "ate", 3);
200474 *pnBuf = nBuf - 4 + 3;
200480 if( nBuf>5 && 0==memcmp("alism", &aBuf[nBuf-5], 5) ){
200481 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200482 memcpy(&aBuf[nBuf-5], "al", 2);
200483 *pnBuf = nBuf - 5 + 2;
200485 }else if( nBuf>7 && 0==memcmp("iveness", &aBuf[nBuf-7], 7) ){
200486 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
200487 memcpy(&aBuf[nBuf-7], "ive", 3);
200488 *pnBuf = nBuf - 7 + 3;
200490 }else if( nBuf>7 && 0==memcmp("fulness", &aBuf[nBuf-7], 7) ){
200491 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
200492 memcpy(&aBuf[nBuf-7], "ful", 3);
200493 *pnBuf = nBuf - 7 + 3;
200495 }else if( nBuf>7 && 0==memcmp("ousness", &aBuf[nBuf-7], 7) ){
200496 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
200497 memcpy(&aBuf[nBuf-7], "ous", 3);
200498 *pnBuf = nBuf - 7 + 3;
200504 if( nBuf>5 && 0==memcmp("aliti", &aBuf[nBuf-5], 5) ){
200505 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200506 memcpy(&aBuf[nBuf-5], "al", 2);
200507 *pnBuf = nBuf - 5 + 2;
200509 }else if( nBuf>5 && 0==memcmp("iviti", &aBuf[nBuf-5], 5) ){
200510 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200511 memcpy(&aBuf[nBuf-5], "ive", 3);
200512 *pnBuf = nBuf - 5 + 3;
200514 }else if( nBuf>6 && 0==memcmp("biliti", &aBuf[nBuf-6], 6) ){
200515 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
200516 memcpy(&aBuf[nBuf-6], "ble", 3);
200517 *pnBuf = nBuf - 6 + 3;
200529 int nBuf = *pnBuf;
200530 switch( aBuf[nBuf-2] ){
200533 if( nBuf>4 && 0==memcmp("ical", &aBuf[nBuf-4], 4) ){
200534 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200535 memcpy(&aBuf[nBuf-4], "ic", 2);
200536 *pnBuf = nBuf - 4 + 2;
200542 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
200543 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
200544 *pnBuf = nBuf - 4;
200550 if( nBuf>5 && 0==memcmp("icate", &aBuf[nBuf-5], 5) ){
200551 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200552 memcpy(&aBuf[nBuf-5], "ic", 2);
200553 *pnBuf = nBuf - 5 + 2;
200555 }else if( nBuf>5 && 0==memcmp("iciti", &aBuf[nBuf-5], 5) ){
200556 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200557 memcpy(&aBuf[nBuf-5], "ic", 2);
200558 *pnBuf = nBuf - 5 + 2;
200564 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
200565 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
200566 *pnBuf = nBuf - 3;
200572 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
200573 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200574 *pnBuf = nBuf - 5;
200580 if( nBuf>5 && 0==memcmp("alize", &aBuf[nBuf-5], 5) ){
200581 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
200582 memcpy(&aBuf[nBuf-5], "al", 2);
200583 *pnBuf = nBuf - 5 + 2;
200595 int nBuf = *pnBuf;
200596 switch( aBuf[nBuf-2] ){
200599 if( nBuf>3 && 0==memcmp("eed", &aBuf[nBuf-3], 3) ){
200600 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
200601 memcpy(&aBuf[nBuf-3], "ee", 2);
200602 *pnBuf = nBuf - 3 + 2;
200604 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
200605 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
200606 *pnBuf = nBuf - 2;
200613 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
200614 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
200615 *pnBuf = nBuf - 3;
200631 int nBuf = *pnBuf;
200632 if( aBuf[nBuf-1]=='s' ){
200633 if( aBuf[nBuf-2]=='e' ){
200634 if( (nBuf>4 && aBuf[nBuf-4]=='s' && aBuf[nBuf-3]=='s')
200635 || (nBuf>3 && aBuf[nBuf-3]=='i' )
200637 *pnBuf = nBuf-2;
200639 *pnBuf = nBuf-1;
200642 else if( aBuf[nBuf-2]!='s' ){
200643 *pnBuf = nBuf-1;
200659 int nBuf;
200663 nBuf = nToken;
200664 memcpy(aBuf, pToken, nBuf);
200667 fts5PorterStep1A(aBuf, &nBuf);
200668 if( fts5PorterStep1B(aBuf, &nBuf) ){
200669 if( fts5PorterStep1B2(aBuf, &nBuf)==0 ){
200670 char c = aBuf[nBuf-1];
200672 && c!='l' && c!='s' && c!='z' && c==aBuf[nBuf-2]
200674 nBuf--;
200675 }else if( fts5Porter_MEq1(aBuf, nBuf) && fts5Porter_Ostar(aBuf, nBuf) ){
200676 aBuf[nBuf++] = 'e';
200682 if( aBuf[nBuf-1]=='y' && fts5Porter_Vowel(aBuf, nBuf-1) ){
200683 aBuf[nBuf-1] = 'i';
200687 fts5PorterStep2(aBuf, &nBuf);
200688 fts5PorterStep3(aBuf, &nBuf);
200689 fts5PorterStep4(aBuf, &nBuf);
200692 assert( nBuf>0 );
200693 if( aBuf[nBuf-1]=='e' ){
200694 if( fts5Porter_MGt1(aBuf, nBuf-1)
200695 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
200697 nBuf--;
200702 if( nBuf>1 && aBuf[nBuf-1]=='l'
200703 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
200705 nBuf--;
200708 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);