summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/data_struct_ffi.rst
blob: ad9e71f821ac5d8d0825619cff7d43b177c25b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
``data_struct::ffi``
====================

.. js:class:: ICU4XDataStruct

    A generic data struct to be used by ICU4X

    This can be used to construct a StructDataProvider.


    .. js:function:: create_decimal_symbols_v1(plus_sign_prefix, plus_sign_suffix, minus_sign_prefix, minus_sign_suffix, decimal_separator, grouping_separator, primary_group_size, secondary_group_size, min_group_size, digits)

        Construct a new DecimalSymbolsV1 data struct.

        C++ users: All string arguments must be valid UTF8

        See the `Rust documentation for DecimalSymbolsV1 <https://docs.rs/icu/latest/icu/decimal/provider/struct.DecimalSymbolsV1.html>`__ for more information.

        - Note: ``digits`` should be an ArrayBuffer or TypedArray corresponding to the slice type expected by Rust.