class Syntaks::Source

Defined in:

syntaks/source.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(content : String) #

[View source]

Instance Method Detail

def byte_slice(range : Range) #

[View source]
def byte_slice(*args, **options) #

[View source]
def byte_slice(*args, **options, &) #

[View source]
def check(at : Int32, regex : Regex) #

[View source]
def column_number_at_byte(at : Int32) #

0..*


[View source]
def find_leading_newline_idx_at_byte(at : Int32) #

[View source]
def inspect(io) #

[View source]
def line_end_at_byte(at : Int32) #

[View source]
def line_number_at_byte(at : Int32) #

0..newline_indices.size


[View source]
def line_start_at_byte(at : Int32) #

[View source]
def newline_indices : Array(Int32) #

[View source]
def peek(at : Int32, length : Int32) #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def slow_lookup(from, length) : String #

[View source]
def slow_lookup(range : Range) : String #

[View source]