Options
All
  • Public
  • Public/Protected
  • All
Menu

An OptionsProvider implementation that handles Custom Numeric Format String. The type of the returned options object is an extended version of Intl.NumberFormat's options parameter.

Hierarchy

  • IntlCustomOptionsProvider

Implements

Index

Constructors

constructor

Properties

Private options_

options_: NumberFormatOptions

Private parser_

parser_: CustomParser

Methods

Private getSectionFormat_

  • getSectionFormat_(format: string, value: number): string

Private parseOptions_

  • parseOptions_(format: string): void

Private resetValueDivisor_

  • resetValueDivisor_(): void

Private resolveDecoractingChar_

  • resolveDecoractingChar_(): void

resolveOptions

  • resolveOptions(format: string, value: number): NumberFormatOptions

Private setInternalDecorator_

  • setInternalDecorator_(formatChar: string): void

Private stripDefaultOptions_

  • stripDefaultOptions_(value: number): NumberFormatOptions

Private stripDigitOptions_

  • stripDigitOptions_(value: number): NumberFormatOptions

Private tryNegativeZeroSectionFormat_

  • tryNegativeZeroSectionFormat_(sections: string[], value: number): boolean

Private tryNonZeroSectionFormat_

  • tryNonZeroSectionFormat_(sections: string[], value: number): boolean

Private tryRoundToZeroFormat_

  • tryRoundToZeroFormat_(nonZeroSectionFormat: string, value: number): boolean

Object literals

Private resolvers_

resolvers_: object

escapeChar

escapeChar: undefined

literalStringDelimeterDouble

literalStringDelimeterDouble: undefined

Indicates that the enclosed characters should be copied to the result string unchanged.

literalStringDelimeterSingle

literalStringDelimeterSingle: undefined

Indicates that the enclosed characters should be copied to the result string unchanged.

sectionSeparator

sectionSeparator: undefined

decimalPoint

  • decimalPoint(): void

digitPlaceholder

  • digitPlaceholder(): void

exponent

  • exponent(): void

groupSeparatorOrNumberScaling

  • groupSeparatorOrNumberScaling(): void

perMillePlaceholder

  • perMillePlaceholder(): void

percentagePlaceholder

  • percentagePlaceholder(): void

zeroPlaceholder

  • zeroPlaceholder(): void

Generated using TypeDoc