Search Results for

    Show / Hide Table of Contents

    Class NumberToken

    A Token representing a numerical value.

    Inheritance
    object
    Token
    NumberToken
    MeasureToken
    Implements
    ICloneable<Token>
    Inherited Members
    Token.Clone()
    Token.ToString()
    Token.Text
    Token.Span
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Sdl.Core.Bcm.BcmModel.Tokenization.Tokens
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    [DataContract]
    public class NumberToken : Token, ICloneable<Token>

    Constructors

    NumberToken()

    Initializes a new instance of the NumberToken class.

    Declaration
    public NumberToken()

    NumberToken(string, NumericSeparator, NumericSeparator, char, char, Sign, string, string, string)

    Initializes a new instance with the specified values.

    Declaration
    public NumberToken(string text, NumericSeparator groupSeparator, NumericSeparator decimalSeparator, char alternateGroupSeparator, char alternateDecimalSeparator, Sign sign, string rawSign, string rawDecimalDigits, string rawFractionalDigits)
    Parameters
    Type Name Description
    string text

    The text of the token, as it appeared in the input

    NumericSeparator groupSeparator

    The type of group separator used

    NumericSeparator decimalSeparator

    The type of decimal separator used

    char alternateGroupSeparator

    The character of an alternative group separator, if used

    char alternateDecimalSeparator

    The character of an alternative decimal separator, if used

    Sign sign

    The type of sign used

    string rawSign

    The "raw text" of the sign

    string rawDecimalDigits

    The "raw decimal digits", without separators, between 0-9

    string rawFractionalDigits

    The "raw fractional digits", without separators, between 0-9

    Properties

    AlternateDecimalSeparator

    Gets or sets an alternate decimal separator, which is a single char if an alternate separator is used, or the null character if no alternate separator is used.

    Declaration
    [DataMember(Name = "alternateDecimalSeparator")]
    public char AlternateDecimalSeparator { get; set; }
    Property Value
    Type Description
    char

    AlternateGroupSeparator

    Gets or sets an alternate group separator, which is a single char if an alternate separator is used, or the null character if no alternate separator is used.

    Declaration
    [DataMember(Name = "alternateGroupSeparator")]
    public char AlternateGroupSeparator { get; set; }
    Property Value
    Type Description
    char

    DecimalSeparator

    Gets or sets the decimal separator

    Declaration
    [DataMember(Name = "decimalSeparator")]
    public NumericSeparator DecimalSeparator { get; set; }
    Property Value
    Type Description
    NumericSeparator

    GroupSeparator

    Gets or sets the group separator

    Declaration
    [DataMember(Name = "groupSeparator")]
    public NumericSeparator GroupSeparator { get; set; }
    Property Value
    Type Description
    NumericSeparator

    RawDecimalDigits

    Gets or sets the raw decimal digits, which are a sequence of digits without separators or signs.

    Declaration
    [DataMember(Name = "rawDecimalDigits")]
    public string RawDecimalDigits { get; set; }
    Property Value
    Type Description
    string

    RawFractionalDigits

    Gets or sets the raw fractional digits, which are a sequence of digits without separators or signs.

    Declaration
    [DataMember(Name = "rawFractionalDigits")]
    public string RawFractionalDigits { get; set; }
    Property Value
    Type Description
    string

    RawSign

    Gets or sets the "raw" sign, i.e. the textual representation of the sign

    Declaration
    [DataMember(Name = "rawSign")]
    public string RawSign { get; set; }
    Property Value
    Type Description
    string

    Sign

    Gets or sets the sign.

    Declaration
    [DataMember(Name = "sign")]
    public Sign Sign { get; set; }
    Property Value
    Type Description
    Sign

    Type

    Gets the type of Token.

    Declaration
    [DataMember(Name = "type")]
    protected override string Type { get; }
    Property Value
    Type Description
    string

    The type.

    Overrides
    Token.Type

    Implements

    ICloneable<T>

    See Also

    Token
    In this article
    Back to top Generated by DocFX