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.3Syntax
public class RunningComparer : ObjectConstructors
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 | 
 | 
Reset()
Resets this instance.
Declaration
public void Reset()