mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
#90581 Cyrillic is not autodetected by nsIStringCharsetDetector
r=nhotta sr=waterson
This commit is contained in:
parent
fcbaffa391
commit
cbd97d1ef0
@ -168,6 +168,7 @@ NS_IMETHODIMP nsCyrXPCOMStringDetector::DoIt(const char* aBuf, PRUint32 aLen,
|
||||
const char** oCharset, nsDetectionConfident &oConf)
|
||||
{
|
||||
mResult = nsnull;
|
||||
mDone = PR_FALSE;
|
||||
this->HandleData(aBuf, aLen);
|
||||
this->DataEnd();
|
||||
*oCharset=mResult;
|
||||
|
@ -89,6 +89,7 @@ class nsCyrillicDetector
|
||||
virtual void DataEnd();
|
||||
protected:
|
||||
virtual void Report(const char* aCharset) = 0;
|
||||
PRBool mDone;
|
||||
|
||||
private:
|
||||
PRUint8 mItems;
|
||||
@ -96,7 +97,6 @@ class nsCyrillicDetector
|
||||
const char** mCharsets;
|
||||
PRUint32 mProb[NUM_CYR_CHARSET];
|
||||
PRUint8 mLastCls[NUM_CYR_CHARSET];
|
||||
PRBool mDone;
|
||||
};
|
||||
|
||||
class nsCyrXPCOMDetector :
|
||||
|
Loading…
Reference in New Issue
Block a user