November Happy Hour will be moved to Thursday December 5th.

Class RunningComparer

Specialized string comparison class used to find a string match in a continous stream of characters.

Inheritance
System.Object
RunningComparer
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class RunningComparer : Object

Constructors

RunningComparer(String)

Initializes a new instance of the RunningComparer class.

Declaration
public RunningComparer(string match)
Parameters
Type Name Description
System.String match

The string to look for in the character-by-character calls to IsMatch.

Properties

Match

Gets the match.

Declaration
public string Match { get; }
Property Value
Type Description
System.String

The match.

MatchLength

Gets the length of the match.

Declaration
public int MatchLength { get; }
Property Value
Type Description
System.Int32

The length of the match.

Methods

IsMatch(Char)

Determines whether the specified character completes a match with Match.

Declaration
public bool IsMatch(char character)
Parameters
Type Name Description
System.Char character

The character.

Returns
Type Description
System.Boolean

true if the specified character completes the match; otherwise, false.

Reset()

Resets this instance.

Declaration
public void Reset()

Extension Methods