nxt::utf8::text_segment struct

Word or line-break segment used for streaming/wrapping text.

Public types

enum class kind_t { word, line_break }
Segment category.

Public variables

kind_t kind
Category of this segment.
std::string_view text
View into the source text for word segments.
width_t width
Display width in terminal cells.