diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /intl/icu_capi/js/package/docs/source/iana_bcp47_mapper_ffi.rst | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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.rst | 35 |
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. + |