Search Results for

    Show / Hide Table of Contents

    Class RegexpFormattingSettings

    The formatting settings used by the RegexpAutomatonFormat class.

    Inheritance
    Object
    RegexpFormattingSettings
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Distributions.Automata
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public class RegexpFormattingSettings

    Constructors

    RegexpFormattingSettings(Boolean, Boolean, Boolean, Int32, Boolean, Boolean)

    Initializes a new instance of the RegexpFormattingSettings class.

    Declaration
    public RegexpFormattingSettings(bool putOptionalInSquareBrackets, bool showAnyElementAsQuestionMark, bool ignoreElementDistributionDetails, int truncationLength, bool escapeCharacters, bool useLazyQuantifier)
    Parameters
    Type Name Description
    Boolean putOptionalInSquareBrackets

    Whether optional strings should be represented as '[str]' instead of '(str|)'.

    Boolean showAnyElementAsQuestionMark

    Whether languages consisting of a single arbitrary character should be represented by '?' instead of '.'.

    Boolean ignoreElementDistributionDetails

    Whether non point mass element distributions should be presented to a user as uniform.

    Int32 truncationLength

    The string length to truncate at, for large automata.

    Boolean escapeCharacters

    This tells, whether or not characters are to be escaped to be compatible with regex engines.

    Boolean useLazyQuantifier

    Whether to use lazy quantifiers.

    Properties

    EscapeCharacters

    Gets a value indicating whether or not characters are to be escaped to be compatible with regex engines.

    Declaration
    public bool EscapeCharacters { get; }
    Property Value
    Type Description
    Boolean

    IgnoreElementDistributionDetails

    Gets a value indicating whether non point mass element distributions should be presented to a user in a detailed form.

    Declaration
    public bool IgnoreElementDistributionDetails { get; }
    Property Value
    Type Description
    Boolean

    PutOptionalInSquareBrackets

    Gets a value indicating whether optional strings should be represented as '[str]' instead of '(str|)'.

    Declaration
    public bool PutOptionalInSquareBrackets { get; }
    Property Value
    Type Description
    Boolean

    ShowAnyElementAsQuestionMark

    Gets a value indicating whether languages consisting of a single arbitrary character should be represented by '?' instead of '.'.

    Declaration
    public bool ShowAnyElementAsQuestionMark { get; }
    Property Value
    Type Description
    Boolean

    TruncationLength

    Gets a value for the length of the formatted string at which truncation should occur.

    Declaration
    public int TruncationLength { get; }
    Property Value
    Type Description
    Int32
    Remarks

    This setting keeps the string form of large automata manageable by truncating it at a certain length.

    UseLazyQuantifier

    Gets a value indicating whether to use lazy quantifiers.

    Declaration
    public bool UseLazyQuantifier { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Equals(Object)

    Compares this object with a given one.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with.

    Returns
    Type Description
    Boolean

    true if this object equals to the given one, false otherwise.

    Overrides
    Object.Equals(Object)

    GetHashCode()

    Computes the hash code of this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The computed hash code.

    Overrides
    Object.GetHashCode()
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.