Struct MatchContent
Namespace:Microsoft.DocAsCode.MarkdownLite.Matchers
Assembly:Microsoft.DocAsCode.MarkdownLite.dll
Syntax
public struct MatchContent
Constructors
MatchContent(String, Int32, MatchDirection)
Declaration
public MatchContent(string text, int startIndex, MatchDirection direction = MatchDirection.Forward)
Parameters
Fields
Direction
Declaration
public readonly MatchDirection Direction
Field Value
StartIndex
Declaration
public readonly int StartIndex
Field Value
Text
Declaration
public readonly string Text
Field Value
Properties
Item[Int32]
Declaration
public char this[int offset] { get; }
Parameters
Type |
Name |
Description |
Int32 |
offset |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
Methods
AddGroup(String, Int32, Int32)
Declaration
public void AddGroup(string name, int startIndex, int count)
Parameters
BeginOfString()
Declaration
public bool BeginOfString()
Returns
CountUntil(Char, Int32)
Declaration
public int CountUntil(char ch, int maxCount)
Parameters
Returns
CountUntilAny(Char[], Int32)
Declaration
public int CountUntilAny(char[] ch, int maxCount)
Parameters
Type |
Name |
Description |
Char[] |
ch |
|
Int32 |
maxCount |
|
Returns
CountUntilInRange(Char, Char, Int32)
Declaration
public int CountUntilInRange(char start, char end, int maxCount)
Parameters
Returns
CountWhile(Char, Int32)
Declaration
public int CountWhile(char ch, int maxCount)
Parameters
Returns
CountWhileInRange(Char, Char, Int32)
Declaration
public int CountWhileInRange(char start, char end, int maxCount)
Parameters
Returns
EndOfString()
Declaration
public bool EndOfString()
Returns
EnumerateGroups()
Declaration
public IEnumerable<MatchGroup> EnumerateGroups()
Returns
GetCurrentChar()
Declaration
public char GetCurrentChar()
Returns
GetGroup(String)
Declaration
public MatchGroup? GetGroup(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Offset(Int32)
Declaration
public MatchContent Offset(int offset)
Parameters
Type |
Name |
Description |
Int32 |
offset |
|
Returns
Reverse()
Declaration
public MatchContent Reverse()
Returns
Extension Methods