Show / Hide Table of Contents

    Class SubstitutionRule

    Represents the substitution rule.

    Inheritance
    Object
    SubstitutionRule
    Implements
    ISubstitutionRule
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Platform.RegularExpressions.Transformer
    Assembly: Platform.RegularExpressions.Transformer.dll
    Syntax
    public class SubstitutionRule : ISubstitutionRule

    Constructors

    | Improve this Doc View Source

    SubstitutionRule(Regex, String)

    Initializes a new SubstitutionRule instance.

    Declaration
    public SubstitutionRule(Regex matchPattern, string substitutionPattern)
    Parameters
    Type Name Description
    Regex matchPattern

    A match pattern.

    String substitutionPattern

    A substitution pattern.

    | Improve this Doc View Source

    SubstitutionRule(Regex, String, Int32)

    Initializes a new SubstitutionRule instance.

    Declaration
    public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maximumRepeatCount)
    Parameters
    Type Name Description
    Regex matchPattern

    A match pattern.

    String substitutionPattern

    A substitution pattern.

    Int32 maximumRepeatCount

    A maximum repeat count.

    | Improve this Doc View Source

    SubstitutionRule(Regex, String, Int32, Boolean)

    Initializes a new SubstitutionRule instance.

    Declaration
    public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maximumRepeatCount, bool useDefaultOptions)
    Parameters
    Type Name Description
    Regex matchPattern

    A match pattern.

    String substitutionPattern

    A substitution pattern.

    Int32 maximumRepeatCount

    A maximum repeat count.

    Boolean useDefaultOptions

    A use default options.

    | Improve this Doc View Source

    SubstitutionRule(Regex, String, Int32, Nullable<RegexOptions>, Nullable<TimeSpan>)

    Initializes a new SubstitutionRule instance.

    Declaration
    public SubstitutionRule(Regex matchPattern, string substitutionPattern, int maximumRepeatCount, RegexOptions? matchPatternOptions, TimeSpan? matchTimeout)
    Parameters
    Type Name Description
    Regex matchPattern

    A match pattern.

    String substitutionPattern

    A substitution pattern.

    Int32 maximumRepeatCount

    A maximum repeat count.

    Nullable<RegexOptions> matchPatternOptions

    A match pattern options.

    Nullable<TimeSpan> matchTimeout

    A match timeout.

    Fields

    | Improve this Doc View Source

    DefaultMatchPatternRegexOptions

    The multiline.

    Declaration
    public static readonly RegexOptions DefaultMatchPatternRegexOptions
    Field Value
    Type Description
    RegexOptions
    | Improve this Doc View Source

    DefaultMatchTimeout

    The from minutes.

    Declaration
    public static readonly TimeSpan DefaultMatchTimeout
    Field Value
    Type Description
    TimeSpan

    Properties

    | Improve this Doc View Source

    MatchPattern

    Gets or sets the match pattern value.

    Declaration
    public Regex MatchPattern { get; set; }
    Property Value
    Type Description
    Regex
    | Improve this Doc View Source

    MaximumRepeatCount

    Gets or sets the maximum repeat count value.

    Declaration
    public int MaximumRepeatCount { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    PathPattern

    Gets or sets the path pattern value.

    Declaration
    public Regex PathPattern { get; set; }
    Property Value
    Type Description
    Regex
    | Improve this Doc View Source

    SubstitutionPattern

    Gets or sets the substitution pattern value.

    Declaration
    public string SubstitutionPattern { get; set; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    OverrideMatchPatternOptions(RegexOptions, TimeSpan)

    Overrides the match pattern options using the specified options.

    Declaration
    public void OverrideMatchPatternOptions(RegexOptions options, TimeSpan matchTimeout)
    Parameters
    Type Name Description
    RegexOptions options

    The options.

    TimeSpan matchTimeout

    The match timeout.

    | Improve this Doc View Source

    OverridePathPatternOptions(RegexOptions, TimeSpan)

    Overrides the path pattern options using the specified options.

    Declaration
    public void OverridePathPatternOptions(RegexOptions options, TimeSpan matchTimeout)
    Parameters
    Type Name Description
    RegexOptions options

    The options.

    TimeSpan matchTimeout

    The match timeout.

    | Improve this Doc View Source

    ToString()

    Returns the string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    The string

    Overrides
    Object.ToString()

    Operators

    | Improve this Doc View Source

    Implicit((String, String, Int32) to SubstitutionRule)

    Declaration
    public static implicit operator SubstitutionRule((string, string, int) tuple)
    Parameters
    Type Name Description
    ValueTuple<String, String, Int32> tuple
    Returns
    Type Description
    SubstitutionRule
    | Improve this Doc View Source

    Implicit((String, String) to SubstitutionRule)

    Declaration
    public static implicit operator SubstitutionRule((string, string) tuple)
    Parameters
    Type Name Description
    ValueTuple<String, String> tuple
    Returns
    Type Description
    SubstitutionRule
    | Improve this Doc View Source

    Implicit((Regex, String, Int32) to SubstitutionRule)

    Declaration
    public static implicit operator SubstitutionRule((Regex, string, int) tuple)
    Parameters
    Type Name Description
    ValueTuple<Regex, String, Int32> tuple
    Returns
    Type Description
    SubstitutionRule
    | Improve this Doc View Source

    Implicit((Regex, String) to SubstitutionRule)

    Declaration
    public static implicit operator SubstitutionRule((Regex, string) tuple)
    Parameters
    Type Name Description
    ValueTuple<Regex, String> tuple
    Returns
    Type Description
    SubstitutionRule

    Implements

    ISubstitutionRule

    See Also

    ISubstitutionRule
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX