Lines Matching refs:nBuf
29388 extern void SQLITE_OS_TRACE_PROC(const char *zBuf, int nBuf);
36873 int nBuf, /* Size of buffer pBuf in bytes */
36878 assert( nBuf==(nBuf&0x1ffff) );
36881 nBuf &= 0x1ffff;
36885 do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
36887 do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
36896 rc = osWrite(fd, pBuf, nBuf);
37410 static int unixGetTempname(int nBuf, char *zBuf);
39216 static int unixGetTempname(int nBuf, char *zBuf){
39232 assert( nBuf>2 );
39233 zBuf[nBuf-2] = 0;
39234 sqlite3_snprintf(nBuf, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX"%llx%c",
39236 if( zBuf[nBuf-2]!=0 || (iLimit++)>10 ) return SQLITE_ERROR;
39918 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
39924 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr);
39965 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
39967 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int)));
39981 memset(zBuf, 0, nBuf);
39992 assert( sizeof(t)+sizeof(randomnessPid)<=(size_t)nBuf );
39993 nBuf = sizeof(t) + sizeof(randomnessPid);
39995 do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR );
40000 return nBuf;
42949 SQLITE_API void sqlite3_win32_write_debug(const char *zBuf, int nBuf){
42951 int nMin = MIN(nBuf, (SQLITE_WIN32_DBG_BUF_SIZE - 1)); /* may be negative. */
43600 static int winGetLastErrorMsg(DWORD lastErrno, int nBuf, char *zBuf){
43665 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%lx (%lu)", lastErrno, lastErrno);
43668 sqlite3_snprintf(nBuf, zBuf, "%s", zOut);
46313 static int winMakeEndInDirSep(int nBuf, char *zBuf){
46319 }else if( nLen+1<nBuf ){
46340 int nMax, nBuf, nDir, nLen;
46352 nMax = pVfs->mxPathname; nBuf = nMax + 2;
46353 zBuf = sqlite3MallocZero( nBuf );
46538 if( (nLen + nPre + 17) > nBuf ){
46544 sqlite3_snprintf(nBuf-16-nLen, zBuf+nLen, SQLITE_TEMP_FILE_PREFIX);
47389 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
47391 winGetLastErrorMsg(osGetLastError(), nBuf, zBufOut);
47438 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
47441 memset(zBuf, 0, nBuf);
47442 return nBuf;
47446 memset(zBuf, 0, nBuf);
47448 e.na = nBuf;
47487 return e.nXor>nBuf ? nBuf : e.nXor;
47603 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
47606 if( nBuf>0 ) winGetLastErrorMsg(e, nBuf, zBuf);
51608 int nBuf, /* Size of buffer nBuf */
61415 int nBuf,
61437 SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0
63019 int nBuf, /* Size of temporary buffer */
63093 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
95136 int nBuf, /* Buffer size */
95140 p->aBuffer = (u8*)sqlite3Malloc(nBuf);
95144 p->iBufEnd = p->iBufStart = (iStart % nBuf);
95146 p->nBuffer = nBuf;
179748 int nBuf /* size of the BLOB */
179751 if( nBuf && (zBuf[nBuf-1]&0x80)==0 ){
179753 for(i=j=0; i<N && j<nBuf; i++){
201763 int nBuf; /* Size of buffer aBuf */
203536 if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
203541 }while( (size_t)(nNew-p->nBuf)<nByte );
203569 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
203570 p->nBuf += nByte;
203586 p->aBuf[p->nBuf++] = v;
203599 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
203617 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
203618 p->nBuf += nBlob;
203637 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
203638 p->nBuf += nStr;
203676 char *zOut = (char *)&p->aBuf[p->nBuf];
203684 p->nBuf = (int)((u8 *)zOut - p->aBuf);
203766 int nRewind = pBuf->nBuf; /* Set to zero if any values are modified */
203841 pBuf->nBuf = nRewind;
203843 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
203949 nSql = buf.nBuf;
204098 int nRewind = buf.nBuf; /* Initial size of write buffer */
204116 nNoop = buf.nBuf;
204145 && buf.nBuf>nNoop
204146 && buf.nBuf>sessions_strm_chunk_size
204148 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204150 buf.nBuf = 0;
204157 if( buf.nBuf==nNoop ){
204158 buf.nBuf = nRewind;
204166 *pnChangeset = buf.nBuf;
204169 }else if( buf.nBuf>0 ){
204170 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204359 int nMove = pIn->buf.nBuf - pIn->iNext;
204364 pIn->buf.nBuf -= pIn->iNext;
204366 pIn->nData = pIn->buf.nBuf;
204385 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
204389 pIn->buf.nBuf += nNew;
204394 pIn->nData = pIn->buf.nBuf;
204645 p->tblhdr.nBuf = 0;
205021 sPK.nBuf = 0;
205106 if( xOutput && sOut.nBuf>=sessions_strm_chunk_size ){
205107 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205108 sOut.nBuf = 0;
205115 *pnInverted = sOut.nBuf;
205118 }else if( sOut.nBuf>0 ){
205119 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205251 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
205347 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
205410 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
205950 while( pApply->constraints.nBuf ){
205955 rc = sessionChangesetStart(&pIter2, 0, 0, cons.nBuf, cons.aBuf, 0);
205974 assert( pApply->bDeferConstraints || pApply->constraints.nBuf==0 );
205978 if( pApply->constraints.nBuf>=cons.nBuf ){
206172 assert( sApply.bRebase || sApply.rebase.nBuf==0 );
206175 *pnRebase = sApply.rebase.nBuf;
206643 if( rc==SQLITE_OK && xOutput && buf.nBuf>=sessions_strm_chunk_size ){
206644 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
206645 buf.nBuf = 0;
206653 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
206656 *pnOut = buf.nBuf;
206830 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
206845 pBuf->nBuf = pOut-pBuf->aBuf;
206846 assert( pBuf->nBuf<=pBuf->nAlloc );
206879 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
206917 pBuf->nBuf = (pOut - pBuf->aBuf);
207039 if( rc==SQLITE_OK && xOutput && sOut.nBuf>sessions_strm_chunk_size ){
207040 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207041 sOut.nBuf = 0;
207053 if( sOut.nBuf>0 ){
207054 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207058 *pnOut = sOut.nBuf;
220701 const int nBuf = 32;
220713 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
220748 assert( i<nBuf );
220764 for(i=0; i<nBuf; i++){
226894 int nBuf = *pnBuf;
226900 if( nBuf<p->nSuffix ) continue;
226901 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
226905 int nStem = nBuf - p->nSuffix;
227007 int nBuf = *pnBuf;
227008 switch( aBuf[nBuf-2] ){
227011 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
227012 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227013 *pnBuf = nBuf - 2;
227019 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
227020 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227021 *pnBuf = nBuf - 4;
227023 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
227024 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227025 *pnBuf = nBuf - 4;
227031 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
227032 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227033 *pnBuf = nBuf - 2;
227039 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
227040 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227041 *pnBuf = nBuf - 2;
227047 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
227048 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227049 *pnBuf = nBuf - 4;
227051 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
227052 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227053 *pnBuf = nBuf - 4;
227059 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
227060 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227061 *pnBuf = nBuf - 3;
227063 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
227064 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
227065 *pnBuf = nBuf - 5;
227067 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
227068 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227069 *pnBuf = nBuf - 4;
227071 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
227072 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227073 *pnBuf = nBuf - 3;
227079 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
227080 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
227081 *pnBuf = nBuf - 3;
227083 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
227084 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227085 *pnBuf = nBuf - 2;
227091 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
227092 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227093 *pnBuf = nBuf - 3;
227099 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
227100 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227101 *pnBuf = nBuf - 3;
227103 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
227104 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227105 *pnBuf = nBuf - 3;
227111 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
227112 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227113 *pnBuf = nBuf - 3;
227119 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
227120 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227121 *pnBuf = nBuf - 3;
227127 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
227128 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227129 *pnBuf = nBuf - 3;
227141 int nBuf = *pnBuf;
227142 switch( aBuf[nBuf-2] ){
227145 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
227146 memcpy(&aBuf[nBuf-2], "ate", 3);
227147 *pnBuf = nBuf - 2 + 3;
227153 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
227154 memcpy(&aBuf[nBuf-2], "ble", 3);
227155 *pnBuf = nBuf - 2 + 3;
227161 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
227162 memcpy(&aBuf[nBuf-2], "ize", 3);
227163 *pnBuf = nBuf - 2 + 3;
227175 int nBuf = *pnBuf;
227176 switch( aBuf[nBuf-2] ){
227179 if( nBuf>7 && 0==memcmp("ational", &aBuf[nBuf-7], 7) ){
227180 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227181 memcpy(&aBuf[nBuf-7], "ate", 3);
227182 *pnBuf = nBuf - 7 + 3;
227184 }else if( nBuf>6 && 0==memcmp("tional", &aBuf[nBuf-6], 6) ){
227185 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
227186 memcpy(&aBuf[nBuf-6], "tion", 4);
227187 *pnBuf = nBuf - 6 + 4;
227193 if( nBuf>4 && 0==memcmp("enci", &aBuf[nBuf-4], 4) ){
227194 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227195 memcpy(&aBuf[nBuf-4], "ence", 4);
227196 *pnBuf = nBuf - 4 + 4;
227198 }else if( nBuf>4 && 0==memcmp("anci", &aBuf[nBuf-4], 4) ){
227199 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227200 memcpy(&aBuf[nBuf-4], "ance", 4);
227201 *pnBuf = nBuf - 4 + 4;
227207 if( nBuf>4 && 0==memcmp("izer", &aBuf[nBuf-4], 4) ){
227208 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227209 memcpy(&aBuf[nBuf-4], "ize", 3);
227210 *pnBuf = nBuf - 4 + 3;
227216 if( nBuf>4 && 0==memcmp("logi", &aBuf[nBuf-4], 4) ){
227217 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227218 memcpy(&aBuf[nBuf-4], "log", 3);
227219 *pnBuf = nBuf - 4 + 3;
227225 if( nBuf>3 && 0==memcmp("bli", &aBuf[nBuf-3], 3) ){
227226 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227227 memcpy(&aBuf[nBuf-3], "ble", 3);
227228 *pnBuf = nBuf - 3 + 3;
227230 }else if( nBuf>4 && 0==memcmp("alli", &aBuf[nBuf-4], 4) ){
227231 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227232 memcpy(&aBuf[nBuf-4], "al", 2);
227233 *pnBuf = nBuf - 4 + 2;
227235 }else if( nBuf>5 && 0==memcmp("entli", &aBuf[nBuf-5], 5) ){
227236 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227237 memcpy(&aBuf[nBuf-5], "ent", 3);
227238 *pnBuf = nBuf - 5 + 3;
227240 }else if( nBuf>3 && 0==memcmp("eli", &aBuf[nBuf-3], 3) ){
227241 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227242 memcpy(&aBuf[nBuf-3], "e", 1);
227243 *pnBuf = nBuf - 3 + 1;
227245 }else if( nBuf>5 && 0==memcmp("ousli", &aBuf[nBuf-5], 5) ){
227246 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227247 memcpy(&aBuf[nBuf-5], "ous", 3);
227248 *pnBuf = nBuf - 5 + 3;
227254 if( nBuf>7 && 0==memcmp("ization", &aBuf[nBuf-7], 7) ){
227255 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227256 memcpy(&aBuf[nBuf-7], "ize", 3);
227257 *pnBuf = nBuf - 7 + 3;
227259 }else if( nBuf>5 && 0==memcmp("ation", &aBuf[nBuf-5], 5) ){
227260 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227261 memcpy(&aBuf[nBuf-5], "ate", 3);
227262 *pnBuf = nBuf - 5 + 3;
227264 }else if( nBuf>4 && 0==memcmp("ator", &aBuf[nBuf-4], 4) ){
227265 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227266 memcpy(&aBuf[nBuf-4], "ate", 3);
227267 *pnBuf = nBuf - 4 + 3;
227273 if( nBuf>5 && 0==memcmp("alism", &aBuf[nBuf-5], 5) ){
227274 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227275 memcpy(&aBuf[nBuf-5], "al", 2);
227276 *pnBuf = nBuf - 5 + 2;
227278 }else if( nBuf>7 && 0==memcmp("iveness", &aBuf[nBuf-7], 7) ){
227279 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227280 memcpy(&aBuf[nBuf-7], "ive", 3);
227281 *pnBuf = nBuf - 7 + 3;
227283 }else if( nBuf>7 && 0==memcmp("fulness", &aBuf[nBuf-7], 7) ){
227284 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227285 memcpy(&aBuf[nBuf-7], "ful", 3);
227286 *pnBuf = nBuf - 7 + 3;
227288 }else if( nBuf>7 && 0==memcmp("ousness", &aBuf[nBuf-7], 7) ){
227289 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227290 memcpy(&aBuf[nBuf-7], "ous", 3);
227291 *pnBuf = nBuf - 7 + 3;
227297 if( nBuf>5 && 0==memcmp("aliti", &aBuf[nBuf-5], 5) ){
227298 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227299 memcpy(&aBuf[nBuf-5], "al", 2);
227300 *pnBuf = nBuf - 5 + 2;
227302 }else if( nBuf>5 && 0==memcmp("iviti", &aBuf[nBuf-5], 5) ){
227303 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227304 memcpy(&aBuf[nBuf-5], "ive", 3);
227305 *pnBuf = nBuf - 5 + 3;
227307 }else if( nBuf>6 && 0==memcmp("biliti", &aBuf[nBuf-6], 6) ){
227308 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
227309 memcpy(&aBuf[nBuf-6], "ble", 3);
227310 *pnBuf = nBuf - 6 + 3;
227322 int nBuf = *pnBuf;
227323 switch( aBuf[nBuf-2] ){
227326 if( nBuf>4 && 0==memcmp("ical", &aBuf[nBuf-4], 4) ){
227327 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227328 memcpy(&aBuf[nBuf-4], "ic", 2);
227329 *pnBuf = nBuf - 4 + 2;
227335 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
227336 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227337 *pnBuf = nBuf - 4;
227343 if( nBuf>5 && 0==memcmp("icate", &aBuf[nBuf-5], 5) ){
227344 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227345 memcpy(&aBuf[nBuf-5], "ic", 2);
227346 *pnBuf = nBuf - 5 + 2;
227348 }else if( nBuf>5 && 0==memcmp("iciti", &aBuf[nBuf-5], 5) ){
227349 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227350 memcpy(&aBuf[nBuf-5], "ic", 2);
227351 *pnBuf = nBuf - 5 + 2;
227357 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
227358 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227359 *pnBuf = nBuf - 3;
227365 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
227366 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227367 *pnBuf = nBuf - 5;
227373 if( nBuf>5 && 0==memcmp("alize", &aBuf[nBuf-5], 5) ){
227374 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227375 memcpy(&aBuf[nBuf-5], "al", 2);
227376 *pnBuf = nBuf - 5 + 2;
227388 int nBuf = *pnBuf;
227389 switch( aBuf[nBuf-2] ){
227392 if( nBuf>3 && 0==memcmp("eed", &aBuf[nBuf-3], 3) ){
227393 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227394 memcpy(&aBuf[nBuf-3], "ee", 2);
227395 *pnBuf = nBuf - 3 + 2;
227397 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
227398 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
227399 *pnBuf = nBuf - 2;
227406 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
227407 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
227408 *pnBuf = nBuf - 3;
227424 int nBuf = *pnBuf;
227425 if( aBuf[nBuf-1]=='s' ){
227426 if( aBuf[nBuf-2]=='e' ){
227427 if( (nBuf>4 && aBuf[nBuf-4]=='s' && aBuf[nBuf-3]=='s')
227428 || (nBuf>3 && aBuf[nBuf-3]=='i' )
227430 *pnBuf = nBuf-2;
227432 *pnBuf = nBuf-1;
227435 else if( aBuf[nBuf-2]!='s' ){
227436 *pnBuf = nBuf-1;
227452 int nBuf;
227456 nBuf = nToken;
227457 memcpy(aBuf, pToken, nBuf);
227460 fts5PorterStep1A(aBuf, &nBuf);
227461 if( fts5PorterStep1B(aBuf, &nBuf) ){
227462 if( fts5PorterStep1B2(aBuf, &nBuf)==0 ){
227463 char c = aBuf[nBuf-1];
227465 && c!='l' && c!='s' && c!='z' && c==aBuf[nBuf-2]
227467 nBuf--;
227468 }else if( fts5Porter_MEq1(aBuf, nBuf) && fts5Porter_Ostar(aBuf, nBuf) ){
227469 aBuf[nBuf++] = 'e';
227475 if( aBuf[nBuf-1]=='y' && fts5Porter_Vowel(aBuf, nBuf-1) ){
227476 aBuf[nBuf-1] = 'i';
227480 fts5PorterStep2(aBuf, &nBuf);
227481 fts5PorterStep3(aBuf, &nBuf);
227482 fts5PorterStep4(aBuf, &nBuf);
227485 assert( nBuf>0 );
227486 if( aBuf[nBuf-1]=='e' ){
227487 if( fts5Porter_MGt1(aBuf, nBuf-1)
227488 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
227490 nBuf--;
227495 if( nBuf>1 && aBuf[nBuf-1]=='l'
227496 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
227498 nBuf--;
227501 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);