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)
SourceInstance methods
build_target(text, hint, offset)
Sourcecapture_indices
Sourcecaptured_text_for_match(match)
Sourcecount_matches
Sourcecount_unique_matches
Sourceexpand_tabs(line, tab_positions)
Sourcefind_capture_offset(match : Regex::MatchData) : Tuple(Int32, Int32) | Nil
Sourcehint_for_text(text)
Sourcehints
Sourcelookup(hint) : Target | Nil
Sourcen_matches
Sourcepattern
Sourcepop_hint!
Sourceprocess_line(line, line_index, ending)
Sourceregenerate_hints!
Sourcerelative_capture_offset_for_match(match, captured_text)
Sourcereplace(match, line_index)
Sourcerun
Sourcetab_positions_for(line)
Source