com.alecdorrington.annotatedtextformat.TextSpan
See theTextSpan companion object
final case class TextSpan (
start :
Int ,
end :
Int )
A part of a text, from its start up to but excluding its end, counted in UTF-16 code units, as JavaScript's strings count them. Where they are equal, it is a point between two characters, as where text is to be inserted.
Value parameters
end
Where it ends: how many UTF-16 code units of the text come before its end.
start
Where it begins: how many UTF-16 code units of the text come before it.
Attributes
Note
The JVM's strings and the DOM's ranges count alike.
Companion
object
Graph
Reset zoom Hide graph Show graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Whether the character at lies within it.
Whether the character at lies within it.
Attributes
Whether other lies within it, as a point at either of its ends does.
Whether other lies within it, as a point at either of its ends does.
Attributes
How many characters lie between it and other.
How many characters lie between it and other.
Attributes
Whether it lies within a text of length characters, the right way round.
Whether it lies within a text of length characters, the right way round.
Attributes
Whether it is a point, holding no characters.
Whether it is a point, holding no characters.
Attributes
The number of characters within it.
The number of characters within it.
Attributes
Whether it shares a character with other, which a point never does.
Whether it shares a character with other, which a point never does.
Attributes
It, moved by characters on.
It, moved by characters on.
Attributes
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
Inherited from:
Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
Returns
in the default implementation, an Iterator[Any]
Inherited from:
Product