SourceCursor

laika.parse.SourceCursor$
See theSourceCursor companion trait

Companion for creating new SourceCursor instances. This type of constructor is only meant to be used for creating a root cursor for the input holding the whole document (e.g. the entire markup document or the full template).

For creating a cursor for a fragment of the input, either BlockSource or LineSource must be used to preserve position tracking in relation to the root input.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply(input: String): SourceCursor

Builds a new instance for the specified input string.

Builds a new instance for the specified input string.

Attributes

def apply(input: String, path: Path): SourceCursor

Builds a new instance for the specified input string and source path.

Builds a new instance for the specified input string and source path.

Attributes