|
Let us walk on the 3-isogeny graph
|
Functions | |
| int | cached_cell_len (str text) |
| int | cell_len (str text, Callable[[str], int] _cell_len=cached_cell_len) |
| int | get_character_cell_size (str character) |
| int | _get_codepoint_cell_size (int codepoint) |
| str | set_cell_size (str text, int total) |
| List[str] | chop_cells (str text, int max_size, int position=0) |
Variables | |
| _is_single_cell_widths = re.compile("^[\u0020-\u006f\u00a0\u02ff\u0370-\u0482]*$").match | |
|
protected |
Get the cell size of a character.
Args:
codepoint (int): Codepoint of a character.
Returns:
int: Number of cells (0, 1 or 2) occupied by that character.
Definition at line 59 of file cells.py.
References i.
Referenced by pip._vendor.rich.cells.get_character_cell_size().

| int cached_cell_len | ( | str | text | ) |
Get the number of cells required to display text.
This method always caches, which may use up a lot of memory. It is recommended to use
`cell_len` over this method.
Args:
text (str): Text to display.
Returns:
int: Get the number of cells required to display text.
Definition at line 12 of file cells.py.
References i.
| int cell_len | ( | str | text, |
| Callable[[str], int] | _cell_len = cached_cell_len |
||
| ) |
Get the number of cells required to display text.
Args:
text (str): Text to display.
Returns:
int: Get the number of cells required to display text.
Definition at line 29 of file cells.py.
References i.
| List[str] chop_cells | ( | str | text, |
| int | max_size, | ||
| int | position = 0 |
||
| ) |
Break text in to equal (cell) length strings, returning the characters in reverse order
Definition at line 124 of file cells.py.
| int get_character_cell_size | ( | str | character | ) |
Get the cell size of a character.
Args:
character (str): A single character.
Returns:
int: Number of cells (0, 1 or 2) occupied by that character.
Definition at line 46 of file cells.py.
References pip._vendor.rich.cells._get_codepoint_cell_size(), and i.

| str set_cell_size | ( | str | text, |
| int | total | ||
| ) |
Set the length of a string to fit within given number of cells.
Definition at line 87 of file cells.py.
References pip._vendor.rich.cells._is_single_cell_widths, and i.
|
protected |
Definition at line 8 of file cells.py.
Referenced by pip._vendor.rich.cells.set_cell_size().