Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_vendor
/
rich
/
__pycache__
/
File Content:
_wrap.cpython-311.pyc
� .|oiL � � � d dl mZ d dlZd dlmZ ddlmZ ddlmZm Z ej d� � Zdd�Zddd�Z edk r�ddlmZ ed�� � Ze� d� � e e dd� � � � ed�� � Ze� � � e� d� � e� � � e� d� � dS dS ) � )�annotationsN)�Iterable� )� loop_last)�cell_len� chop_cellsz \s*\S+\s*�text�str�return�Iterable[tuple[int, int, str]]c # �� K � d}t � | |� � }|�R|� � � \ }}|� d� � }|||fV � t � | |� � }|�PdS dS )z�Yields each word from the text as a tuple containing (start_index, end_index, word). A "word" in this context may include the actual word and any whitespace to the right. r N)�re_word�match�span�group)r �position� word_match�start�end�words �h/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_vendor/rich/_wrap.py�wordsr s� � � � � �H����t�X�.�.�J� � ��_�_�&�&� ��s�����"�"���S�$������]�]�4��-�-� � � � � � � � T�width�int�fold�bool� list[int]c �� � g }|j }d}t }t | � � D ]�\ }}} || � � � � � } ||z }|| k }|r| || � � z }�?| |k ro|rTt | |�� � } t | � � D ]2\ }}|r ||� � |r ||� � }� |t |� � z }�3��|r ||� � || � � }��|r|r ||� � || � � }��|S )a� Given a string of text, and a width (measured in cells), return a list of cell offsets which the string should be split at in order for it to fit within the given width. Args: text: The text to examine. width: The available cell width. fold: If True, words longer than `width` will be folded onto a new line. Returns: A list of indices to break the line at. r �r )�appendr r �rstripr r �len)r r r �break_positionsr! �cell_offset� _cell_lenr �_endr �word_length�remaining_space�word_fits_remaining_space�folded_word�last�lines r �divide_liner. s^ � � "$�O� � #�F��K��I�"�4�[�[� .� .���t�T��i���� � �.�.���+�-��$3�{�$B�!�$� .��9�9�T�?�?�*�K�K� �U�"�"� � 2�",�T��"?�"?�"?�K�&/��&<�&<� /� /� ��d� � *�"�F�5�M�M�M�� /�*3�)�D�/�/�K�K�!�S��Y�Y�.�E�E� /� � &���u� � � �"+�)�D�/�/�K�K�� .�� .� ��u� � � �'�i��o�o����r �__main__)�Console� r z@12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345�abcdefghijklmnopqrstuvwxyz� uR TextualはPythonの高速アプリケーション開発フレームワークですu4 アプリケーションは1670万色を使用でき)r r r r )T)r r r r r r r r )� __future__r �re�typingr �_loopr �cellsr r �compiler r r. �__name__�consoler0 �print�rule� r r �<module>r? s\ �� "� "� "� "� "� "� � � � � � � � � � � � � � � � � '� '� '� '� '� '� '� '� �"�*�\� "� "��.� .� .� .�4� 4� 4� 4� 4�n �z��� � � � � � ��g�B����G��M�M�T�U�U�U� �E�*�*�1�2� 6� 6�7�7�7��g�B����G��L�L�N�N�N��M�M�f�g�g�g��L�L�N�N�N��M�M�H�I�I�I�I�I� �r
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
7517 bytes
0644
__main__.cpython-311.pyc
10757 bytes
0644
_cell_widths.cpython-311.pyc
7907 bytes
0644
_emoji_codes.cpython-311.pyc
208543 bytes
0644
_emoji_replace.cpython-311.pyc
1955 bytes
0644
_export_format.cpython-311.pyc
2374 bytes
0644
_extension.cpython-311.pyc
656 bytes
0644
_fileno.cpython-311.pyc
998 bytes
0644
_inspect.cpython-311.pyc
14143 bytes
0644
_log_render.cpython-311.pyc
4790 bytes
0644
_loop.cpython-311.pyc
2136 bytes
0644
_null_file.cpython-311.pyc
4202 bytes
0644
_palettes.cpython-311.pyc
5272 bytes
0644
_pick.cpython-311.pyc
816 bytes
0644
_ratio.cpython-311.pyc
7781 bytes
0644
_spinners.cpython-311.pyc
13705 bytes
0644
_stack.cpython-311.pyc
1151 bytes
0644
_timer.cpython-311.pyc
1004 bytes
0644
_win32_console.cpython-311.pyc
29971 bytes
0644
_windows.cpython-311.pyc
2851 bytes
0644
_windows_renderer.cpython-311.pyc
4042 bytes
0644
_wrap.cpython-311.pyc
3878 bytes
0644
abc.cpython-311.pyc
1948 bytes
0644
align.cpython-311.pyc
13422 bytes
0644
ansi.cpython-311.pyc
10536 bytes
0644
bar.cpython-311.pyc
4570 bytes
0644
box.cpython-311.pyc
12841 bytes
0644
cells.cpython-311.pyc
6566 bytes
0644
color.cpython-311.pyc
27800 bytes
0644
color_triplet.cpython-311.pyc
1896 bytes
0644
columns.cpython-311.pyc
10667 bytes
0644
console.cpython-311.pyc
125361 bytes
0644
constrain.cpython-311.pyc
2488 bytes
0644
containers.cpython-311.pyc
10834 bytes
0644
control.cpython-311.pyc
11748 bytes
0644
default_styles.cpython-311.pyc
12820 bytes
0644
diagnose.cpython-311.pyc
1876 bytes
0644
emoji.cpython-311.pyc
4671 bytes
0644
errors.cpython-311.pyc
2352 bytes
0644
file_proxy.cpython-311.pyc
4056 bytes
0644
filesize.cpython-311.pyc
3291 bytes
0644
highlighter.cpython-311.pyc
11012 bytes
0644
json.cpython-311.pyc
6567 bytes
0644
jupyter.cpython-311.pyc
6427 bytes
0644
layout.cpython-311.pyc
23334 bytes
0644
live.cpython-311.pyc
22429 bytes
0644
live_render.cpython-311.pyc
4996 bytes
0644
logging.cpython-311.pyc
15041 bytes
0644
markup.cpython-311.pyc
10785 bytes
0644
measure.cpython-311.pyc
7294 bytes
0644
padding.cpython-311.pyc
7263 bytes
0644
pager.cpython-311.pyc
2268 bytes
0644
palette.cpython-311.pyc
6001 bytes
0644
panel.cpython-311.pyc
13411 bytes
0644
pretty.cpython-311.pyc
44987 bytes
0644
progress.cpython-311.pyc
80144 bytes
0644
progress_bar.cpython-311.pyc
11035 bytes
0644
prompt.cpython-311.pyc
17958 bytes
0644
protocol.cpython-311.pyc
2119 bytes
0644
region.cpython-311.pyc
682 bytes
0644
repr.cpython-311.pyc
7645 bytes
0644
rule.cpython-311.pyc
7188 bytes
0644
scope.cpython-311.pyc
4374 bytes
0644
screen.cpython-311.pyc
2797 bytes
0644
segment.cpython-311.pyc
32058 bytes
0644
spinner.cpython-311.pyc
6716 bytes
0644
status.cpython-311.pyc
6781 bytes
0644
style.cpython-311.pyc
35261 bytes
0644
styled.cpython-311.pyc
2462 bytes
0644
syntax.cpython-311.pyc
43668 bytes
0644
table.cpython-311.pyc
49083 bytes
0644
terminal_theme.cpython-311.pyc
3728 bytes
0644
text.cpython-311.pyc
67588 bytes
0644
theme.cpython-311.pyc
7319 bytes
0644
themes.cpython-311.pyc
378 bytes
0644
traceback.cpython-311.pyc
39782 bytes
0644
tree.cpython-311.pyc
12885 bytes
0644
N4ST4R_ID | Naxtarrr