Class TokenizationContext
Holds additional metadata for tokenization for a given culture, such as any custom formats for Number, Date etc.
Inheritance
System.Object
TokenizationContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.Core.Tokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class TokenizationContext
Constructors
TokenizationContext(CultureCode, Dictionary<DateTimePatternType, List<String>>, List<SeparatorCombination>, Dictionary<String, CustomUnitDefinition>, List<CurrencyFormat>)
Declaration
public TokenizationContext(CultureCode culture, Dictionary<DateTimePatternType, List<string>> dateTimeFormats, List<SeparatorCombination> separatorCombinations, Dictionary<string, CustomUnitDefinition> unitDefinitions, List<CurrencyFormat> currencyFormats)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | culture | |
System.Collections.Generic.Dictionary<DateTimePatternType, System.Collections.Generic.List<System.String>> | dateTimeFormats | |
System.Collections.Generic.List<SeparatorCombination> | separatorCombinations | |
System.Collections.Generic.Dictionary<System.String, CustomUnitDefinition> | unitDefinitions | |
System.Collections.Generic.List<CurrencyFormat> | currencyFormats |
Properties
Culture
Declaration
public CultureCode Culture { get; }
Property Value
Type | Description |
---|---|
Sdl.Core.Globalization.CultureCode |
CurrencyFormats
Declaration
public List<CurrencyFormat> CurrencyFormats { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<CurrencyFormat> |
DateTimeFormats
Declaration
public Dictionary<DateTimePatternType, List<string>> DateTimeFormats { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<DateTimePatternType, System.Collections.Generic.List<System.String>> |
SeparatorCombinations
Declaration
public List<SeparatorCombination> SeparatorCombinations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<SeparatorCombination> |
UnitDefinitions
Declaration
public Dictionary<string, CustomUnitDefinition> UnitDefinitions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, CustomUnitDefinition> |