| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/chardet/__pycache__/ |
Upload File : |
+
��3i : � �� � R t ^ RIt^ RIt^ RIt^ RIHtHtHt ^RIH t ^RI
Ht ^RIH
t
HtHt ^RIHt ^RIHt ^RIHt ^R IHt ^R
IHt ^RIHt ^RIHt ! R
R4 tR# )a
Module containing the UniversalDetector detector class, which is the primary
class a user of ``chardet`` should use.
:author: Mark Pilgrim (initial port to Python)
:author: Shy Shalom (original C code)
:author: Dan Blanchard (major refactoring for 3.0)
:author: Ian Cordasco
N)�List�Optional�Union)�CharSetGroupProber)�
CharSetProber)�
InputState�LanguageFilter�ProbingState)�EscCharSetProber)�Latin1Prober)�MacRomanProber)�MBCSGroupProber��
ResultDict)�SBCSGroupProber)�
UTF1632Proberc � a � ] tR t^8t o RtRt]P ! R4 t]P ! R4 t ]P ! R4 t
RRRR R
RRR
RRRRRRRR/tRRRRRRRRRRRRRR/t]
P R3V 3R lR! llt]V 3R" lR# l4 t]V 3R$ lR% l4 t]V 3R& lR' l4 tV 3R( lR) ltV 3R* lR+ ltV 3R, lR- ltR.tV tR/# )0�UniversalDetectoraI
The ``UniversalDetector`` class underlies the ``chardet.detect`` function
and coordinates all of the different charset probers.
To get a ``dict`` containing an encoding and its confidence, you can simply
run:
.. code::
u = UniversalDetector()
u.feed(some_bytes)
u.close()
detected = u.result
g�������?s [�-�]s (|~{)s [�-�]z
iso-8859-1zWindows-1252z
iso-8859-2zWindows-1250z
iso-8859-5zWindows-1251z
iso-8859-6zWindows-1256z
iso-8859-7zWindows-1253z
iso-8859-8zWindows-1255z
iso-8859-9zWindows-1254ziso-8859-13zWindows-1257�asciiztis-620zISO-8859-11�gb2312�GB18030zeuc-kr�CP949zutf-16le�UTF-16Fc �* <� V ^8� d QhRS[ RS[RR/# )� �lang_filter�should_rename_legacy�returnN)r �bool)�format�
__classdict__s "��;/usr/lib/python3/dist-packages/chardet/universaldetector.py�__annotate__�UniversalDetector.__annotate__d s) �� � � �#�� #��
� � c �" � R V n R V n . V n RR RRRR /V n RV n RV n \ P V n RV n Wn
\ P ! \ 4 V n RV n W n V P# 4 R # )N�encoding�
confidence� �languageFr$ )�_esc_charset_prober�_utf1632_prober�_charset_probers�result�done� _got_datar �
PURE_ASCII�_input_state�
_last_charr �logging� getLogger�__name__�logger�_has_win_bytesr �reset)�selfr r s &&&r! �__init__�UniversalDetector.__init__d s� � �
@D�� �8<���57������#���#
���
�� ����&�1�1������&���'�'��1���#���$8�!��
�
�r$ c � <� V ^8� d QhRS[ /# �r r )�int)r r s "�r! r"