summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst')
-rw-r--r--intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst35
1 files changed, 35 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst b/intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst
new file mode 100644
index 0000000000..e9151aa50a
--- /dev/null
+++ b/intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst
@@ -0,0 +1,35 @@
+``iana_bcp47_mapper::ffi``
+==========================
+
+.. js:class:: ICU4XBcp47ToIanaMapper
+
+ An object capable of mapping from a BCP-47 time zone ID to an IANA ID.
+
+ See the `Rust documentation for IanaBcp47RoundTripMapper <https://docs.rs/icu/latest/icu/timezone/struct.IanaBcp47RoundTripMapper.html>`__ for more information.
+
+
+ .. js:function:: create(provider)
+
+ See the `Rust documentation for new <https://docs.rs/icu/latest/icu/timezone/struct.IanaBcp47RoundTripMapper.html#method.new>`__ for more information.
+
+
+ .. js:method:: get(value)
+
+ Writes out the canonical IANA time zone ID corresponding to the given BCP-47 ID.
+
+ See the `Rust documentation for bcp47_to_iana <https://docs.rs/icu/latest/icu/datetime/time_zone/struct.IanaBcp47RoundTripMapper.html#method.bcp47_to_iana>`__ for more information.
+
+
+.. js:class:: ICU4XIanaToBcp47Mapper
+
+ An object capable of mapping from an IANA time zone ID to a BCP-47 ID.
+
+ This can be used via ``try_set_iana_time_zone_id()`` on ```ICU4XCustomTimeZone`` <crate::timezone::ffi::ICU4XCustomTimeZone>`__.
+
+ See the `Rust documentation for IanaToBcp47Mapper <https://docs.rs/icu/latest/icu/timezone/struct.IanaToBcp47Mapper.html>`__ for more information.
+
+
+ .. js:function:: create(provider)
+
+ See the `Rust documentation for new <https://docs.rs/icu/latest/icu/timezone/struct.IanaToBcp47Mapper.html#method.new>`__ for more information.
+