Server IP : 192.158.238.246 / Your IP : 3.141.33.133 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/python311/lib64/python3.11/encodings/__pycache__/ |
Upload File : |
� �=Og� � �& � d Z ddlZd� Zd� Zd� Zd� Zd� ZdZd � Zd � Z d� Z d� Zd � Zd� Z d� Z G d� dej � � Z G d� dej � � Z G d� dej � � Z G d� deej � � Z G d� deej � � Zd� ZdS )uY Codec for the Punicode encoding, as specified in RFC 3492 Written by Martin v. Löwis. � Nc � � t � � }t � � }| D ]M}t |� � dk r#|� t |� � � � �8|� |� � �Nt |� � }t |� � |fS )z 3.1 Basic code point segregation� )� bytearray�set�ord�append�add�sorted�bytes)�str�base�extended�cs �9/opt/alt/python311/lib64/python3.11/encodings/punycode.py� segregater s| � ��;�;�D��u�u�H� � � ���q�6�6�C�<�<��K�K��A��������L�L��O�O�O�O��h���H���;�;�� � � c �D � d}| D ]}t |� � |k r|dz }�|S )z@Return the length of str, considering only characters below max.r � )r )r �max�resr s r � selective_lenr s4 � � �C� � � ���q�6�6�C�<�<��1�H�C���Jr c �~ � t | � � } |dz }||k rdS | | }||k r|dz |fS ||k r|dz }�.)a Return 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.r )���r )�len)r �char�index�pos�lr s r �selective_findr sb � � �C���A���q����!�8�8��8���H����9�9���7�C�<�� ��X�X��Q�J�E�r c � � d}g }d}|D ]t}dx}}t |� � }t | |� � } | dz ||z z } t | |||� � \ }}|dk rn%| ||z z } |� | dz � � |}d} �A|}�u|S )�3.2 Insertion unsort codingr r r r )r r r r )r r �oldchar�result�oldindexr r r r �curlen�deltas r �insertion_unsortr'