Show / Hide Table of Contents

    Class Matcher

    Inheritance
    Object
    Matcher
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:Microsoft.DocAsCode.MarkdownLite.Matchers
    Assembly:Microsoft.DocAsCode.MarkdownLite.dll
    Syntax
    public abstract class Matcher

    Fields

    NotMatch

    Declaration
    public const int NotMatch = -1
    Field Value
    Type Description
    Int32

    Properties

    AnyChar

    Declaration
    public static Matcher AnyChar { get; }
    Property Value
    Type Description
    Matcher

    AnyStringInSingleLine

    Declaration
    public static Matcher AnyStringInSingleLine { get; }
    Property Value
    Type Description
    Matcher

    AnyStringInSingleLineOrEmpty

    Declaration
    public static Matcher AnyStringInSingleLineOrEmpty { get; }
    Property Value
    Type Description
    Matcher

    AnyWordCharacter

    Declaration
    public static Matcher AnyWordCharacter { get; }
    Property Value
    Type Description
    Matcher

    EndOfString

    Declaration
    public static Matcher EndOfString { get; }
    Property Value
    Type Description
    Matcher

    NewLine

    Declaration
    public static Matcher NewLine { get; }
    Property Value
    Type Description
    Matcher

    WhiteSpace

    Declaration
    public static Matcher WhiteSpace { get; }
    Property Value
    Type Description
    Matcher

    WhiteSpaces

    Declaration
    public static Matcher WhiteSpaces { get; }
    Property Value
    Type Description
    Matcher

    WhiteSpacesOrEmpty

    Declaration
    public static Matcher WhiteSpacesOrEmpty { get; }
    Property Value
    Type Description
    Matcher

    WordBoundary

    Declaration
    public static Matcher WordBoundary { get; }
    Property Value
    Type Description
    Matcher

    Methods

    Any(Matcher[])

    Declaration
    public static Matcher Any(params Matcher[] matchers)
    Parameters
    Type Name Description
    Matcher[] matchers
    Returns
    Type Description
    Matcher

    AnyCharIn(Char[])

    Declaration
    public static Matcher AnyCharIn(params char[] ch)
    Parameters
    Type Name Description
    Char[] ch
    Returns
    Type Description
    Matcher

    AnyCharInRange(Char, Char)

    Declaration
    public static Matcher AnyCharInRange(char start, char end)
    Parameters
    Type Name Description
    Char start
    Char end
    Returns
    Type Description
    Matcher

    AnyCharNot(Char)

    Declaration
    public static Matcher AnyCharNot(char ch)
    Parameters
    Type Name Description
    Char ch
    Returns
    Type Description
    Matcher

    AnyCharNotIn(Char[])

    Declaration
    public static Matcher AnyCharNotIn(params char[] ch)
    Parameters
    Type Name Description
    Char[] ch
    Returns
    Type Description
    Matcher

    BackReference(String)

    Declaration
    public static Matcher BackReference(string groupName)
    Parameters
    Type Name Description
    String groupName
    Returns
    Type Description
    Matcher

    CaptureGroup(String, Matcher)

    Declaration
    public static Matcher CaptureGroup(string name, Matcher matcher)
    Parameters
    Type Name Description
    String name
    Matcher matcher
    Returns
    Type Description
    Matcher

    CaseInsensitiveString(String)

    Declaration
    public static Matcher CaseInsensitiveString(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    Matcher

    Char(Char)

    Declaration
    public static Matcher Char(char ch)
    Parameters
    Type Name Description
    Char ch
    Returns
    Type Description
    Matcher

    CompareLength(Matcher, LengthComparison, String)

    Declaration
    public static Matcher CompareLength(Matcher inner, LengthComparison comparsion, string groupName)
    Parameters
    Type Name Description
    Matcher inner
    LengthComparison comparsion
    String groupName
    Returns
    Type Description
    Matcher

    EscapeText(String)

    Declaration
    protected string EscapeText(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    String

    Match(MatchContent)

    Match string in content.

    Declaration
    public abstract int Match(MatchContent content)
    Parameters
    Type Name Description
    MatchContent content

    The content.

    Returns
    Type Description
    Int32

    Char count of match, -1 is not match.

    Maybe(Matcher)

    Declaration
    public static Matcher Maybe(Matcher matcher)
    Parameters
    Type Name Description
    Matcher matcher
    Returns
    Type Description
    Matcher

    NegativeTest(Matcher[])

    Declaration
    public static Matcher NegativeTest(params Matcher[] matchers)
    Parameters
    Type Name Description
    Matcher[] matchers
    Returns
    Type Description
    Matcher

    Repeat(Matcher, Int32)

    Declaration
    public static Matcher Repeat(Matcher matcher, int minOccur)
    Parameters
    Type Name Description
    Matcher matcher
    Int32 minOccur
    Returns
    Type Description
    Matcher

    Repeat(Matcher, Int32, Int32)

    Declaration
    public static Matcher Repeat(Matcher matcher, int minOccur, int maxOccur)
    Parameters
    Type Name Description
    Matcher matcher
    Int32 minOccur
    Int32 maxOccur
    Returns
    Type Description
    Matcher

    ReverseNegativeTest(Matcher[])

    Declaration
    public static Matcher ReverseNegativeTest(params Matcher[] matchers)
    Parameters
    Type Name Description
    Matcher[] matchers
    Returns
    Type Description
    Matcher

    ReverseTest(Matcher[])

    Declaration
    public static Matcher ReverseTest(params Matcher[] matchers)
    Parameters
    Type Name Description
    Matcher[] matchers
    Returns
    Type Description
    Matcher

    Sequence(Matcher[])

    Declaration
    public static Matcher Sequence(params Matcher[] matchers)
    Parameters
    Type Name Description
    Matcher[] matchers
    Returns
    Type Description
    Matcher

    String(String)

    Declaration
    public static Matcher String(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    Matcher

    Test(Matcher[])

    Declaration
    public static Matcher Test(params Matcher[] matchers)
    Parameters
    Type Name Description
    Matcher[] matchers
    Returns
    Type Description
    Matcher

    Operators

    Addition(Matcher, Matcher)

    Sequence.

    Declaration
    public static Matcher operator +(Matcher left, Matcher right)
    Parameters
    Type Name Description
    Matcher left
    Matcher right
    Returns
    Type Description
    Matcher

    Addition(Matcher, Char)

    Sequence.

    Declaration
    public static Matcher operator +(Matcher left, char right)
    Parameters
    Type Name Description
    Matcher left
    Char right
    Returns
    Type Description
    Matcher

    Addition(Matcher, String)

    Sequence.

    Declaration
    public static Matcher operator +(Matcher left, string right)
    Parameters
    Type Name Description
    Matcher left
    String right
    Returns
    Type Description
    Matcher

    BitwiseOr(Matcher, Matcher)

    Any.

    Declaration
    public static Matcher operator |(Matcher left, Matcher right)
    Parameters
    Type Name Description
    Matcher left
    Matcher right
    Returns
    Type Description
    Matcher

    Explicit(Char to Matcher)

    Declaration
    public static explicit operator Matcher(char ch)
    Parameters
    Type Name Description
    Char ch
    Returns
    Type Description
    Matcher

    Explicit(String to Matcher)

    Declaration
    public static explicit operator Matcher(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    Matcher

    Multiply(Matcher, Int32)

    Repeat.

    Declaration
    public static Matcher operator *(Matcher matcher, int count)
    Parameters
    Type Name Description
    Matcher matcher
    Int32 count
    Returns
    Type Description
    Matcher

    Extension Methods

    MatcherExtensions.Match(Matcher, String, Int32)
    MatcherExtensions.ToGroup(Matcher, String)
    MatcherExtensions.Maybe(Matcher)
    MatcherExtensions.RepeatAtLeast(Matcher, Int32)
    MatcherExtensions.Repeat(Matcher, Int32, Int32)
    MatcherExtensions.ToTest(Matcher)
    MatcherExtensions.ToNegativeTest(Matcher)
    MatcherExtensions.ToReverseTest(Matcher)
    MatcherExtensions.ToReverseNegativeTest(Matcher)
    MatcherExtensions.CompareLength(Matcher, LengthComparison, String)
    JsonUtility.ToJsonString(Object, Formatting, JsonSerializer)
    Back to top Copyright © 2015-2017 Microsoft
    Generated by DocFX