[][src]Module cursive_core::utils::lines::simple

Compute lines on simple text.

The input is a single &str.

Computed rows will include start/end byte offsets in the input string.

Structs

LinesIterator

Generates rows of text in constrained width.

Row

Represents a row of text within a String.

Span

The length and width of a part of a string.

Functions

make_lines

Compute lines for the given content and width.

prefix

Computes a prefix that fits in the given width.

simple_prefix

Computes the longest prefix that fits in the given width.

simple_suffix

Computes the longest suffix that fits in the given width.

suffix

Computes the longest suffix that fits in the given width.