summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/locale_directionality_ffi.rst
blob: 546a899102d6cb0c4225a3079106abd167c65f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
``locale_directionality::ffi``
==============================

.. js:class:: ICU4XLocaleDirection

    See the `Rust documentation for Direction <https://docs.rs/icu/latest/icu/locid_transform/enum.Direction.html>`__ for more information.


.. js:class:: ICU4XLocaleDirectionality

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


    .. js:function:: create(provider)

        Construct a new ICU4XLocaleDirectionality instance

        See the `Rust documentation for new <https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.new>`__ for more information.


    .. js:function:: create_with_expander(provider, expander)

        Construct a new ICU4XLocaleDirectionality instance with a custom expander

        See the `Rust documentation for new_with_expander <https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.new_with_expander>`__ for more information.


    .. js:method:: get(locale)

        See the `Rust documentation for get <https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.get>`__ for more information.


    .. js:method:: is_left_to_right(locale)

        See the `Rust documentation for is_left_to_right <https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.is_left_to_right>`__ for more information.


    .. js:method:: is_right_to_left(locale)

        See the `Rust documentation for is_right_to_left <https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.is_right_to_left>`__ for more information.