SaaS CMS has officially launched! Learn more now.

Class RunningComparer

Specialized string comparison class used to find a string match in a continous stream of characters. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
RunningComparer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 7.19.2
Syntax
public class RunningComparer

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