Struct FuzzyMatch
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
A successful Match(string, string): higher scores are better matches.
public readonly record struct FuzzyMatch : IEquatable<FuzzyMatch>
- Implements
- Inherited Members
Constructors
FuzzyMatch(int, IReadOnlyList<int>)
A successful Match(string, string): higher scores are better matches.
public FuzzyMatch(int Score, IReadOnlyList<int> Positions)
Parameters
ScoreintHow well the text matched; only comparisons between scores mean anything.
PositionsIReadOnlyList<int>The matched indexes in the text, ascending, for highlighting.
Properties
Positions
The matched indexes in the text, ascending, for highlighting.
public IReadOnlyList<int> Positions { get; init; }
Property Value
Score
How well the text matched; only comparisons between scores mean anything.
public int Score { get; init; }