printf("It's %s- byte %d (%x) Test %d. The only left\n", mVerifier[mItemIdx[0]]->charset, i+mDbgLen, i+mDbgLen, mDbgTest);
PRINTF("It's %s- byte %d (%x) Test %d. The only left\n", mVerifier[mItemIdx[0]]->charset, i+mDbgLen, i+mDbgLen, mDbgTest);
PRBool nsPSMDetector::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; )     {#ifdef ftang_TRACE_STATE       if(  mVerifier[mItemIdx[j]] == & TRACE_VERIFIER )       {           printf("%d = %d\n", i + mDbgLen, mState[j]);       }#endif#ifdef DETECTOR_DEBUG        mDbgTest++;#endif         st = GETNEXTSTATE( mVerifier[mItemIdx[j]], b, mState[j] );        if(eItsMe == st)         {#ifdef DETECTOR_DEBUG            printf("It's %s- byte %d(%x) test %d\n",                     mVerifier[mItemIdx[j]]->charset,                    i+mDbgLen,                    i+mDbgLen,                    mDbgTest                  );#endif            Report( mVerifier[mItemIdx[j]]->charset);            mDone = PR_TRUE;            return mDone;        } else if (eError == st)         {#ifdef DETECTOR_DEBUG            printf("It's NOT %s- byte %d(%x)\n",                     mVerifier[mItemIdx[j]]->charset,                    i+mDbgLen,                    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 (%x) Test %d. The only left\n",                        mVerifier[mItemIdx[0]]->charset,                       i+mDbgLen,                       i+mDbgLen,                       mDbgTest);#endif             Report( mVerifier[mItemIdx[0]]->charset);         }         mDone = PR_TRUE;         return mDone;     } else {        // If the only charset left is UCS2LE/UCS2BE and another, report the other        PRInt32 nonUCS2Num=0;        PRInt32 nonUCS2Idx=0;        for(j = 0; j < mItems; j++) {             if(((&nsUCS2BEVerifier) != mVerifier[mItemIdx[j]]) &&                ((&nsUCS2LEVerifier) != mVerifier[mItemIdx[j]])) {                  nonUCS2Num++;                  nonUCS2Idx = j;             }        }        if(1 == nonUCS2Num) {#ifdef DETECTOR_DEBUG             printf("It's %s- byte %d (%x) Test %d. The only left except UCS2LE/BE\n",                        mVerifier[mItemIdx[nonUCS2Idx]]->charset,                       i+mDbgLen,                       i+mDbgLen,                       mDbgTest);#endif            Report( mVerifier[mItemIdx[nonUCS2Idx]]->charset);            mDone = PR_TRUE;            return mDone;        }     }  }  if(mRunSampler)     Sample(aBuf, aLen);#ifdef DETECTOR_DEBUG  mDbgLen += aLen;#endif  return PR_FALSE;}