A zero-based line value.
A zero-based character value.
The zero-based line value.
The zero-based character value.
Check if this position is before other
.
A position.
true
if position is on a smaller line
or on the same line on a smaller character.
Check if this position is before or equal to other
.
A position.
true
if position is on a smaller line
or on the same line on a smaller or equal character.
Check if this position is after other
.
A position.
true
if position is on a greater line
or on the same line on a greater character.
Check if this position is after or equal to other
.
A position.
true
if position is on a greater line
or on the same line on a greater or equal character.
Check if this position is equal to other
.
A position.
true
if the line and character of the given position are equal to
the line and character of this position.
Compare this to other
.
A position.
A number smaller than zero if this position is before the given position, a number greater than zero if this position is after the given position, or zero when this and the given position are equal.
Create a new position relative to this position.
Delta value for the line value, default is 0
.
Delta value for the character value, default is 0
.
A position which line and character is the sum of the current line and character and the corresponding deltas.
Derived a new position relative to this position.
An object that describes a delta to this position.
Delta value for the line value, default is 0
.
Delta value for the character value, default is 0
.
A position that reflects the given delta. Will return this
position if the change
is not changing anything.
Create a new position derived from this position.
Value that should be used as line value, default is the existing value
Value that should be used as character value, default is the existing value
A position where line and character are replaced by the given values.
Derived a new position from this position.
An object that describes a change to this position.
New line value, defaults the line value of this
.
New character value, defaults the character value of this
.
A position that reflects the given change. Will return this
position if the change
is not changing anything.
Represents a line and character position, such as the position of the cursor.
Position objects are immutable. Use the with or translate methods to derive new positions from an existing position.