SourceCursor

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.

Companion:
class
class Object
trait Matchable
class Any

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.

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.