| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/chardet/ |
Upload File : |
ó
©i:Ec @ s d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l
Z
d d l Z d d l
m Z m
Z
m Z d e f d YZ d S(
iÿÿÿÿ( t MultiByteCharSetProber( t CodingStateMachine( t SJISDistributionAnalysis( t SJISContextAnalysis( t SJISSMModelN( t eStartt eErrort eItsMet
SJISProberc B s5 e Z d Z d Z d Z d Z d Z RS( c C sB t j | t t | _ t | _ t | _ | j d S( N(
R t __init__R R t
_mCodingSMR t _mDistributionAnalyzerR t _mContextAnalyzert reset( t self( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyR % s
c C s t j | | j j d S( N( R R
R ( R ( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyR
, s
c C s d S( Nt SHIFT_JIS( ( R ( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyt get_charset_name0 s c C sÐ t | } xWt d | D]F} | j j | | } | t k r t j rx t j j | j
d t | d n t j | _
Pq | t k r€ t j | _
Pq | t k r | j j } | d k r| d | j d <| j j | j d | | | j j | j | qb| j j | | d | | d | !| | j j | | d | d !| q q W| | d | j d <| j t j k rÆ| j j rÆ| j t j k rÆt j | _
qÆn | j S( Ni s prober hit error at byte s
i i i ( t lent rangeR
t
next_stateR t constantst _debugt syst stderrt writeR t strt eNotMet _mStateR t eFoundItR t get_current_charlent
_mLastCharR t feedR t get_statet
eDetectingt got_enough_datat get_confidencet SHORTCUT_THRESHOLD( R t aBuft aLent it codingStatet charLen( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyR 3 s2 +*)c C s+ | j j } | j j } t | | S( N( R R# R t max( R t contxtCft distribCf( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyR# R s ( t __name__t
__module__R R
R R R# ( ( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyR $ s
( t mbcharsetproberR t codingstatemachineR t chardistributionR t jpcntxR t mbcssmR R R R R R R ( ( ( s6 /usr/lib/python2.7/dist-packages/chardet/sjisprober.pyt <module> s