View Source Lexical.Document.Lines (lexical_shared v0.5.0)
A hyper-optimized, line-based backing store for text documents
Link to this section Summary
Functions
Gets the current line with the given index using fetch semantics
Create a new line store with the given text at the given starting index
Returns the number of lines in the line store
Turnss a line store into an iolist
Turns a line store into a string
Link to this section Types
Link to this section Functions
Gets the current line with the given index using fetch semantics
@spec new(String.t(), non_neg_integer()) :: t()
Create a new line store with the given text at the given starting index
Returns the number of lines in the line store
Turnss a line store into an iolist
Turns a line store into a string