struct FuzzyMatch::Full

Defined in:

fuzzy_match/full.cr

Constant Summary

CAMEL_BONUS = 30
FIRST_LETTER_BONUS = 15
LEADING_LETTER_PENALTY = -5
MAX_LEADING_LETTER_PENALTY = -15
SEPARATOR_BONUS = 30
SEPARATORS = ['_', ' ', '-']
SEQUENTIAL_BONUS = 15
UNMATCHED_LETTER_PENALTY = -1

Constructors

Instance Method Summary

Constructor Detail

def self.new(pattern : String, str : String) #

[View source]

Instance Method Detail

def has_matched : Bool #

[View source]
def has_matched=(has_matched : Bool) #

[View source]
def is_camelcase_letter(current_index, char) #

[View source]
def last_match_index : Int32 #

[View source]
def last_match_index=(last_match_index : Int32) #

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

[View source]
def matched_indexes=(matched_indexes : Array(Int32)) #

[View source]
def matches? : Bool #

[View source]
def matches_all_letters : Bool #

[View source]
def matches_all_letters=(matches_all_letters : Bool) #

[View source]
def pattern : String #

[View source]
def pattern=(pattern : String) #

[View source]
def post_separator_chars #

characters after a separator


[View source]
def score : Int32 #

[View source]
def score=(score : Int32) #

[View source]
def str : String #

[View source]
def str=(str : String) #

[View source]