#include <string_view>
#include <vector>
◆ ComputeSoftWrapSegments()
| std::vector< SoftWrapSegment > donner::editor::ComputeSoftWrapSegments |
( |
std::string_view | line, |
|
|
int | maxColumns ) |
|
nodiscard |
Compute soft-wrap rows for a single logical line.
- Parameters
-
| line | Logical line text. |
| maxColumns | Maximum visual columns available for each row. |
- Returns
- One or more visual rows. Empty input still returns one empty row.
◆ ComputeXmlContinuationIndent()
| int donner::editor::ComputeXmlContinuationIndent |
( |
std::string_view | line | ) |
|
|
nodiscard |
Compute the visual continuation indent for XML-like source lines.
- Parameters
-
- Returns
- Column used for wrapped continuations.