Table of Contents

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

Score int

How well the text matched; only comparisons between scores mean anything.

Positions IReadOnlyList<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

IReadOnlyList<int>

Score

How well the text matched; only comparisons between scores mean anything.

public int Score { get; init; }

Property Value

int