Expand description
This crate is a library to find approximate string from a sequence.
It also offers the fzq
command for fuzzy filter matching lines.
use fzq::{Fzq, Metric};
let mut fzq = Fzq::new();
let fzq = fzq
.buffer_size(100)
.metric(Metric::Jaro)
.threshold(0.85);
assert_eq!(fzq.is_similar("test 1"), false);
assert_eq!(fzq.is_similar("test 2"), true);
assert_eq!(fzq.is_similar("hello"), false);
assert_eq!(fzq.is_similar("test 3"), true);
Structs§
- Fzq
- A struct for finding approximate strings
Enums§
- Metric
- String metrics to use for matching