관리-도구
편집 파일: wcwidth.cpython-311.pyc
� �܋f� � �\ � d dl Z d dlmZ ed� � dedefd�� � Zdedefd�ZdS ) � N)� lru_cache�d �c�returnc �( � t | � � }d|cxk rdk rn ndS |dk s.d|cxk rdk s!n d|cxk rdk sn d |cxk rd k rn ndS t j | � � }|dk rdS |d v rdS t j | � � dv rdS dS )z�Determine how many columns are needed to display a character in a terminal. Returns -1 if the character is not printable. Returns 0, 1 or 2 for other characters. � � � r i i i( i. i` ic �Cc���)�Me�Mn)�F�W� )�ord�unicodedata�category�east_asian_width)r �or s �d/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/_pytest/_io/wcwidth.py�wcwidthr s� � � �A���A� �q�����5�������q� �V����Q� � � � �&� � � � ��Q� � � � �&� � � � ��Q� � � � �&� � � � � ��q��#�A�&�&�H� �4����r� �<����q� �#�A�&�&�*�4�4��q��1� �sc �t � d}t j d| � � D ]}t |� � }|dk r dS ||z }� |S )z�Determine how many columns are needed to display a string in a terminal. Returns -1 if the string contains non-printable characters. r �NFCr )r � normalizer )r �widthr �wcs r �wcswidthr , sP � � �E� � "�5�!� ,� ,� � �� �Q�Z�Z�� ��6�6��2�2� ������Lr )r � functoolsr �str�intr r � r r �<module>r% s� �� � � � � � � � � � � ��3���# �s� # �s� # � # � # � ��# �L�� �� � � � � � r