AlkantarClanX12

Your IP : 18.226.82.90


Current Path : /opt/alt/python37/lib64/python3.7/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/encodings/__pycache__/utf_32.cpython-37.pyc

B

� f	�@sxdZddlZddlZejZddd�ZGdd�dej�ZGdd	�d	ej�ZGd
d�dej	�Z	Gdd
�d
ej
�Z
dd�ZdS)z
Python 'utf-32' Codec
�N�strictcCst�||d�S)NT)�codecs�
utf_32_decode)�input�errors�r�5/opt/alt/python37/lib64/python3.7/encodings/utf_32.py�decode
sr	c@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�IncrementalEncoderrcCstj�||�d|_dS)N)rr
�__init__�encoder)�selfrrrrrszIncrementalEncoder.__init__FcCsN|jdkr<t�||j�d}tjdkr0tj|_ntj|_|S|�||j�dS)Nr�little)rr�
utf_32_encoder�sys�	byteorder�utf_32_le_encode�utf_32_be_encode)r
r�final�resultrrr�encodes


zIncrementalEncoder.encodecCstj�|�d|_dS)N)rr
�resetr)r
rrrrszIncrementalEncoder.resetcCs|jdkrdSdS)N�r)r)r
rrr�getstate szIncrementalEncoder.getstatecCs,|rd|_ntjdkr tj|_ntj|_dS)Nr)rrrrrr)r
�staterrr�setstate's


zIncrementalEncoder.setstateN)r)F)�__name__�
__module__�__qualname__rrrrrrrrrr

s



r
c@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�IncrementalDecoderrcCstj�||�d|_dS)N)r�BufferedIncrementalDecoderr�decoder)r
rrrrr1szIncrementalDecoder.__init__cCsl|jdkr\t�||d|�\}}}|dkr2tj|_n"|dkrDtj|_n|dkrTtd��||fS|�||j|�S)Nr�����z%UTF-32 stream does not start with BOM)r!r�utf_32_ex_decode�utf_32_le_decode�utf_32_be_decode�UnicodeErrorr)r
rrr�output�consumedrrrr�_buffer_decode5s


z!IncrementalDecoder._buffer_decodecCstj�|�d|_dS)N)rr rr!)r
rrrrBszIncrementalDecoder.resetcCsDtj�|�d}|jdkr"|dfSttjdk|jtjkk�}||fS)Nrr�big)rr rr!�intrrr')r
rZaddstaterrrrFs

zIncrementalDecoder.getstatecCsdtj�||�|d}|dkr8tjdkr.tjntj|_n(|dkrZtjdkrPtjntj|_nd|_dS)Nr#rr,)rr rrrr'r&r!)r
rrrrrTs

zIncrementalDecoder.setstateN)r)rrrrr+rrrrrrrr0s


rc@s(eZdZd	dd�Zdd�Zd
dd�ZdS)�StreamWriterrcCsd|_tj�|||�dS)N)rrr.r)r
�streamrrrrrdszStreamWriter.__init__cCstj�|�d|_dS)N)rr.rr)r
rrrrhszStreamWriter.resetcCsF|jdkr6t�||�}tjdkr*tj|_ntj|_|S|�||�SdS)Nr)rrrrrrr)r
rrrrrrrls


zStreamWriter.encodeN)r)r)rrrrrrrrrrr.cs
r.c@seZdZdd�Zddd�ZdS)�StreamReadercCs.tj�|�y|`Wntk
r(YnXdS)N)rr0rr	�AttributeError)r
rrrrys
zStreamReader.resetrcCsRt�||dd�\}}}|dkr(tj|_n"|dkr:tj|_n|dkrJtd��||fS)NrFr"r#r$z%UTF-32 stream does not start with BOM)rr%r&r	r'r()r
rr�objectr*rrrrr	�s

zStreamReader.decodeN)r)rrrrr	rrrrr0wsr0c	Cstjdttttttd�S)Nzutf-32)�namerr	�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r�	CodecInforr	r
rr0r.rrrr�getregentry�sr9)r)�__doc__rrrrr	r
r rr.r0r9rrrr�<module>s
#3