Class CurrencyFormat
Defines a currency symbol (e.g. $, £, USD) along with permissible options for positioning and separator
Implements
Inherited Members
Namespace: SdlSdl.LanguagePlatformCoreTokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class CurrencyFormat : ICloneable
Constructors
CurrencyFormat()
Declaration
public CurrencyFormat()
Properties
Category
Identifies equivalences if needed between currency symbols e.g. to ensure USD is localized as $
Declaration
public string Category { get; set; }
Property Value
Type | Description |
---|---|
string |
CurrencySymbolPositions
The permissible position(s) for the symbol with respect to the currency amount
Declaration
public List<CurrencySymbolPosition> CurrencySymbolPositions { get; set; }
Property Value
Type | Description |
---|---|
ListCurrencySymbolPosition |
Remarks
If specified, the first position in the list is preferred when localizing.
Separators
The separators permissible between the symbol and the amount. This can include '\0' (no separator) or any whitespace character (space, non-break-space, wide space etc.) If null or empty, a default set of whitespace characters and '\0' will be used.
Declaration
public HashSet<char> Separators { get; set; }
Property Value
Type | Description |
---|---|
HashSetchar |
Symbol
The symbol for this currency format, e.g. $, £, USD
Declaration
public string Symbol { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
object | A new object that is a deep copy of this instance. |