Class NumberToken
Inheritance
System.Object
NumberToken
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class NumberToken : Token, ILocalizableToken
Constructors
Declaration
public NumberToken(NumberToken other)
Parameters
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 |
System.String |
text |
|
NumericSeparator |
groupSeparator |
|
NumericSeparator |
decimalSeparator |
|
System.Char |
alternateGroupSeparator |
|
System.Char |
alternateDecimalSeparator |
|
Sign |
sign |
|
System.String |
rawSign |
|
System.String |
rawDecimalDigits |
|
System.String |
rawFractionalDigits |
|
Declaration
public NumberToken(string text, string sign, string decimalPart, string fractionalPart, NumberFormatInfo format)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.String |
sign |
|
System.String |
decimalPart |
|
System.String |
fractionalPart |
|
System.Globalization.NumberFormatInfo |
format |
|
Properties
Declaration
public char AlternateDecimalSeparator { get; set; }
Property Value
Type |
Description |
System.Char |
|
Declaration
public char AlternateGroupSeparator { get; set; }
Property Value
Type |
Description |
System.Char |
|
Declaration
public NumericSeparator DecimalSeparator { get; set; }
Property Value
Declaration
public NumericSeparator GroupSeparator { get; set; }
Property Value
Declaration
public override bool IsPlaceable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool IsSubstitutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public string RawDecimalDigits { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string RawFractionalDigits { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string RawSign { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public Sign Sign { get; set; }
Property Value
Declaration
public double Value { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public bool ValueValid { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public override void AcceptSegmentElementVisitor(ISegmentElementVisitor visitor)
Parameters
Overrides
Declaration
public override SegmentElement Duplicate()
Returns
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public string FormatNumber(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string FormatNumber(NumberFormatInfo nfi)
Parameters
Type |
Name |
Description |
System.Globalization.NumberFormatInfo |
nfi |
|
Returns
Type |
Description |
System.String |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
public override SegmentElement.Similarity GetSimilarity(SegmentElement other)
Parameters
Returns
Overrides
Declaration
protected override TokenType GetTokenType()
Returns
Overrides
Declaration
public virtual bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings, ILocalizableToken originalMemoryToken, bool adjustCasing)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool SetValue(Token blueprint, bool keepNumericSeparators)
Parameters
Type |
Name |
Description |
Token |
blueprint |
|
System.Boolean |
keepNumericSeparators |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual void SetValue(string sign, string decimalPart, string fractionalPart, NumberFormatInfo format)
Parameters
Type |
Name |
Description |
System.String |
sign |
|
System.String |
decimalPart |
|
System.String |
fractionalPart |
|
System.Globalization.NumberFormatInfo |
format |
|
Implements