Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/idna/__pycache__/intranges.cpython-312.pyc

22 lines
2.5 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> ij<00><00><><00>dZddlZddlmZmZdeedeedffd<07>Zded edefd
<EFBFBD>Zd edeeeffd <0C>Zd edeedfde fd<0F>Z
y)a 
Given a list of integers, made up of (hopefully) a small number of long runs
of consecutive integers, compute a representation of the form
((start1, end1), (start2, end2) ...). Then answer the question "was x present
in the original list?" in time O(log(# runs)).
<EFBFBD>N)<02>List<73>Tuple<6C>list_<74>return.c<00><00>t|<00>}g}d}tt|<01><00>D]V}|dzt|<01>kr||||dzdz
k(r<01>&||dz|dz}|jt |d|ddz<00><00>|}<03>Xt |<02>S)aRepresent a list of integers as a sequence of ranges:
((start_0, end_0), (start_1, end_1), ...), such that the original
integers are exactly those x such that start_i <= x < end_i for some i.
Ranges are encoded as single integers (start << 32 | end), not as tuples.
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>r)<06>sorted<65>range<67>len<65>append<6E> _encode_range<67>tuple)r<00> sorted_list<73>ranges<65>
last_write<EFBFBD>i<> current_ranges <20>=E:\Project\pygoedge\.venv\Lib\site-packages\idna/intranges.py<70>intranges_from_listr s<><00><00><19><15>-<2D>K<EFBFBD> <0F>F<EFBFBD><13>J<EFBFBD> <12>3<EFBFBD>{<7B>#<23> $<24><01> <0C>q<EFBFBD>5<EFBFBD>3<EFBFBD>{<7B>#<23> #<23><1A>1<EFBFBD>~<7E><1B>Q<EFBFBD><11>U<EFBFBD>!3<>a<EFBFBD>!7<>7<><18>#<23>J<EFBFBD><11>N<EFBFBD>Q<EFBFBD><11>U<EFBFBD>;<3B> <0A><0E> <0A> <0A>m<EFBFBD>M<EFBFBD>!<21>$4<>m<EFBFBD>B<EFBFBD>6G<36>!<21>6K<36>L<>M<><16>
<EFBFBD> %<25> <11><16>=<3D><18><00>start<72>endc<00><00>|dz|zS)N<> <00>)rrs rrr"s<00><00> <11>R<EFBFBD>K<EFBFBD>3<EFBFBD> <1E>r<00>rc<00><00>|dz |dzfS)Nrl<00><EFBFBD>r)rs r<00> _decode_ranger&s<00><00> <0A><12>G<EFBFBD>q<EFBFBD>M<EFBFBD>*<2A> +<2B>+r<00>int_rc<00><><00>t|d<01>}tj||<02>}|dkDr!t||dz
<00>\}}||cxkr|kry|t |<01>krt||<00>\}}||k(ryy)z=Determine if `int_` falls into one of the ranges in `ranges`.rr TF)r<00>bisect<63> bisect_leftrr )r r<00>tuple_<65>pos<6F>left<66>right<68>_s r<00>intranges_containr)*s<><00><00> <1A>4<EFBFBD><11> #<23>F<EFBFBD>
<10>
<1C>
<1C>V<EFBFBD>V<EFBFBD>
,<2C>C<EFBFBD> <0B>Q<EFBFBD>w<EFBFBD>#<23>F<EFBFBD>3<EFBFBD><11>7<EFBFBD>O<EFBFBD>4<> <0B><04>e<EFBFBD> <0F>4<EFBFBD> <1F>%<25> <1F><17> <20> <0B>S<EFBFBD><16>[<5B><18><1F><06>s<EFBFBD> <0B>,<2C><07><04>a<EFBFBD> <0F>4<EFBFBD><<3C><17> r) <0B>__doc__r"<00>typingrr<00>intrrr<00>boolr)rrr<00><module>r.s<><00><01><04><0E><1E><19>t<EFBFBD>C<EFBFBD>y<EFBFBD><19>U<EFBFBD>3<EFBFBD><03>8<EFBFBD>_<EFBFBD><19>,<1F><13><1F>3<EFBFBD><1F>3<EFBFBD><1F>,<2C>S<EFBFBD>,<2C>U<EFBFBD>3<EFBFBD><03>8<EFBFBD>_<EFBFBD>,<2C><11>C<EFBFBD><11><15>s<EFBFBD>C<EFBFBD>x<EFBFBD><1F><11>T<EFBFBD>r