Class Match<TPath>
The result of matching a System.String text against a System.String pattern.
Inheritance
System.Object
Match<TPath>
Implements
System.IEquatable<Match<TPath>>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MoreStructures.Strings.Matching
Assembly: MoreStructures.dll
Syntax
public sealed class Match<TPath> : IEquatable<Match<TPath>>
Type Parameters
Name | Description |
---|---|
TPath | The type of path. Depends on the algorithm and the data structure used for pattern matching. |
Constructors
| Improve this Doc View SourceMatch(Boolean, Int32, Int32, TPath)
The result of matching a System.String text against a System.String pattern.
Declaration
public Match(bool Success, int Begin, int MatchedChars, TPath Path)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | Success | Whether the text has been completely matched or not. |
System.Int32 | Begin | The index in text of the best match. |
System.Int32 | MatchedChars | The number of chars matched from the text. |
TPath | Path | The path of nodes visited by the matching algorithm. |
Properties
| Improve this Doc View SourceBegin
Declaration
public int Begin { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MatchedChars
Declaration
public int MatchedChars { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Path
Declaration
public TPath Path { get; set; }
Property Value
Type | Description |
---|---|
TPath |
Success
Declaration
public bool Success { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>