Class ICU4XDataStruct

A generic data struct to be used by ICU4X

This can be used to construct a StructDataProvider.

Constructors

Methods

  • Construct a new DecimalSymbolsV1 data struct.

    Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.

    Digits needs to be a 10-character-long slice of valid Unicode characters, otherwise null is returned.

    See the Rust documentation for DecimalSymbolsV1 for more information.

    Parameters

    • plus_sign_prefix: string
    • plus_sign_suffix: string
    • minus_sign_prefix: string
    • minus_sign_suffix: string
    • decimal_separator: string
    • grouping_separator: string
    • primary_group_size: number
    • secondary_group_size: number
    • min_group_size: number
    • digits: Uint32Array

    Returns ICU4XDataStruct