class

Fingers::Hinter

Inherits Reference < Object

Constructors

new(input : Array(String), width : Int32, state : Fingers::State, output : Printer, patterns : Array(String) = Fingers.config.patterns, alphabet : Array(String) = Fingers.config.alphabet, huffman : Huffman = Huffman.new, formatter : Fingers::Formatter = ::Fingers::MatchFormatter.new, reuse_hints : Bool = false)
Source

Instance methods

build_target(text, hint, offset)
Source
capture_indices
Source
captured_text_for_match(match)
Source
count_matches
Source
count_unique_matches
Source
expand_tabs(line, tab_positions)
Source
find_capture_offset(match : Regex::MatchData) : Tuple(Int32, Int32) | Nil
Source
hint_for_text(text)
Source
hints
Source
lookup(hint) : Target | Nil
Source
n_matches
Source
pattern
Source
pop_hint!
Source
process_line(line, line_index, ending)
Source
regenerate_hints!
Source
relative_capture_offset_for_match(match, captured_text)
Source
replace(match, line_index)
Source
tab_positions_for(line)
Source