Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/encodings/
Upload File :
Current File : //usr/lib/python2.7/encodings/utf_32.pyc


|_c@sdZddlZddlZejZddZdejfdYZdejfdYZd	ej	fd
YZ	dej
fdYZ
d
ZdS(s
Python 'utf-32' Codec
iNtstrictcCstj||tS(N(tcodecst
utf_32_decodetTrue(tinputterrors((s&/usr/lib/python2.7/encodings/utf_32.pytdecode
stIncrementalEncodercBs;eZddZedZdZdZdZRS(RcCs tjj||d|_dS(N(RRt__init__tNonetencoder(tselfR((s&/usr/lib/python2.7/encodings/utf_32.pyRscCsm|jdkrVtj||jd}tjdkrFtj|_ntj|_|S|j||jdS(Nitlittle(	R
R	Rt
utf_32_encodeRtsyst	byteordertutf_32_le_encodetutf_32_be_encode(RRtfinaltresult((s&/usr/lib/python2.7/encodings/utf_32.pytencodescCstjj|d|_dS(N(RRtresetR	R
(R((s&/usr/lib/python2.7/encodings/utf_32.pyRscCs|jdkrdSdS(Nii(R
R	(R((s&/usr/lib/python2.7/encodings/utf_32.pytgetstate scCs@|rd|_n*tjdkr0tj|_ntj|_dS(NR(R	R
RRRRR(Rtstate((s&/usr/lib/python2.7/encodings/utf_32.pytsetstate's
(t__name__t
__module__RtFalseRRRR(((s&/usr/lib/python2.7/encodings/utf_32.pyR
s

		tIncrementalDecodercBs8eZddZdZdZdZdZRS(RcCs tjj||d|_dS(N(RtBufferedIncrementalDecoderRR	tdecoder(RR((s&/usr/lib/python2.7/encodings/utf_32.pyR1scCs|jdkrtj||d|\}}}|dkrKtj|_n6|dkrftj|_n|dkrtdn||fS|j||j|S(Niiiis%UTF-32 stream does not start with BOM(RR	Rtutf_32_ex_decodetutf_32_le_decodetutf_32_be_decodetUnicodeErrorR(RRRRtoutputtconsumedR((s&/usr/lib/python2.7/encodings/utf_32.pyt_buffer_decode5s!
cCstjj|d|_dS(N(RRRR	R(R((s&/usr/lib/python2.7/encodings/utf_32.pyRBscCs`tjj|d}|jdkr/|dfSttjdk|jtjkk}||fS(Niitbig(	RRRRR	tintRRR!(RRtaddstate((s&/usr/lib/python2.7/encodings/utf_32.pyRFs
cCstjj|||d}|dkrPtjdkrAtjntj|_n<|dkrtjdkrttjntj|_n	d|_dS(NiiR&(	RRRRRR!R RR	(RR((s&/usr/lib/python2.7/encodings/utf_32.pyRTs
(RRRR%RRR(((s&/usr/lib/python2.7/encodings/utf_32.pyR0s
	
		tStreamWritercBs)eZddZdZddZRS(RcCs#d|_tjj|||dS(N(R	R
RR)R(RtstreamR((s&/usr/lib/python2.7/encodings/utf_32.pyRds	cCstjj|d|_dS(N(RR)RR	R
(R((s&/usr/lib/python2.7/encodings/utf_32.pyRhscCsc|jdkrOtj||}tjdkr?tj|_ntj|_|S|j||SdS(NR(R
R	RR
RRRR(RRRR((s&/usr/lib/python2.7/encodings/utf_32.pyRls(RRRRR(((s&/usr/lib/python2.7/encodings/utf_32.pyR)cs	tStreamReadercBseZdZddZRS(cCs2tjj|y
|`Wntk
r-nXdS(N(RR+RRtAttributeError(R((s&/usr/lib/python2.7/encodings/utf_32.pyRys


RcCsytj||dt\}}}|dkr<tj|_n3|dkrWtj|_n|dkrotdn||fS(Niiiis%UTF-32 stream does not start with BOM(RRRR RR!R"(RRRtobjectR$R((s&/usr/lib/python2.7/encodings/utf_32.pyRs!(RRRR(((s&/usr/lib/python2.7/encodings/utf_32.pyR+ws	cCs4tjdddtdtdtdtdtdtS(	Ntnamesutf-32RRtincrementalencodertincrementaldecodertstreamreadertstreamwriter(Rt	CodecInfoRRRRR+R)(((s&/usr/lib/python2.7/encodings/utf_32.pytgetregentrys	(t__doc__RRR
RRRRRR)R+R4(((s&/usr/lib/python2.7/encodings/utf_32.pyt<module>s	#3