HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/encodings/__pycache__/punycode.cpython-35.pyc


Fa@s;dZddlZddZddZddZd	d
ZddZd
ZddZddZ	ddZ
ddZddZddZ
ddZGdddejZGdddejZGd d!d!ejZGd"d#d#eejZGd$d%d%eejZd&d'ZdS)(uY Codec for the Punicode encoding, as specified in RFC 3492

Written by Martin v. Löwis.
NcCstt}t}xC|D];}t|dkrG|jt|q|j|qWt|}t||fS)z 3.1 Basic code point segregation)	bytearraysetordappendaddsortedbytes)strbaseextendedcr(/usr/lib/python3.5/encodings/punycode.py	segregate
s		
rcCs7d}x*|D]"}t||kr
|d7}q
W|S)z@Return the length of str, considering only characters below max.r)r)r
maxresr
rrr
selective_lens

rcCskt|}xX|d7}||kr)dS||}||krM|d|fS||kr|d7}qWdS)aReturn a pair (index, pos), indicating the next occurrence of
    char in str. index is the position of the character considering
    only ordinals up to and including char, and pos is the position in
    the full string. index/pos is the starting position in the full
    string.rNr)rr)len)r
charindexposlr
rrrselective_finds

rcCsd}g}d}x|D]}d}}t|}t||}	|	d||}
xWt||||\}}|dkrP|
||7}
|j|
d|}d}
qYW|}qW|S)z3.2 Insertion unsort codingrrrrrr)rrrr)r
rZoldcharresultZoldindexr
rrrZcurlendeltarrrinsertion_unsort0s$



rcCs6d|d|}|dkr"dS|dkr2dS|S)N$rr)jbiasrrrrTFsr#s$abcdefghijklmnopqrstuvwxyz0123456789cCst}d}xwt||}||krH|jt|t|S|jt|||d|||d|}|d7}qWdS)z(3.3 Generalized variable-length integersrrrN)rr#rdigitsr	)Nr"rr!trrrgenerate_generalized_integerNs	
!r'cCsr|r|d}n
|d}|||7}d}x$|dkrW|d}|d7}q4W|d||d}|S)Niri#r&r)rfirstnumcharsZ	divisionsr"rrradapt[s


r-cCsrt}d}xVt|D]H\}}t||}|j|t||dk||d}qWt|S)z3.4 Bias adaptationHrr)r	enumerater'extendr-r	)Zbaselendeltasrr"Zpointsrsrrrgenerate_integersjs	
$r3cCsLt|\}}t||}tt||}|rH|d|S|S)N-)rrr3r)textrrr1rrrpunycode_encodeusr6c
Cs@d}d}d}x'yt||}Wn8tk
rc|dkrQtd|ddfSYnX|d7}d|kodknr|d}nVd|kod	knr|d
}n-|dkrtd||n
|dfSt||}	|||7}||	kr ||fS|d|	}|d7}qWdS)
z(3.3 Generalized variable-length integersrrstrictzincomplete punicode stringNAZ09z Invalid extended code point '%s'r)r
IndexErrorUnicodeErrorr#)
rextposr"errorsrwr!rZdigitr&rrrdecode_generalized_numbers2





rBc	Csd}d
}d}d}x|t|krt||||\}}|dkrX|S||d7}||t|d7}|dkr|dkrtd|td	}|t|d}|d|t|||d}t||dkt|}|}qW|S)z3.2 Insertion unsort codingrrr.rNir7zInvalid character U+%x?r)rrBr>rchrr-)	rrr@rrr"r?Znewposrrrrinsertion_sorts(	(
rEcCst|tr|jd}t|tr9t|}|jd}|dkrrd}t|dj}n?t|d|d|}t||dddj}t|||S)Nasciir4rr)
isinstancer
encode
memoryviewr	rfindupperrE)r5r@rrrrrrpunycode_decodes#rMc@s.eZdZdddZdddZdS)Codecr7cCst|}|t|fS)N)r6r)selfinputr@rrrrrIszCodec.encodecCs;|dkrtd|t||}|t|fS)Nr7replaceignorezUnsupported error handling )r7rQrR)r>rMr)rOrPr@rrrrdecodeszCodec.decodeN)__name__
__module____qualname__rIrSrrrrrNsrNc@seZdZdddZdS)IncrementalEncoderFcCs
t|S)N)r6)rOrPfinalrrrrIszIncrementalEncoder.encodeN)rTrUrVrIrrrrrWsrWc@seZdZdddZdS)IncrementalDecoderFcCs2|jdkr"td|jt||jS)Nr7rQrRzUnsupported error handling )r7rQrR)r@r>rM)rOrPrXrrrrSszIncrementalDecoder.decodeN)rTrUrVrSrrrrrYsrYc@seZdZdS)StreamWriterN)rTrUrVrrrrrZsrZc@seZdZdS)StreamReaderN)rTrUrVrrrrr[sr[cCs@tjdddtjdtjdtdtdtdtS)	NnameZpunycoderIrSincrementalencoderincrementaldecoderstreamwriterstreamreader)	codecs	CodecInforNrIrSrWrYrZr[rrrrgetregentrys	rc)__doc__rarrrrr#r$r'r-r3r6rBrErMrNrWrYrZr[rcrrrr<module>s(