blob: e3bd0ae2bb9c46daaae4a9d0756a8386f673552e (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
``fallbacker::ffi``
===================
.. js:class:: ICU4XLocaleFallbackConfig
Collection of configurations for the ICU4X fallback algorithm.
See the `Rust documentation for LocaleFallbackConfig <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackConfig.html>`__ for more information.
.. js:attribute:: priority
Choice of priority mode.
.. js:attribute:: extension_key
An empty string is considered ``None``.
.. js:attribute:: fallback_supplement
Fallback supplement data key to customize fallback rules.
.. js:class:: ICU4XLocaleFallbackIterator
An iterator over the locale under fallback.
See the `Rust documentation for LocaleFallbackIterator <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackIterator.html>`__ for more information.
.. js:method:: get()
Gets a snapshot of the current state of the locale.
See the `Rust documentation for get <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackIterator.html#method.get>`__ for more information.
.. js:method:: step()
Performs one step of the fallback algorithm, mutating the locale.
See the `Rust documentation for step <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackIterator.html#method.step>`__ for more information.
.. js:class:: ICU4XLocaleFallbackPriority
Priority mode for the ICU4X fallback algorithm.
See the `Rust documentation for LocaleFallbackPriority <https://docs.rs/icu/latest/icu/locid_transform/fallback/enum.LocaleFallbackPriority.html>`__ for more information.
.. js:class:: ICU4XLocaleFallbackSupplement
What additional data is required to load when performing fallback.
See the `Rust documentation for LocaleFallbackSupplement <https://docs.rs/icu/latest/icu/locid_transform/fallback/enum.LocaleFallbackSupplement.html>`__ for more information.
.. js:class:: ICU4XLocaleFallbacker
An object that runs the ICU4X locale fallback algorithm.
See the `Rust documentation for LocaleFallbacker <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html>`__ for more information.
.. js:function:: create(provider)
Creates a new ``ICU4XLocaleFallbacker`` from a data provider.
See the `Rust documentation for new <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html#method.new>`__ for more information.
.. js:function:: create_without_data()
Creates a new ``ICU4XLocaleFallbacker`` without data for limited functionality.
See the `Rust documentation for new_without_data <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html#method.new_without_data>`__ for more information.
.. js:method:: for_config(config)
Associates this ``ICU4XLocaleFallbacker`` with configuration options.
See the `Rust documentation for for_config <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html#method.for_config>`__ for more information.
.. js:class:: ICU4XLocaleFallbackerWithConfig
An object that runs the ICU4X locale fallback algorithm with specific configurations.
See the `Rust documentation for LocaleFallbacker <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html>`__ for more information.
See the `Rust documentation for LocaleFallbackerWithConfig <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbackerWithConfig.html>`__ for more information.
.. js:method:: fallback_for_locale(locale)
Creates an iterator from a locale with each step of fallback.
See the `Rust documentation for fallback_for <https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html#method.fallback_for>`__ for more information.
|