• Home
  • Raw
  • Download

Lines Matching refs:aBuf

60584     u8 aBuf[WAL_HDRSIZE];         /* Buffer to load WAL header into */
60597 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
60607 magic = sqlite3Get4byte(&aBuf[0]);
60608 szPage = sqlite3Get4byte(&aBuf[8]);
60618 pWal->nCkpt = sqlite3Get4byte(&aBuf[12]);
60619 memcpy(&pWal->hdr.aSalt, &aBuf[16], 8);
60623 aBuf, WAL_HDRSIZE-2*4, 0, pWal->hdr.aFrameCksum
60625 if( pWal->hdr.aFrameCksum[0]!=sqlite3Get4byte(&aBuf[24])
60626 || pWal->hdr.aFrameCksum[1]!=sqlite3Get4byte(&aBuf[28])
60633 version = sqlite3Get4byte(&aBuf[4]);
61817 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */
61894 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
61898 if( memcmp(&pWal->hdr.aSalt, &aBuf[16], 8) ){
62856 u8 *aBuf; /* Buffer to load data from wal file into */
62861 aBuf = sqlite3_malloc(szPage + WAL_FRAME_HDRSIZE);
62862 if( aBuf==0 ) return SQLITE_NOMEM_BKPT;
62875 rc = sqlite3OsRead(pWal->pWalFd, aBuf, sizeof(u32)*2, iCksumOff);
62876 pWal->hdr.aFrameCksum[0] = sqlite3Get4byte(aBuf);
62877 pWal->hdr.aFrameCksum[1] = sqlite3Get4byte(&aBuf[sizeof(u32)]);
62883 rc = sqlite3OsRead(pWal->pWalFd, aBuf, szPage+WAL_FRAME_HDRSIZE, iOff);
62886 iPgno = sqlite3Get4byte(aBuf);
62887 nDbSize = sqlite3Get4byte(&aBuf[4]);
62889 walEncodeFrame(pWal, iPgno, nDbSize, &aBuf[WAL_FRAME_HDRSIZE], aFrame);
62894 sqlite3_free(aBuf);
196251 u8 *aBuf;
198887 p->aBuf = rbuMalloc(p, p->pgsz);
198970 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
198974 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
200068 sqlite3_free(p->aBuf);
200381 static u32 rbuGetU32(u8 *aBuf){
200382 return ((u32)aBuf[0] << 24)
200383 + ((u32)aBuf[1] << 16)
200384 + ((u32)aBuf[2] << 8)
200385 + ((u32)aBuf[3]);
200392 static void rbuPutU32(u8 *aBuf, u32 iVal){
200393 aBuf[0] = (iVal >> 24) & 0xFF;
200394 aBuf[1] = (iVal >> 16) & 0xFF;
200395 aBuf[2] = (iVal >> 8) & 0xFF;
200396 aBuf[3] = (iVal >> 0) & 0xFF;
200399 static void rbuPutU16(u8 *aBuf, u16 iVal){
200400 aBuf[0] = (iVal >> 8) & 0xFF;
200401 aBuf[1] = (iVal >> 0) & 0xFF;
200442 u8 *aBuf = (u8*)zBuf;
200443 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0;
200444 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */
200445 rbuPutU32(&aBuf[36], 0); /* number of free pages */
200446 rbuPutU32(&aBuf[32], 0); /* first page on free list trunk */
200447 rbuPutU32(&aBuf[28], 1); /* size of db file in pages */
200448 rbuPutU32(&aBuf[24], pRbu->pRbuFd->iCookie+1); /* Change counter */
200451 memset(&aBuf[100], 0, iAmt-100);
200452 rbuPutU16(&aBuf[105], iAmt & 0xFFFF);
200453 aBuf[100] = 0x0D;
202495 u8 *aBuf; /* Pointer to changeset buffer */
202496 int nBuf; /* Size of buffer aBuf */
202497 int nAlloc; /* Size of allocation containing aBuf */
202734 ** Write a varint with value iVal into the buffer at aBuf. Return the
202737 static int sessionVarintPut(u8 *aBuf, int iVal){
202738 return putVarint32(aBuf, iVal);
202749 ** Read a varint value from aBuf[] into *piVal. Return the number of
202752 static int sessionVarintGet(u8 *aBuf, int *piVal){
202753 return getVarint32(aBuf, *piVal);
202771 ** Write a 64-bit big-endian integer value to the buffer aBuf[].
202773 static void sessionPutI64(u8 *aBuf, sqlite3_int64 i){
202774 aBuf[0] = (i>>56) & 0xFF;
202775 aBuf[1] = (i>>48) & 0xFF;
202776 aBuf[2] = (i>>40) & 0xFF;
202777 aBuf[3] = (i>>32) & 0xFF;
202778 aBuf[4] = (i>>24) & 0xFF;
202779 aBuf[5] = (i>>16) & 0xFF;
202780 aBuf[6] = (i>> 8) & 0xFF;
202781 aBuf[7] = (i>> 0) & 0xFF;
202789 ** buffer aBuf. *pnWrite is set to the number of bytes written before
202790 ** returning. Or, if aBuf is NULL, the only thing this function does is
202798 u8 *aBuf, /* If non-NULL, write serialized value here */
202808 if( aBuf ) aBuf[0] = eType;
202817 if( aBuf ){
202830 sessionPutI64(&aBuf[1], i);
202850 if( aBuf ){
202851 sessionVarintPut(&aBuf[1], n);
202852 if( n ) memcpy(&aBuf[nVarint + 1], z, n);
202861 if( aBuf ) aBuf[0] = '\0';
204276 aNew = (u8 *)sqlite3_realloc64(p->aBuf, nNew);
204280 p->aBuf = aNew;
204302 rc = sessionSerializeValue(&p->aBuf[p->nBuf], pVal, 0);
204319 p->aBuf[p->nBuf++] = v;
204332 p->nBuf += sessionVarintPut(&p->aBuf[p->nBuf], v);
204350 memcpy(&p->aBuf[p->nBuf], aBlob, nBlob);
204370 memcpy(&p->aBuf[p->nBuf], zStr, nStr);
204388 char aBuf[24];
204389 sqlite3_snprintf(sizeof(aBuf)-1, aBuf, "%d", iVal);
204390 sessionAppendStr(p, aBuf, pRc);
204409 char *zOut = (char *)&p->aBuf[p->nBuf];
204417 p->nBuf = (int)((u8 *)zOut - p->aBuf);
204438 u8 aBuf[8];
204445 sessionPutI64(aBuf, i);
204446 sessionAppendBlob(p, aBuf, 8, pRc);
204576 sessionAppendBlob(pBuf, buf2.aBuf, buf2.nBuf, &rc);
204578 sqlite3_free(buf2.aBuf);
204681 zSql = (char*)buf.aBuf;
204881 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204900 *ppChangeset = buf.aBuf;
204901 buf.aBuf = 0;
204903 rc = xOutput(pOut, (void*)buf.aBuf, buf.nBuf);
204907 sqlite3_free(buf.aBuf);
205095 memmove(pIn->buf.aBuf, &pIn->buf.aBuf[pIn->iNext], nMove);
205118 rc = pIn->xInput(pIn->pIn, &pIn->buf.aBuf[pIn->buf.nBuf], &nNew);
205126 pIn->aData = pIn->buf.aBuf;
205387 memset(p->tblhdr.aBuf, 0, iPK);
205388 memcpy(&p->tblhdr.aBuf[iPK], &p->in.aData[p->in.iNext], nCopy);
205392 p->apValue = (sqlite3_value**)p->tblhdr.aBuf;
205705 sqlite3_free(p->tblhdr.aBuf);
205706 sqlite3_free(p->in.buf.aBuf);
205768 abPK = sPK.aBuf;
205845 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205854 *ppInverted = sOut.aBuf;
205855 sOut.aBuf = 0;
205857 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
205861 sqlite3_free(sOut.aBuf);
205863 sqlite3_free(sPK.aBuf);
205905 sqlite3_free(sInput.buf.aBuf);
205990 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pDelete, 0);
205992 sqlite3_free(buf.aBuf);
206086 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pUpdate, 0);
206088 sqlite3_free(buf.aBuf);
206149 rc = sqlite3_prepare_v2(db, (char *)buf.aBuf, buf.nBuf, &p->pInsert, 0);
206151 sqlite3_free(buf.aBuf);
206695 &pIter2, 0, 0, cons.nBuf, cons.aBuf, pApply->bInvertConstraints
206705 pIter2->apValue = (sqlite3_value**)pIter2->tblhdr.aBuf;
206717 sqlite3_free(cons.aBuf);
206916 *ppRebase = (void*)sApply.rebase.aBuf;
206918 sApply.rebase.aBuf = 0;
206925 sqlite3_free((char*)sApply.constraints.aBuf);
206926 sqlite3_free((char*)sApply.rebase.aBuf);
207386 rc = xOutput(pOut, buf.aBuf, buf.nBuf);
207395 if( buf.nBuf>0 ) rc = xOutput(pOut, buf.aBuf, buf.nBuf);
207397 *ppOut = buf.aBuf;
207399 buf.aBuf = 0;
207402 sqlite3_free(buf.aBuf);
207572 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
207587 pBuf->nBuf = pOut-pBuf->aBuf;
207621 u8 *pOut = &pBuf->aBuf[pBuf->nBuf];
207659 pBuf->nBuf = (pOut - pBuf->aBuf);
207782 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207789 sqlite3_free(sOut.aBuf);
207796 rc = xOutput(pOut, sOut.aBuf, sOut.nBuf);
207799 *ppOut = (void*)sOut.aBuf;
207801 sOut.aBuf = 0;
207804 sqlite3_free(sOut.aBuf);
211580 static void sqlite3Fts5Put32(u8 *aBuf, int iVal){
211581 aBuf[0] = (iVal>>24) & 0x00FF;
211582 aBuf[1] = (iVal>>16) & 0x00FF;
211583 aBuf[2] = (iVal>> 8) & 0x00FF;
211584 aBuf[3] = (iVal>> 0) & 0x00FF;
211587 static int sqlite3Fts5Get32(const u8 *aBuf){
211588 return (int)((((u32)aBuf[0])<<24) + (aBuf[1]<<16) + (aBuf[2]<<8) + aBuf[3]);
220823 ** Buffer aBuf[] contains a list of varints, all small enough to fit
220827 static int fts5PoslistPrefix(const u8 *aBuf, int nMax){
220830 ret = fts5GetVarint32(aBuf, dummy);
220833 int i = fts5GetVarint32(&aBuf[ret], dummy);
221442 Fts5Buffer *aBuf;
221455 aBuf = (Fts5Buffer*)fts5IdxMalloc(p, sizeof(Fts5Buffer)*nBuf);
221458 if( aBuf && pStruct ){
221491 if( aBuf[i].n==0 ){
221492 fts5BufferSwap(&doclist, &aBuf[i]);
221495 xMerge(p, &doclist, &aBuf[i]);
221496 fts5BufferZero(&aBuf[i]);
221508 xMerge(p, &doclist, &aBuf[i]);
221510 fts5BufferFree(&aBuf[i]);
221525 sqlite3_free(aBuf);
227562 char aBuf[FTS5_PORTER_MAX_TOKEN + 64];
227621 char *aBuf;
227634 static int fts5PorterApply(char *aBuf, int *pnBuf, PorterRule *aRule){
227643 if( 0==memcmp(&aBuf[nBuf - p->nSuffix], p->zSuffix, p->nSuffix) ) break;
227648 if( p->xCond==0 || p->xCond(aBuf, nStem) ){
227649 memcpy(&aBuf[nStem], p->zOutput, p->nOutput);
227747 static int fts5PorterStep4(char *aBuf, int *pnBuf){
227750 switch( aBuf[nBuf-2] ){
227753 if( nBuf>2 && 0==memcmp("al", &aBuf[nBuf-2], 2) ){
227754 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227761 if( nBuf>4 && 0==memcmp("ance", &aBuf[nBuf-4], 4) ){
227762 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227765 }else if( nBuf>4 && 0==memcmp("ence", &aBuf[nBuf-4], 4) ){
227766 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227773 if( nBuf>2 && 0==memcmp("er", &aBuf[nBuf-2], 2) ){
227774 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227781 if( nBuf>2 && 0==memcmp("ic", &aBuf[nBuf-2], 2) ){
227782 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227789 if( nBuf>4 && 0==memcmp("able", &aBuf[nBuf-4], 4) ){
227790 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227793 }else if( nBuf>4 && 0==memcmp("ible", &aBuf[nBuf-4], 4) ){
227794 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227801 if( nBuf>3 && 0==memcmp("ant", &aBuf[nBuf-3], 3) ){
227802 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227805 }else if( nBuf>5 && 0==memcmp("ement", &aBuf[nBuf-5], 5) ){
227806 if( fts5Porter_MGt1(aBuf, nBuf-5) ){
227809 }else if( nBuf>4 && 0==memcmp("ment", &aBuf[nBuf-4], 4) ){
227810 if( fts5Porter_MGt1(aBuf, nBuf-4) ){
227813 }else if( nBuf>3 && 0==memcmp("ent", &aBuf[nBuf-3], 3) ){
227814 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227821 if( nBuf>3 && 0==memcmp("ion", &aBuf[nBuf-3], 3) ){
227822 if( fts5Porter_MGt1_and_S_or_T(aBuf, nBuf-3) ){
227825 }else if( nBuf>2 && 0==memcmp("ou", &aBuf[nBuf-2], 2) ){
227826 if( fts5Porter_MGt1(aBuf, nBuf-2) ){
227833 if( nBuf>3 && 0==memcmp("ism", &aBuf[nBuf-3], 3) ){
227834 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227841 if( nBuf>3 && 0==memcmp("ate", &aBuf[nBuf-3], 3) ){
227842 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227845 }else if( nBuf>3 && 0==memcmp("iti", &aBuf[nBuf-3], 3) ){
227846 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227853 if( nBuf>3 && 0==memcmp("ous", &aBuf[nBuf-3], 3) ){
227854 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227861 if( nBuf>3 && 0==memcmp("ive", &aBuf[nBuf-3], 3) ){
227862 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227869 if( nBuf>3 && 0==memcmp("ize", &aBuf[nBuf-3], 3) ){
227870 if( fts5Porter_MGt1(aBuf, nBuf-3) ){
227881 static int fts5PorterStep1B2(char *aBuf, int *pnBuf){
227884 switch( aBuf[nBuf-2] ){
227887 if( nBuf>2 && 0==memcmp("at", &aBuf[nBuf-2], 2) ){
227888 memcpy(&aBuf[nBuf-2], "ate", 3);
227895 if( nBuf>2 && 0==memcmp("bl", &aBuf[nBuf-2], 2) ){
227896 memcpy(&aBuf[nBuf-2], "ble", 3);
227903 if( nBuf>2 && 0==memcmp("iz", &aBuf[nBuf-2], 2) ){
227904 memcpy(&aBuf[nBuf-2], "ize", 3);
227915 static int fts5PorterStep2(char *aBuf, int *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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
228062 static int fts5PorterStep3(char *aBuf, int *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);
228077 if( nBuf>4 && 0==memcmp("ness", &aBuf[nBuf-4], 4) ){
228078 if( fts5Porter_MGt0(aBuf, 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);
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);
228099 if( nBuf>3 && 0==memcmp("ful", &aBuf[nBuf-3], 3) ){
228100 if( fts5Porter_MGt0(aBuf, nBuf-3) ){
228107 if( nBuf>5 && 0==memcmp("ative", &aBuf[nBuf-5], 5) ){
228108 if( fts5Porter_MGt0(aBuf, 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);
228128 static int fts5PorterStep1B(char *aBuf, int *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);
228139 }else if( nBuf>2 && 0==memcmp("ed", &aBuf[nBuf-2], 2) ){
228140 if( fts5Porter_Vowel(aBuf, nBuf-2) ){
228148 if( nBuf>3 && 0==memcmp("ing", &aBuf[nBuf-3], 3) ){
228149 if( fts5Porter_Vowel(aBuf, nBuf-3) ){
228165 static void fts5PorterStep1A(char *aBuf, int *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' )
228177 else if( aBuf[nBuf-2]!='s' ){
228193 char *aBuf;
228197 aBuf = p->aBuf;
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]
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);
228228 if( aBuf[nBuf-1]=='e' ){
228229 if( fts5Porter_MGt1(aBuf, nBuf-1)
228230 || (fts5Porter_MEq1(aBuf, nBuf-1) && !fts5Porter_Ostar(aBuf, nBuf-1))
228237 if( nBuf>1 && aBuf[nBuf-1]=='l'
228238 && aBuf[nBuf-2]=='l' && fts5Porter_MGt1(aBuf, nBuf-1)
228243 return p->xToken(p->pCtx, tflags, aBuf, nBuf, iStart, iEnd);
228263 sCtx.aBuf = p->aBuf;