Files
ServerSync/lib/rich/__pycache__/_wrap.cpython-314.pyc

36 lines
3.5 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>iL <00><01><><00>^RIHt^RIt^RIHt^RIHt^RIHtH t ]P!R4t RRlt RR R
llt ]R 8Xd}^R IHt]!^
R 7t]P#R4]!] !R^
44]!^R 7t]P%4]P#R4]P%4]P#R4R#R#)<13>)<01> annotationsN)<01>Iterable)<01> loop_last)<02>cell_len<65>
chop_cellsz \s*\S+\s*c<01> <00>V^8<>dQhRRRR/#)<05><00>text<78>str<74>returnzIterable[tuple[int, int, str]]<5D>)<01>formats"<22>1/tmp/pip-target-qd_sq_1j/lib/python/rich/_wrap.py<70> __annotate__r s<00><00> .<2E> .<2E><03> .<2E>6<> .<2E>c#<05><>"<00>^p\PW4pVeAVP4wr4VP^4pW4V3x<00>\PW4pKDR#5i)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.
N)<04>re_word<72>match<63>span<61>group)r
<00>position<6F>
word_match<EFBFBD>start<72>end<6E>words& r<00>wordsr s\<00><00><00>
<11>H<EFBFBD><18><1D><1D>t<EFBFBD>.<2E>J<EFBFBD>
<14>
<20><1F>_<EFBFBD>_<EFBFBD>&<26>
<EFBFBD><05><19><1F><1F><01>"<22><04><13>$<24><1E><1E><1C>]<5D>]<5D>4<EFBFBD>-<2D>
<EFBFBD> !<21>s<00>AA c<01>(<00>V^8<>dQhRRRRRRRR/#) r r
r <00>width<74>int<6E>fold<6C>boolr z list[int]r )rs"rrrs(<00><00>4<1B>4<1B>c<EFBFBD>4<1B>#<23>4<1B>T<EFBFBD>4<1B>Y<EFBFBD>4rc<05><00>.pVPp^p\p\V4F<>wrxp V!V P44p
W,
p W<>8<EFBFBD>p V 'dWV!V 4, pK@W<>8<EFBFBD>dyV'dW\ W<>R7p \ V 4F9wr<>V'd V!V4V'd V!V4pK'V\ V4, pK; K<>V'd V!V4V!V 4pK<>V'gK<>V'gK<>V!V4V!V 4pK<> V#)axGiven 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.
<EFBFBD>r)<07>appendrr<00>rstriprr<00>len)r
rr <00>break_positionsr$<00> cell_offset<65> _cell_lenr<00>_endr<00> word_length<74>remaining_space<63>word_fits_remaining_space<63> folded_word<72>last<73>lines&&& r<00> divide_liner1s<><00><00>"$<24>O<EFBFBD> <1C> #<23> #<23>F<EFBFBD><13>K<EFBFBD><18>I<EFBFBD>"<22>4<EFBFBD>[<5B><19><05>T<EFBFBD><1F><04> <0B> <0B> <0A>.<2E> <0B><1F>-<2D><0F>$3<>$B<>!<21> $<24> <17>9<EFBFBD>T<EFBFBD>?<3F> *<2A>K<EFBFBD><1B>"<22><18>",<2C>T<EFBFBD>"?<3F>K<EFBFBD>&/<2F> <0B>&<<3C>
<EFBFBD><04> <20>"<22>5<EFBFBD>M<EFBFBD><1F>*3<>D<EFBFBD>/<2F>K<EFBFBD>!<21>S<EFBFBD><14>Y<EFBFBD>.<2E>E<EFBFBD> '=<3D><1D><1E>u<EFBFBD> <0A>"+<2B>D<EFBFBD>/<2F>K<EFBFBD><1C><1B><15><15><17>u<EFBFBD> <0A>'<27><04>o<EFBFBD> <0B>A)<29>D <1B>r<00>__main__)<01>Consoler#z@12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345<34>abcdefghijklmnopqrstuvwxyzuRTextualはPythonの高速アプリケーション開発フレームワークですu4アプリケーションは1670万色を使用でき)T)<13>
__future__r<00>re<72>typingr<00>_loopr<00>cellsrr<00>compilerrr1<00>__name__<5F>consoler3<00>print<6E>ruler rr<00><module>r?s<><00><01>"<22> <09><1B><1C>'<27>
<0C>*<2A>*<2A>\<5C>
"<22><07> .<2E>4<1B>n <0C>z<EFBFBD><19> <20><15>B<EFBFBD><1F>G<EFBFBD> <0B>M<EFBFBD>M<EFBFBD>T<>U<> <09>*<2A>1<>2<EFBFBD>
6<EFBFBD>7<><15>B<EFBFBD><1F>G<EFBFBD> <0B>L<EFBFBD>L<EFBFBD>N<EFBFBD> <0B>M<EFBFBD>M<EFBFBD>f<>g<> <0B>L<EFBFBD>L<EFBFBD>N<EFBFBD> <0B>M<EFBFBD>M<EFBFBD>H<>I<>r