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

.. cpp:class:: ICU4XDataStruct

    A generic data struct to be used by ICU4X

    This can be used to construct a StructDataProvider.


    .. cpp:function:: static diplomat::result<ICU4XDataStruct, ICU4XError> create_decimal_symbols_v1(const std::string_view plus_sign_prefix, const std::string_view plus_sign_suffix, const std::string_view minus_sign_prefix, const std::string_view minus_sign_suffix, const std::string_view decimal_separator, const std::string_view grouping_separator, uint8_t primary_group_size, uint8_t secondary_group_size, uint8_t min_group_size, const diplomat::span<const char32_t> 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.