Class NameComparerHelper
Provides common operations for changing name comparers.
public static class NameComparerHelper
- Inheritance
-
NameComparerHelper
- Inherited Members
Methods
AddAltName(INameComparer, string)
Adds a new alternative name to the existing comparer structure.
public static INameComparer AddAltName(this INameComparer current, string altName)
Parameters
currentINameCompareraltNamestring
Returns
AddComparer(INameComparer, INameComparer)
Adds a new alternative comparer to the existing comparer structure.
public static INameComparer AddComparer(this INameComparer current, INameComparer other)
Parameters
currentINameComparerotherINameComparer
Returns
MatchNext(Span<INameComparer>, ReadOnlySpan<char>, int)
Continues the match down the chain against the remaining name.
public static bool MatchNext(this Span<INameComparer> nameComparers, ReadOnlySpan<char> remaining, int count = 1)
Parameters
nameComparersSpan<INameComparer>remainingReadOnlySpan<char>countint
Returns
RemoveComparer(INameComparer, INameComparer)
Safely removes a specific comparer from the tree.
public static INameComparer RemoveComparer(this INameComparer current, INameComparer target)
Parameters
currentINameComparertargetINameComparer
Returns
RemoveName(INameComparer, string)
Safely removes a name from the tree if the comparer supports it.
public static INameComparer RemoveName(this INameComparer current, string name)
Parameters
currentINameComparernamestring