AlkantarClanX12

Your IP : 18.117.106.23


Current Path : /opt/alt/python34/lib64/python3.4/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/encodings/__pycache__/utf_32.cpython-34.pyo

�
j f�@s�dZddlZddlZejZddd�ZGdd�dej�ZGdd	�d	ej�ZGd
d�dej	�Z	Gdd
�d
ej
�Z
dd�ZdS)z
Python 'utf-32' Codec
�N�strictcCstj||d�S)NT)�codecs�
utf_32_decode)�input�errors�r�5/opt/alt/python34/lib64/python3.4/encodings/utf_32.py�decode
sr	c@sReZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�IncrementalEncoderrcCs tjj||�d|_dS)N)rr
�__init__�encoder)�selfrrrrrszIncrementalEncoder.__init__FcCsm|jdkrVtj||j�d}tjdkrFtj|_ntj|_|S|j||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.encodecCstjj|�d|_dS)N)rr
�resetr)r
rrrrszIncrementalEncoder.resetcCs|jdkrdSdS)N�r)r)r
rrr�getstate szIncrementalEncoder.getstatecCs@|rd|_n*tjdkr0tj|_ntj|_dS)Nr)rrrrrr)r
�staterrr�setstate's
zIncrementalEncoder.setstateN)�__name__�
__module__�__qualname__rrrrrrrrrr

s

r
c@sOeZdZddd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�IncrementalDecoderrcCs tjj||�d|_dS)N)r�BufferedIncrementalDecoderr�decoder)r
rrrrr1szIncrementalDecoder.__init__cCs�|jdkr�tj||d|�\}}}|dkrKtj|_n6|dkrftj|_n|dkr�td��n||fS|j||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_decodecCstjj|�d|_dS)N)rr rr!)r
rrrrBszIncrementalDecoder.resetcCs`tjj|�d}|jdkr/|dfSttjdk|jtjkk�}||fS)Nrr�big)rr rr!�intrrr')r
rZaddstaterrrrFs
zIncrementalDecoder.getstatecCs�tjj||�|d}|dkrPtjdkrAtjntj|_n<|dkr�tjdkrttjntj|_n	d|_dS)Nr"rr,)rr rrrr'r&r!)r
rrrrrTs
zIncrementalDecoder.setstateN)rrrrr+rrrrrrrr0s

rc@s:eZdZddd�Zdd�Zddd�ZdS)	�StreamWriterrcCs#d|_tjj|||�dS)N)rrr.r)r
�streamrrrrrds	zStreamWriter.__init__cCstjj|�d|_dS)N)rr.rr)r
rrrrhszStreamWriter.resetcCsc|jdkrOtj||�}tjdkr?tj|_ntj|_|S|j||�SdS)Nr)rrrrrrr)r
rrrrrrrlszStreamWriter.encodeN)rrrrrrrrrrr.csr.c@s+eZdZdd�Zddd�ZdS)�StreamReadercCs3tjj|�y
|`Wntk
r.YnXdS)N)rr0rr	�AttributeError)r
rrrrys


zStreamReader.resetrcCs|tj||dd�\}}}|dkr<tj|_n6|dkrWtj|_n|dkrrtd��n||fS)NrFr"r#z%UTF-32 stream does not start with BOMr$)rr%r&r	r'r()r
rr�objectr*rrrrr	�s!zStreamReader.decodeN)rrrrr	rrrrr0wsr0cCs4tjdddtdtdtdtdtdt�S)	N�namezutf-32rr	�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r�	CodecInforr	r
rr0r.rrrr�getregentry�s	r9)�__doc__rrrrr	r
r rr.r0r9rrrr�<module>s	#3