Lines Matching refs:nBuf
29431 extern void SQLITE_OS_TRACE_PROC(const char *zBuf, int nBuf);
36942 int nBuf, /* Size of buffer pBuf in bytes */
36947 assert( nBuf==(nBuf&0x1ffff) );
36950 nBuf &= 0x1ffff;
36954 do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
36956 do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
36965 rc = osWrite(fd, pBuf, nBuf);
37479 static int unixGetTempname(int nBuf, char *zBuf);
39288 static int unixGetTempname(int nBuf, char *zBuf){
39304 assert( nBuf>2 );
39305 zBuf[nBuf-2] = 0;
39306 sqlite3_snprintf(nBuf, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX"%llx%c",
39308 if( zBuf[nBuf-2]!=0 || (iLimit++)>10 ) return SQLITE_ERROR;
39990 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
39996 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr);
40037 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
40039 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int)));
40053 memset(zBuf, 0, nBuf);
40064 assert( sizeof(t)+sizeof(randomnessPid)<=(size_t)nBuf );
40065 nBuf = sizeof(t) + sizeof(randomnessPid);
40067 do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR );
40072 return nBuf;
43021 SQLITE_API void sqlite3_win32_write_debug(const char *zBuf, int nBuf){
43023 int nMin = MIN(nBuf, (SQLITE_WIN32_DBG_BUF_SIZE - 1)); /* may be negative. */
43672 static int winGetLastErrorMsg(DWORD lastErrno, int nBuf, char *zBuf){
43737 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%lx (%lu)", lastErrno, lastErrno);
43740 sqlite3_snprintf(nBuf, zBuf, "%s", zOut);
46385 static int winMakeEndInDirSep(int nBuf, char *zBuf){
46391 }else if( nLen+1<nBuf ){
46412 int nMax, nBuf, nDir, nLen;
46424 nMax = pVfs->mxPathname; nBuf = nMax + 2;
46425 zBuf = sqlite3MallocZero( nBuf );
46610 if( (nLen + nPre + 17) > nBuf ){
46616 sqlite3_snprintf(nBuf-16-nLen, zBuf+nLen, SQLITE_TEMP_FILE_PREFIX);
47461 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
47463 winGetLastErrorMsg(osGetLastError(), nBuf, zBufOut);
47510 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
47513 memset(zBuf, 0, nBuf);
47514 return nBuf;
47518 memset(zBuf, 0, nBuf);
47520 e.na = nBuf;
47559 return e.nXor>nBuf ? nBuf : e.nXor;
47675 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
47678 if( nBuf>0 ) winGetLastErrorMsg(e, nBuf, zBuf);
51680 int nBuf, /* Size of buffer nBuf */
61543 int nBuf,
61565 SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0
63147 int nBuf, /* Size of temporary buffer */
63221 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
95335 int nBuf, /* Buffer size */
95339 p->aBuffer = (u8*)sqlite3Malloc(nBuf);
95343 p->iBufEnd = p->iBufStart = (iStart % nBuf);
95345 p->nBuffer = nBuf;
180456 int nBuf /* size of the BLOB */
180459 if( nBuf && (zBuf[nBuf-1]&0x80)==0 ){
180461 for(i=j=0; i<N && j<nBuf; i++){
202496 int nBuf; /* Size of buffer aBuf */
204269 if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
204274 }while( (size_t)(nNew-p->nBuf)<nByte );
204302 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
204303 p->nBuf += nByte;
204319 p->aBuf[p->nBuf++] = v;
204332 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
204350 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
204351 p->nBuf += nBlob;
204370 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
204371 p->nBuf += nStr;
204409 char *zOut = (char *)&p->aBuf[p->nBuf];
204417 p->nBuf = (int)((u8 *)zOut - p->aBuf);
204499 int nRewind = pBuf->nBuf; /* Set to zero if any values are modified */
204574 pBuf->nBuf = nRewind;
204576 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
204682 nSql = buf.nBuf;
204831 int nRewind = buf.nBuf; /* Initial size of write buffer */
204849 nNoop = buf.nBuf;
204878 && buf.nBuf>nNoop
204879 && buf.nBuf>sessions_strm_chunk_size
204881 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204883 buf.nBuf = 0;
204890 if( buf.nBuf==nNoop ){
204891 buf.nBuf = nRewind;
204899 *pnChangeset = buf.nBuf;
204902 }else if( buf.nBuf>0 ){
204903 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
205092 int nMove = pIn->buf.nBuf - pIn->iNext;
205097 pIn->buf.nBuf -= pIn->iNext;
205099 pIn->nData = pIn->buf.nBuf;
205118 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
205122 pIn->buf.nBuf += nNew;
205127 pIn->nData = pIn->buf.nBuf;
205378 p->tblhdr.nBuf = 0;
205759 sPK.nBuf = 0;
205844 if( xOutput && sOut.nBuf>=sessions_strm_chunk_size ){
205845 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205846 sOut.nBuf = 0;
205853 *pnInverted = sOut.nBuf;
205856 }else if( sOut.nBuf>0 ){
205857 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205990 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
206086 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
206149 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
206689 while( pApply->constraints.nBuf ){
206695 &pIter2, 0, 0, cons.nBuf, cons.aBuf, pApply->bInvertConstraints
206715 assert( pApply->bDeferConstraints || pApply->constraints.nBuf==0 );
206719 if( pApply->constraints.nBuf>=cons.nBuf ){
206914 assert( sApply.bRebase || sApply.rebase.nBuf==0 );
206917 *pnRebase = sApply.rebase.nBuf;
207385 if( rc==SQLITE_OK && xOutput && buf.nBuf>=sessions_strm_chunk_size ){
207386 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
207387 buf.nBuf = 0;
207395 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
207398 *pnOut = buf.nBuf;
207572 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
207587 pBuf->nBuf = pOut-pBuf->aBuf;
207588 assert( pBuf->nBuf<=pBuf->nAlloc );
207621 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
207659 pBuf->nBuf = (pOut - pBuf->aBuf);
207781 if( rc==SQLITE_OK && xOutput && sOut.nBuf>sessions_strm_chunk_size ){
207782 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207783 sOut.nBuf = 0;
207795 if( sOut.nBuf>0 ){
207796 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207800 *pnOut = sOut.nBuf;
221443 const int nBuf = 32;
221455 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
221490 assert( i<nBuf );
221506 for(i=0; i<nBuf; i++){
227636 int nBuf = *pnBuf;
227642 if( nBuf<p->nSuffix ) continue;
227643 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
227647 int nStem = nBuf - p->nSuffix;
227749 int nBuf = *pnBuf;
227750 switch( aBuf[nBuf-2] ){
227753 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
227754 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227755 *pnBuf = nBuf - 2;
227761 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
227762 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227763 *pnBuf = nBuf - 4;
227765 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
227766 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227767 *pnBuf = nBuf - 4;
227773 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
227774 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227775 *pnBuf = nBuf - 2;
227781 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
227782 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227783 *pnBuf = nBuf - 2;
227789 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
227790 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227791 *pnBuf = nBuf - 4;
227793 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
227794 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227795 *pnBuf = nBuf - 4;
227801 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
227802 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227803 *pnBuf = nBuf - 3;
227805 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
227806 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
227807 *pnBuf = nBuf - 5;
227809 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
227810 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227811 *pnBuf = nBuf - 4;
227813 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
227814 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227815 *pnBuf = nBuf - 3;
227821 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
227822 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
227823 *pnBuf = nBuf - 3;
227825 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
227826 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227827 *pnBuf = nBuf - 2;
227833 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
227834 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227835 *pnBuf = nBuf - 3;
227841 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
227842 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227843 *pnBuf = nBuf - 3;
227845 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
227846 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227847 *pnBuf = nBuf - 3;
227853 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
227854 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227855 *pnBuf = nBuf - 3;
227861 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
227862 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227863 *pnBuf = nBuf - 3;
227869 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
227870 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227871 *pnBuf = nBuf - 3;
227883 int nBuf = *pnBuf;
227884 switch( aBuf[nBuf-2] ){
227887 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
227888 memcpy(&aBuf[nBuf-2], "ate", 3);
227889 *pnBuf = nBuf - 2 + 3;
227895 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
227896 memcpy(&aBuf[nBuf-2], "ble", 3);
227897 *pnBuf = nBuf - 2 + 3;
227903 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
227904 memcpy(&aBuf[nBuf-2], "ize", 3);
227905 *pnBuf = nBuf - 2 + 3;
227917 int nBuf = *pnBuf;
227918 switch( aBuf[nBuf-2] ){
227921 if( nBuf>7 && 0==memcmp("ational", &aBuf[nBuf-7], 7) ){
227922 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227923 memcpy(&aBuf[nBuf-7], "ate", 3);
227924 *pnBuf = nBuf - 7 + 3;
227926 }else if( nBuf>6 && 0==memcmp("tional", &aBuf[nBuf-6], 6) ){
227927 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
227928 memcpy(&aBuf[nBuf-6], "tion", 4);
227929 *pnBuf = nBuf - 6 + 4;
227935 if( nBuf>4 && 0==memcmp("enci", &aBuf[nBuf-4], 4) ){
227936 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227937 memcpy(&aBuf[nBuf-4], "ence", 4);
227938 *pnBuf = nBuf - 4 + 4;
227940 }else if( nBuf>4 && 0==memcmp("anci", &aBuf[nBuf-4], 4) ){
227941 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227942 memcpy(&aBuf[nBuf-4], "ance", 4);
227943 *pnBuf = nBuf - 4 + 4;
227949 if( nBuf>4 && 0==memcmp("izer", &aBuf[nBuf-4], 4) ){
227950 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227951 memcpy(&aBuf[nBuf-4], "ize", 3);
227952 *pnBuf = nBuf - 4 + 3;
227958 if( nBuf>4 && 0==memcmp("logi", &aBuf[nBuf-4], 4) ){
227959 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227960 memcpy(&aBuf[nBuf-4], "log", 3);
227961 *pnBuf = nBuf - 4 + 3;
227967 if( nBuf>3 && 0==memcmp("bli", &aBuf[nBuf-3], 3) ){
227968 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227969 memcpy(&aBuf[nBuf-3], "ble", 3);
227970 *pnBuf = nBuf - 3 + 3;
227972 }else if( nBuf>4 && 0==memcmp("alli", &aBuf[nBuf-4], 4) ){
227973 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
227974 memcpy(&aBuf[nBuf-4], "al", 2);
227975 *pnBuf = nBuf - 4 + 2;
227977 }else if( nBuf>5 && 0==memcmp("entli", &aBuf[nBuf-5], 5) ){
227978 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227979 memcpy(&aBuf[nBuf-5], "ent", 3);
227980 *pnBuf = nBuf - 5 + 3;
227982 }else if( nBuf>3 && 0==memcmp("eli", &aBuf[nBuf-3], 3) ){
227983 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227984 memcpy(&aBuf[nBuf-3], "e", 1);
227985 *pnBuf = nBuf - 3 + 1;
227987 }else if( nBuf>5 && 0==memcmp("ousli", &aBuf[nBuf-5], 5) ){
227988 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
227989 memcpy(&aBuf[nBuf-5], "ous", 3);
227990 *pnBuf = nBuf - 5 + 3;
227996 if( nBuf>7 && 0==memcmp("ization", &aBuf[nBuf-7], 7) ){
227997 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
227998 memcpy(&aBuf[nBuf-7], "ize", 3);
227999 *pnBuf = nBuf - 7 + 3;
228001 }else if( nBuf>5 && 0==memcmp("ation", &aBuf[nBuf-5], 5) ){
228002 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228003 memcpy(&aBuf[nBuf-5], "ate", 3);
228004 *pnBuf = nBuf - 5 + 3;
228006 }else if( nBuf>4 && 0==memcmp("ator", &aBuf[nBuf-4], 4) ){
228007 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
228008 memcpy(&aBuf[nBuf-4], "ate", 3);
228009 *pnBuf = nBuf - 4 + 3;
228015 if( nBuf>5 && 0==memcmp("alism", &aBuf[nBuf-5], 5) ){
228016 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228017 memcpy(&aBuf[nBuf-5], "al", 2);
228018 *pnBuf = nBuf - 5 + 2;
228020 }else if( nBuf>7 && 0==memcmp("iveness", &aBuf[nBuf-7], 7) ){
228021 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
228022 memcpy(&aBuf[nBuf-7], "ive", 3);
228023 *pnBuf = nBuf - 7 + 3;
228025 }else if( nBuf>7 && 0==memcmp("fulness", &aBuf[nBuf-7], 7) ){
228026 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
228027 memcpy(&aBuf[nBuf-7], "ful", 3);
228028 *pnBuf = nBuf - 7 + 3;
228030 }else if( nBuf>7 && 0==memcmp("ousness", &aBuf[nBuf-7], 7) ){
228031 if( fts5Porter_MGt0(aBuf, nBuf-7) ){
228032 memcpy(&aBuf[nBuf-7], "ous", 3);
228033 *pnBuf = nBuf - 7 + 3;
228039 if( nBuf>5 && 0==memcmp("aliti", &aBuf[nBuf-5], 5) ){
228040 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228041 memcpy(&aBuf[nBuf-5], "al", 2);
228042 *pnBuf = nBuf - 5 + 2;
228044 }else if( nBuf>5 && 0==memcmp("iviti", &aBuf[nBuf-5], 5) ){
228045 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228046 memcpy(&aBuf[nBuf-5], "ive", 3);
228047 *pnBuf = nBuf - 5 + 3;
228049 }else if( nBuf>6 && 0==memcmp("biliti", &aBuf[nBuf-6], 6) ){
228050 if( fts5Porter_MGt0(aBuf, nBuf-6) ){
228051 memcpy(&aBuf[nBuf-6], "ble", 3);
228052 *pnBuf = nBuf - 6 + 3;
228064 int nBuf = *pnBuf;
228065 switch( aBuf[nBuf-2] ){
228068 if( nBuf>4 && 0==memcmp("ical", &aBuf[nBuf-4], 4) ){
228069 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
228070 memcpy(&aBuf[nBuf-4], "ic", 2);
228071 *pnBuf = nBuf - 4 + 2;
228077 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
228078 if( fts5Porter_MGt0(aBuf, nBuf-4) ){
228079 *pnBuf = nBuf - 4;
228085 if( nBuf>5 && 0==memcmp("icate", &aBuf[nBuf-5], 5) ){
228086 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228087 memcpy(&aBuf[nBuf-5], "ic", 2);
228088 *pnBuf = nBuf - 5 + 2;
228090 }else if( nBuf>5 && 0==memcmp("iciti", &aBuf[nBuf-5], 5) ){
228091 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228092 memcpy(&aBuf[nBuf-5], "ic", 2);
228093 *pnBuf = nBuf - 5 + 2;
228099 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
228100 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
228101 *pnBuf = nBuf - 3;
228107 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
228108 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228109 *pnBuf = nBuf - 5;
228115 if( nBuf>5 && 0==memcmp("alize", &aBuf[nBuf-5], 5) ){
228116 if( fts5Porter_MGt0(aBuf, nBuf-5) ){
228117 memcpy(&aBuf[nBuf-5], "al", 2);
228118 *pnBuf = nBuf - 5 + 2;
228130 int nBuf = *pnBuf;
228131 switch( aBuf[nBuf-2] ){
228134 if( nBuf>3 && 0==memcmp("eed", &aBuf[nBuf-3], 3) ){
228135 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
228136 memcpy(&aBuf[nBuf-3], "ee", 2);
228137 *pnBuf = nBuf - 3 + 2;
228139 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
228140 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
228141 *pnBuf = nBuf - 2;
228148 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
228149 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
228150 *pnBuf = nBuf - 3;
228166 int nBuf = *pnBuf;
228167 if( aBuf[nBuf-1]=='s' ){
228168 if( aBuf[nBuf-2]=='e' ){
228169 if( (nBuf>4 && aBuf[nBuf-4]=='s' && aBuf[nBuf-3]=='s')
228170 || (nBuf>3 && aBuf[nBuf-3]=='i' )
228172 *pnBuf = nBuf-2;
228174 *pnBuf = nBuf-1;
228177 else if( aBuf[nBuf-2]!='s' ){
228178 *pnBuf = nBuf-1;
228194 int nBuf;
228198 nBuf = nToken;
228199 memcpy(aBuf, pToken, nBuf);
228202 fts5PorterStep1A(aBuf, &nBuf);
228203 if( fts5PorterStep1B(aBuf, &nBuf) ){
228204 if( fts5PorterStep1B2(aBuf, &nBuf)==0 ){
228205 char c = aBuf[nBuf-1];
228207 && c!='l' && c!='s' && c!='z' && c==aBuf[nBuf-2]
228209 nBuf--;
228210 }else if( fts5Porter_MEq1(aBuf, nBuf) && fts5Porter_Ostar(aBuf, nBuf) ){
228211 aBuf[nBuf++] = 'e';
228217 if( aBuf[nBuf-1]=='y' && fts5Porter_Vowel(aBuf, nBuf-1) ){
228218 aBuf[nBuf-1] = 'i';
228222 fts5PorterStep2(aBuf, &nBuf);
228223 fts5PorterStep3(aBuf, &nBuf);
228224 fts5PorterStep4(aBuf, &nBuf);
228227 assert( nBuf>0 );
228228 if( aBuf[nBuf-1]=='e' ){
228229 if( fts5Porter_MGt1(aBuf, nBuf-1)
228230 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
228232 nBuf--;
228237 if( nBuf>1 && aBuf[nBuf-1]=='l'
228238 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
228240 nBuf--;
228243 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);