BEDirectionalTextRange
Modifications to text length based on its offset.
Declaration
struct BEDirectionalTextRangeOverview
This class encapsulates instructions that modify a text selection. In a given instance, the sign of length determines the selection direction from its offset. Positive length indicates moving the selection forward in the string, whereas a negative length moves the selection backward in the string. For example, applying a directional text range of { -6, -2 } to the selection “world” in the string “Hello world” results in the selection, “Hel”.