
    |ZiQ                     4    S r SSKJrJr  SrS\S\S-  4S jrg)zStage 1c: Pure ASCII detection (with null-separator tolerance).

Note: ``from __future__ import annotations`` is intentionally omitted because
this module is compiled with mypyc, which does not support PEP 563 string
annotations.
    )ASCII_TEXT_BYTESDetectionResultg?datareturnNc                     U (       d  gU R                  S[        5      nU(       d  [        SSSS9$ UR                  SS5      (       a  g[	        U5      [	        U 5      -  nU[
        ::  a  [        SSSS9$ g)aT  Return an ASCII result if all bytes are printable ASCII plus common whitespace.

Tolerates sparse null bytes (``\x00``) up to ``_MAX_NULL_FRACTION`` of
the data, returning confidence 0.99 instead of 1.0 to distinguish from
pure ASCII.

:param data: The raw byte data to examine.
:returns: A :class:`DetectionResult` for ASCII, or ``None``.
Nasciig      ?)encoding
confidencelanguage        gGz?)	translater   r   replacelen_MAX_NULL_FRACTION)r   	remaindernull_fractions      p/var/www/eduai.edurigo.com/question_generate/ques_gen_env/lib/python3.13/site-packages/chardet/pipeline/ascii.pydetect_asciir      sp     t%56IC$OO#&&	NSY.M**D4PPr   )__doc__chardet.pipeliner   r   r   bytesr    r   r   <module>r      s/    ?  u 4!7 r   