Lines Matching refs:aBuf
60519 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */
60531 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
60541 magic = sqlite3Get4byte(&aBuf[0]);
60542 szPage = sqlite3Get4byte(&aBuf[8]);
60552 pWal->nCkpt = sqlite3Get4byte(&aBuf[12]);
60553 memcpy(&pWal->hdr.aSalt, &aBuf[16], 8);
60557 aBuf, WAL_HDRSIZE-2*4, 0, pWal->hdr.aFrameCksum
60559 if( pWal->hdr.aFrameCksum[0]!=sqlite3Get4byte(&aBuf[24])
60560 || pWal->hdr.aFrameCksum[1]!=sqlite3Get4byte(&aBuf[28])
60567 version = sqlite3Get4byte(&aBuf[4]);
61689 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */
61766 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
61770 if( memcmp(&pWal->hdr.aSalt, &aBuf[16], 8) ){
62728 u8 *aBuf; /* Buffer to load data from wal file into */
62733 aBuf = sqlite3_malloc(szPage + WAL_FRAME_HDRSIZE);
62734 if( aBuf==0 ) return SQLITE_NOMEM_BKPT;
62747 rc = sqlite3OsRead(pWal->pWalFd, aBuf, sizeof(u32)*2, iCksumOff);
62748 pWal->hdr.aFrameCksum[0] = sqlite3Get4byte(aBuf);
62749 pWal->hdr.aFrameCksum[1] = sqlite3Get4byte(&aBuf[sizeof(u32)]);
62755 rc = sqlite3OsRead(pWal->pWalFd, aBuf, szPage+WAL_FRAME_HDRSIZE, iOff);
62758 iPgno = sqlite3Get4byte(aBuf);
62759 nDbSize = sqlite3Get4byte(&aBuf[4]);
62761 walEncodeFrame(pWal, iPgno, nDbSize, &aBuf[WAL_FRAME_HDRSIZE], aFrame);
62766 sqlite3_free(aBuf);
195518 u8 *aBuf;
198154 p->aBuf = rbuMalloc(p, p->pgsz);
198237 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
198241 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
199335 sqlite3_free(p->aBuf);
199648 static u32 rbuGetU32(u8 *aBuf){
199649 return ((u32)aBuf[0] << 24)
199650 + ((u32)aBuf[1] << 16)
199651 + ((u32)aBuf[2] << 8)
199652 + ((u32)aBuf[3]);
199659 static void rbuPutU32(u8 *aBuf, u32 iVal){
199660 aBuf[0] = (iVal >> 24) & 0xFF;
199661 aBuf[1] = (iVal >> 16) & 0xFF;
199662 aBuf[2] = (iVal >> 8) & 0xFF;
199663 aBuf[3] = (iVal >> 0) & 0xFF;
199666 static void rbuPutU16(u8 *aBuf, u16 iVal){
199667 aBuf[0] = (iVal >> 8) & 0xFF;
199668 aBuf[1] = (iVal >> 0) & 0xFF;
199709 u8 *aBuf = (u8*)zBuf;
199710 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0;
199711 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */
199712 rbuPutU32(&aBuf[36], 0); /* number of free pages */
199713 rbuPutU32(&aBuf[32], 0); /* first page on free list trunk */
199714 rbuPutU32(&aBuf[28], 1); /* size of db file in pages */
199715 rbuPutU32(&aBuf[24], pRbu->pRbuFd->iCookie+1); /* Change counter */
199718 memset(&aBuf[100], 0, iAmt-100);
199719 rbuPutU16(&aBuf[105], iAmt & 0xFFFF);
199720 aBuf[100] = 0x0D;
201762 u8 *aBuf; /* Pointer to changeset buffer */
202004 static int sessionVarintPut(u8 *aBuf, int iVal){
202005 return putVarint32(aBuf, iVal);
202019 static int sessionVarintGet(u8 *aBuf, int *piVal){
202020 return getVarint32(aBuf, *piVal);
202040 static void sessionPutI64(u8 *aBuf, sqlite3_int64 i){
202041 aBuf[0] = (i>>56) & 0xFF;
202042 aBuf[1] = (i>>48) & 0xFF;
202043 aBuf[2] = (i>>40) & 0xFF;
202044 aBuf[3] = (i>>32) & 0xFF;
202045 aBuf[4] = (i>>24) & 0xFF;
202046 aBuf[5] = (i>>16) & 0xFF;
202047 aBuf[6] = (i>> 8) & 0xFF;
202048 aBuf[7] = (i>> 0) & 0xFF;
202065 u8 *aBuf, /* If non-NULL, write serialized value here */
202075 if( aBuf ) aBuf[0] = eType;
202084 if( aBuf ){
202097 sessionPutI64(&aBuf[1], i);
202117 if( aBuf ){
202118 sessionVarintPut(&aBuf[1], n);
202119 if( n ) memcpy(&aBuf[nVarint + 1], z, n);
202128 if( aBuf ) aBuf[0] = '\0';
203543 aNew = (u8 *)sqlite3_realloc64(p->aBuf, nNew);
203547 p->aBuf = aNew;
203569 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
203586 p->aBuf[p->nBuf++] = v;
203599 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
203617 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
203637 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
203655 char aBuf[24];
203656 sqlite3_snprintf(sizeof(aBuf)-1, aBuf, "%d", iVal);
203657 sessionAppendStr(p, aBuf, pRc);
203676 char *zOut = (char *)&p->aBuf[p->nBuf];
203684 p->nBuf = (int)((u8 *)zOut - p->aBuf);
203705 u8 aBuf[8];
203712 sessionPutI64(aBuf, i);
203713 sessionAppendBlob(p, aBuf, 8, pRc);
203843 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
203845 sqlite3_free(buf2.aBuf);
203948 zSql = (char*)buf.aBuf;
204148 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204167 *ppChangeset = buf.aBuf;
204168 buf.aBuf = 0;
204170 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204174 sqlite3_free(buf.aBuf);
204362 memmove(pIn->buf.aBuf, &pIn->buf.aBuf[pIn->iNext], nMove);
204385 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
204393 pIn->aData = pIn->buf.aBuf;
204654 memset(p->tblhdr.aBuf, 0, iPK);
204655 memcpy(&p->tblhdr.aBuf[iPK], &p->in.aData[p->in.iNext], nCopy);
204659 p->apValue = (sqlite3_value**)p->tblhdr.aBuf;
204967 sqlite3_free(p->tblhdr.aBuf);
204968 sqlite3_free(p->in.buf.aBuf);
205030 abPK = sPK.aBuf;
205107 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205116 *ppInverted = sOut.aBuf;
205117 sOut.aBuf = 0;
205119 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205123 sqlite3_free(sOut.aBuf);
205125 sqlite3_free(sPK.aBuf);
205167 sqlite3_free(sInput.buf.aBuf);
205251 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
205253 sqlite3_free(buf.aBuf);
205347 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
205349 sqlite3_free(buf.aBuf);
205410 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
205412 sqlite3_free(buf.aBuf);
205955 rc = sessionChangesetStart(&pIter2, 0, 0, cons.nBuf, cons.aBuf, 0);
205964 pIter2->apValue = (sqlite3_value**)pIter2->tblhdr.aBuf;
205976 sqlite3_free(cons.aBuf);
206174 *ppRebase = (void*)sApply.rebase.aBuf;
206176 sApply.rebase.aBuf = 0;
206183 sqlite3_free((char*)sApply.constraints.aBuf);
206184 sqlite3_free((char*)sApply.rebase.aBuf);
206644 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
206653 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
206655 *ppOut = buf.aBuf;
206657 buf.aBuf = 0;
206660 sqlite3_free(buf.aBuf);
206830 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
206845 pBuf->nBuf = pOut-pBuf->aBuf;
206879 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
206917 pBuf->nBuf = (pOut - pBuf->aBuf);
207040 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207047 sqlite3_free(sOut.aBuf);
207054 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207057 *ppOut = (void*)sOut.aBuf;
207059 sOut.aBuf = 0;
207062 sqlite3_free(sOut.aBuf);
210838 static void sqlite3Fts5Put32(u8 *aBuf, int iVal){
210839 aBuf[0] = (iVal>>24) & 0x00FF;
210840 aBuf[1] = (iVal>>16) & 0x00FF;
210841 aBuf[2] = (iVal>> 8) & 0x00FF;
210842 aBuf[3] = (iVal>> 0) & 0x00FF;
210845 static int sqlite3Fts5Get32(const u8 *aBuf){
210846 return (int)((((u32)aBuf[0])<<24) + (aBuf[1]<<16) + (aBuf[2]<<8) + aBuf[3]);
220085 static int fts5PoslistPrefix(const u8 *aBuf, int nMax){
220088 ret = fts5GetVarint32(aBuf, dummy);
220091 int i = fts5GetVarint32(&aBuf[ret], dummy);
220700 Fts5Buffer *aBuf;
220713 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
220716 if( aBuf && pStruct ){
220749 if( aBuf[i].n==0 ){
220750 fts5BufferSwap(&doclist, &aBuf[i]);
220753 xMerge(p, &doclist, &aBuf[i]);
220754 fts5BufferZero(&aBuf[i]);
220766 xMerge(p, &doclist, &aBuf[i]);
220768 fts5BufferFree(&aBuf[i]);
220783 sqlite3_free(aBuf);
226820 char aBuf[FTS5_PORTER_MAX_TOKEN + 64];
226879 char *aBuf;
226892 static int fts5PorterApply(char *aBuf, int *pnBuf, PorterRule *aRule){
226901 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
226906 if( p->xCond==0 || p->xCond(aBuf, nStem) ){
226907 memcpy(&aBuf[nStem], p->zOutput, p->nOutput);
227005 static int fts5PorterStep4(char *aBuf, int *pnBuf){
227008 switch( aBuf[nBuf-2] ){
227011 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
227012 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227019 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
227020 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227023 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
227024 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227031 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
227032 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227039 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
227040 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227047 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
227048 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227051 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
227052 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227059 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
227060 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227063 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
227064 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
227067 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
227068 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227071 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
227072 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227079 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
227080 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
227083 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
227084 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227091 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
227092 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227099 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
227100 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227103 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
227104 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227111 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
227112 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227119 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
227120 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227127 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
227128 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227139 static int fts5PorterStep1B2(char *aBuf, int *pnBuf){
227142 switch( aBuf[nBuf-2] ){
227145 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
227146 memcpy(&aBuf[nBuf-2], "ate", 3);
227153 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
227154 memcpy(&aBuf[nBuf-2], "ble", 3);
227161 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
227162 memcpy(&aBuf[nBuf-2], "ize", 3);
227173 static int fts5PorterStep2(char *aBuf, int *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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
227320 static int fts5PorterStep3(char *aBuf, int *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);
227335 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
227336 if( fts5Porter_MGt0(aBuf, 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);
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);
227357 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
227358 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
227365 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
227366 if( fts5Porter_MGt0(aBuf, 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);
227386 static int fts5PorterStep1B(char *aBuf, int *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);
227397 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
227398 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
227406 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
227407 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
227423 static void fts5PorterStep1A(char *aBuf, int *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' )
227435 else if( aBuf[nBuf-2]!='s' ){
227451 char *aBuf;
227455 aBuf = p->aBuf;
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]
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);
227486 if( aBuf[nBuf-1]=='e' ){
227487 if( fts5Porter_MGt1(aBuf, nBuf-1)
227488 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
227495 if( nBuf>1 && aBuf[nBuf-1]=='l'
227496 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
227501 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);
227521 sCtx.aBuf = p->aBuf;