|
grepros 1.3.0
grep for ROS bag files and live topics
|

Public Member Functions | |
| __init__ (self, width=80, subsequent_indent=" ", break_long_words=True, drop_whitespace=False, max_lines=None, placeholder=" ...", custom_widths=None) | |
| reserve_width (self, reserved="") | |
| strip (self, v) | |
| strlen (self, v) | |
| wrap (self, text) | |
Public Attributes | |
| break_long_words | |
| custom_lens | |
| custom_rgx | |
| customs | |
| disabled | |
| drop_whitespace | |
| lencache | |
| max_lines | |
| minwidth | |
| placeholder | |
| realwidth | |
| subsequent_indent | |
| width | |
Static Public Attributes | |
| int | LENCACHEMAX = 10000 |
| Max length of strlen cache. | |
| SPACE_RGX = re.compile(r"([%s]+)" % re.escape("\t\n\x0b\x0c\r ")) | |
| Regex for breaking text at whitespace. | |
TextWrapper that supports custom substring widths in line width calculation. Intended for wrapping text containing ANSI control codes. Heavily refactored from Python standard library textwrap.TextWrapper.
| __init__ | ( | self, | |
width = 80, |
|||
subsequent_indent = " ", |
|||
break_long_words = True, |
|||
drop_whitespace = False, |
|||
max_lines = None, |
|||
placeholder = " ...", |
|||
custom_widths = None |
|||
| ) |
@param width default maximum width to wrap at, 0 disables
@param subsequent_indent string prepended to all consecutive lines
@param break_long_words break words longer than width
@param drop_whitespace drop leading and trailing whitespace from lines
@param max_lines count to truncate lines from
@param placeholder appended to last retained line when truncating
@param custom_widths {substring: len} to use in line width calculation
| reserve_width | ( | self, | |
reserved = "" |
|||
| ) |
| strip | ( | self, | |
| v | |||
| ) |
| strlen | ( | self, | |
| v | |||
| ) |
| wrap | ( | self, | |
| text | |||
| ) |
|
static |
|
static |