RichString
An immutable rich text representation that pairs plain text with type-safe attributes applied to specific character ranges.
All mutating operations return a new RichString instance, preserving the original unchanged.
Constructors
Creates a new RichString having the given initialAttributes applied to the entire text.
Properties
Functions
Executes the given block on a RichStringScope scoped to this RichString, and returns a completely new RichString carrying the modifications.
Exports this RichString using the specified exporter.
Extracts a list of semantic ListItems from the given RichString.
Retrieves all contiguous runs of the requested attribute key, merging internally split spans. Adjacent internal spans that possess the EXACT SAME attribute value for key will be combined into a single RichRun, ignoring differences in other attributes.