Report( mVerifier[mItemIdx[0]]->charset); } mDone = PR_TRUE; return mDone; }
Report( mVerifier[mItemIdx[0]]->charset); } mDone = PR_TRUE; return mDone;
PRBool nsPSMDetectorBase::HandleData(const char* aBuf, PRUint32 aLen){  PRUint32 i,j;  PRUint32 st;  for(i=0; i < aLen; i++)  {     char b = aBuf[i];     for(j = 0; j < mItems; )     {        st = GETNEXTSTATE( mVerifier[mItemIdx[j]], b, mState[j] );        if(eItsMe == st)         {#ifdef DETECTOR_DEBUG            printf("It's %s- byte %d\n", mVerifier[mItemIdx[j]]->charset,i+mDbgLen);#endif            Report( mVerifier[mItemIdx[j]]->charset);            mDone = mDone;            return PR_TRUE;        } else if (eError == st)         {#ifdef DETECTOR_DEBUG            printf("It's NOT %s- byte %d\n", mVerifier[mItemIdx[j]]->charset,i+mDbgLen);#endif            mItems--;            if(j < mItems )            {                mItemIdx[j] = mItemIdx[mItems];                mState[j] = mState[mItems];            }         } else {            mState[j++] = st;        }         if( mItems <= 1)         {            if( 1 == mItems) {#ifdef DETECTOR_DEBUG                printf("It's %s- byte %d. The only left\n", mVerifier[mItemIdx[j]]->charset,i+mDbgLen);#endif                Report( mVerifier[mItemIdx[0]]->charset);            }            mDone = PR_TRUE;            return mDone;        }     }  }#ifdef DETECTOR_DEBUG  mDbgLen += aLen;#endif  return PR_FALSE;}