Your IP : 3.149.24.49


Current Path : /opt/alt/python311/lib64/python3.11/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/encodings/__pycache__/utf_32.cpython-311.opt-1.pyc

�

c��f	����dZddlZddlZejZdd�ZGd�dej��ZGd�dej��ZGd	�d
ej	��Z	Gd�dej
��Z
d
�ZdS)z
Python 'utf-32' Codec
�N�strictc�.�tj||d��S)NT)�codecs�
utf_32_decode)�input�errorss  �7/opt/alt/python311/lib64/python3.11/encodings/utf_32.py�decoder

s�����v�t�4�4�4�c�0�eZdZd	d�Zd
d�Zd�Zd�Zd�ZdS)�IncrementalEncoderrc�T�tj�||��d|_dS�N)rr
�__init__�encoder��selfrs  r	rzIncrementalEncoder.__init__s&���!�*�*�4��8�8�8�����rFc��|j�Utj||j��d}tjdkrtj|_ntj|_|S|�||j��dS)Nr�little)rr�
utf_32_encoder�sys�	byteorder�utf_32_le_encode�utf_32_be_encode)rr�final�results    r	�encodezIncrementalEncoder.encodesf���<���)�%���=�=�a�@�F��}��(�(�%�6����%�6����M��|�|�E�4�;�/�/��2�2rc�R�tj�|��d|_dSr)rr
�resetr�rs r	rzIncrementalEncoder.resets$���!�'�'��-�-�-�����rc��|j�dndS)N�r)rr s r	�getstatezIncrementalEncoder.getstate s��
�\�)���q�1rc��|r	d|_dStjdkrtj|_dStj|_dS�Nr)rrrrrr�r�states  r	�setstatezIncrementalEncoder.setstate's>���	7��D�L�L�L��}��(�(�%�6�����%�6����rN�r)F)�__name__�
__module__�__qualname__rrrr#r(�rr	r
r

si����������3�3�3�3����2�2�2�7�7�7�7�7rr
c�.�eZdZdd�Zd�Zd�Zd�Zd�ZdS)	�IncrementalDecoderrc�T�tj�||��d|_dSr)r�BufferedIncrementalDecoderr�decoderrs  r	rzIncrementalDecoder.__init__1s&���)�2�2�4��@�@�@�����rc��|j�dtj||d|��\}}}|dkrtj|_n-|dkrtj|_n|dkrtd���||fS|�||j|��S)Nr������%UTF-32 stream does not start with BOM)r2r�utf_32_ex_decode�utf_32_le_decode�utf_32_be_decode�UnicodeErrorr)rrrr�output�consumedrs       r	�_buffer_decodez!IncrementalDecoder._buffer_decode5s����<���'��v�q�%�@�@�
*�V�X�y��B���%�6�����a���%�6�����Q���"�#J�K�K�K��H�%�%��|�|�E�4�;��6�6�6rc�R�tj�|��d|_dSr)rr1rr2r s r	rzIncrementalDecoder.resetBs$���)�/�/��5�5�5�����rc���tj�|��d}|j�|dfSt	t
jdk|jtjuk��}||fS)Nrr"�big)rr1r#r2�intrrr:)rr'�addstates   r	r#zIncrementalDecoder.getstateFsk���1�:�:�4�@�@��C��
�<���1�:����
��.����(?�?�A�B�B���x� � rc�8�tj�||��|d}|dkr/tjdkrtjntj|_dS|dkr/tjdkrtjntj|_dSd|_dS)Nr5rrA)rr1r(rrr:r9r2r&s  r	r(zIncrementalDecoder.setstateTs����)�2�2�4��?�?�?��a����A�:�:�"�}��5�5�#�3�3�!'�!8�
�L�L�L��a�Z�Z�"�}��5�5�#�3�3�!'�!8�
�L�L�L� �D�L�L�LrNr))r*r+r,rr>rr#r(r-rr	r/r/0sd����������7�7�7����!�!�!�
 �
 �
 �
 �
 rr/c�$�eZdZdd�Zd�Zdd�ZdS)�StreamWriterrc�V�d|_tj�|||��dSr)rrrFr)r�streamrs   r	rzStreamWriter.__init__ds*�������$�$�T�6�6�:�:�:�:�:rc�R�tj�|��d|_dSr)rrFrrr s r	rzStreamWriter.reseths$����!�!�$�'�'�'�����rc���|j�Jtj||��}tjdkrtj|_ntj|_|S|�||��Sr%)rrrrrrr)rrrrs    r	rzStreamWriter.encodelsX���<���)�%��8�8�F��}��(�(�%�6����%�6����M��<�<��v�.�.�.rNr))r*r+r,rrrr-rr	rFrFcsK������;�;�;�;����	/�	/�	/�	/�	/�	/rrFc��eZdZd�Zdd�ZdS)�StreamReaderc�l�tj�|��	|`dS#t$rYdSwxYwr)rrLrr
�AttributeErrorr s r	rzStreamReader.resetysI����!�!�$�'�'�'�	�������	�	�	��D�D�	���s�%�
3�3rc���tj||dd��\}}}|dkrtj|_n-|dkrtj|_n|dkrtd���||fS)NrFr4r5r6r7)rr8r9r
r:r;)rrr�objectr=rs      r	r
zStreamReader.decode�sn���#�E�6�1�e�<�<�	&���9���?�?� �1�D�K�K�
�!�^�^� �1�D�K�K�
�q�[�[��F�G�G�G���!�!rNr))r*r+r,rr
r-rr	rLrLws7���������	"�	"�	"�	"�	"�	"rrLc	�t�tjdtttt
tt���S)Nzutf-32)�namerr
�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r�	CodecInforr
r
r/rLrFr-rr	�getregentryrX�s1����
���-�-�!�!����rr))�__doc__rrrrr
r
r1r/rFrLrXr-rr	�<module>rZs������������
�	��5�5�5�5�!7�!7�!7�!7�!7��2�!7�!7�!7�F1 �1 �1 �1 �1 ��:�1 �1 �1 �f/�/�/�/�/�6�&�/�/�/�("�"�"�"�"�6�&�"�"�"�,	�	�	�	�	r

?>