۝Rc@sddlZddlmZddlmZddlmZdZdZdZ d Z d Z d Z e dZ d efd YZdS(iNi(t constants(t CharSetProber(twrap_ordi@igffffff?g?iitSingleByteCharSetProbercBs;eZeddZdZdZdZdZRS(cCs6tj|||_||_||_|jdS(N(Rt__init__t_mModelt _mReversedt _mNameProbertreset(tselftmodeltreversedt nameProber((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR-s     cCsEtj|d|_dgt|_d|_d|_d|_dS(Nii(RRt _mLastOrdertNUMBER_OF_SEQ_CATt _mSeqCounterst _mTotalSeqst _mTotalChart _mFreqChar(R ((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR6s     cCs%|jr|jjS|jdSdS(Nt charsetName(Rtget_charset_nameR(R ((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR@s  cCs|jds|j|}nt|}|s;|jSx|D]}|jdt|}|tkr}|jd7_n|tkr|jd7_|j tkr|j d7_ |j s|j t|}|jd|}n"|t|j }|jd|}|j |cd7s