ClusterScan class final

Result of scanning one cluster; reused to avoid allocation.

Constructors

ClusterScan()
A scan with nothing found yet, for TextSegmenter.scan to fill.

Properties

end ↔ int
UTF-16 index one past the cluster.
getter/setter pair
first ↔ int
First code point of the cluster. A lone surrogate is reported as itself (it is a zero-width control and never drawn).
getter/setter pair
firstGcb ↔ int
Grapheme_Cluster_Break of first (control detection).
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
joinsNext ↔ bool
Grapheme mode: a code point printed right after this cluster could be joined to it by a terminal that clusters graphemes (the cluster ends with a virama/linker, an emoji ZWJ, a Prepend, a Hangul L jamo, or is a lone regional indicator). The next cell must not be printed contiguously.
getter/setter pair
length ↔ int
Number of code points in the cluster.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uncertain ↔ bool
Whether terminals are known to disagree about this cluster's width (emoji, multi-code-point clusters with several spacing characters, presentation selectors; not ambiguous width, which is configured). The encoder re-synchronises the cursor after such a cluster so a disagreement can't shift the row.
getter/setter pair
width ↔ int
Terminal columns (0, 1 or 2). 0 means the cluster should not be drawn (a control character, or a zero-width mark without a base); see isLeadingMark for the marks with a width the canvas drops too.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited