Table of Contents

Class SimpleHtmlTagOpeningMatcher

Namespace
Fluxzy.Misc.Streams
Assembly
Fluxzy.Core.dll

A trivial state-machine to detect opening tag in html. Used essentially to detect the header tag

public class SimpleHtmlTagOpeningMatcher : StringMatcher, IBinaryMatcher
Inheritance
SimpleHtmlTagOpeningMatcher
Implements
Inherited Members

Constructors

SimpleHtmlTagOpeningMatcher(Encoding, StringComparison, bool)

public SimpleHtmlTagOpeningMatcher(Encoding encoding, StringComparison stringComparison, bool replace)

Parameters

encoding Encoding
stringComparison StringComparison
replace bool

Methods

FindIndex(ReadOnlySpan<char>, ReadOnlySpan<char>)

public override (int Index, int Count) FindIndex(ReadOnlySpan<char> buffer, ReadOnlySpan<char> searchText)

Parameters

buffer ReadOnlySpan<char>
searchText ReadOnlySpan<char>

Returns

(int ExchangeId, int ConnectionId)

GetMatchValue(int, int, int)

protected override BinaryMatchResult GetMatchValue(int index, int blockLength, int shiftLength)

Parameters

index int
blockLength int
shiftLength int

Returns

BinaryMatchResult