| NumberToken Class |
Namespace: Sdl.LanguagePlatform.Core.Tokenization
The NumberToken type exposes the following members.
| Name | Description | |
|---|---|---|
| NumberToken(NumberToken) |
Initializes a new instance with the values of another instance, creating a deep copy.
| |
| NumberToken(String, String, String, String, NumberFormatInfo) |
Initializes a new instance with the specified values.
| |
| NumberToken(String, NumericSeparator, NumericSeparator, Char, Char, Sign, String, String, String) |
Initializes a new instance with the specified values.
|
| Name | Description | |
|---|---|---|
| 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.
| |
| 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.
| |
| DecimalSeparator |
Gets or sets the decimal separator
| |
| GroupSeparator |
Gets or sets the group separator
| |
| IsPlaceable | IsPlaceable. Always true for this class.
(Overrides TokenIsPlaceable.) | |
| IsPunctuation |
true iff the token is a general punctuation, an opening punctuation, or a closing punctuation
(Inherited from Token.) | |
| IsSubstitutable | IsSubstitutable. Always true for this class.
(Overrides TokenIsSubstitutable.) | |
| IsWhitespace |
Gets a value which indicates whether this token is a whitespace token or not.
(Inherited from Token.) | |
| IsWord |
true iff the token is a word, an abbreviation, or an acronym
(Inherited from Token.) | |
| RawDecimalDigits |
Gets or sets the raw decimal digits, which are a sequence of digits without
separators or signs.
| |
| RawFractionalDigits |
Gets or sets the raw fractional digits, which are a sequence of digits without
separators or signs.
| |
| RawSign |
Gets or sets the "raw" sign, i.e. the textual representation of the sign
| |
| Sign |
Gets or sets the sign.
| |
| Span |
Gets or sets the span covered by this token in the original segment.
(Inherited from Token.) | |
| Text |
Gets or sets the token's text.
(Inherited from Token.) | |
| Type |
Gets, or sets, the TokenType of this token.
(Inherited from Token.) | |
| Value |
Gets or sets the numeric value. Do not use the setter, it is for internal purposes only.
| |
| ValueValid |
Gets or sets the flag whether the numeric value is valid or not. Do not use the setter, it is for internal purposes only.
|
| Name | Description | |
|---|---|---|
| AcceptSegmentElementVisitor |
Visitor pattern implementation. Calls VisitNumberToken(NumberToken).
(Overrides SegmentElementAcceptSegmentElementVisitor(ISegmentElementVisitor).) | |
| Duplicate |
See Duplicate (Overrides SegmentElementDuplicate.) | |
| Equals | Equals(object) (Overrides TokenEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FormatNumber(CultureInfo) |
Format the number according to the provided culture, applying overrides for
separators as appropriate. This method uses a proprietary implementation for
the formatting and does not use the default .Net formatting methods.
| |
| FormatNumber(NumberFormatInfo) |
Format the number according to the provided number format information, applying overrides for
separators as appropriate. This method uses a proprietary implementation for
the formatting and does not use the default .Net formatting methods.
| |
| GetHashCode | GetHashCode(object) (Overrides TokenGetHashCode.) | |
| GetSimilarity | (Overrides SegmentElementGetSimilarity(SegmentElement).) | |
| GetTokenType | (Overrides TokenGetTokenType.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetWeakHashCode |
See GetWeakHashCode (Inherited from Token.) | |
| Localize(CultureInfo, AutoLocalizationSettings) |
Auto-localizes the token according to the settings of the specified target culture
and the provided auto-localization settings. The text of the token will be changed,
but not the values.
For some token types, special AutoLocalizationSettings will be used, if provided. | |
| Localize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean) |
Auto-localizes the token according to the settings of the specified target culture
and the provided auto-localization settings. The text of the token will be changed,
but not the values.
For some token types, special AutoLocalizationSettings will be used, if provided. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetTokenType | (Inherited from Token.) | |
| SetValue(Token, Boolean) |
Overwrites the current token's value with the value from blueprint, which
also must be a DateTimeToken. Note that only the value and the type are
overwritten, not the textual representation.
| |
| SetValue(String, String, String, NumberFormatInfo) |
Overwrites the current token values with the specified values.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |