diff options
Diffstat (limited to 'intl/icu_capi/js/package/docs/source/displaynames_ffi.rst')
-rw-r--r-- | intl/icu_capi/js/package/docs/source/displaynames_ffi.rst | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/docs/source/displaynames_ffi.rst b/intl/icu_capi/js/package/docs/source/displaynames_ffi.rst new file mode 100644 index 0000000000..97002eef7e --- /dev/null +++ b/intl/icu_capi/js/package/docs/source/displaynames_ffi.rst @@ -0,0 +1,75 @@ +``displaynames::ffi`` +===================== + +.. js:class:: ICU4XDisplayNamesFallback + + See the `Rust documentation for Fallback <https://docs.rs/icu/latest/icu/displaynames/options/enum.Fallback.html>`__ for more information. + + +.. js:class:: ICU4XDisplayNamesOptionsV1 + + See the `Rust documentation for DisplayNamesOptions <https://docs.rs/icu/latest/icu/displaynames/options/struct.DisplayNamesOptions.html>`__ for more information. + + + .. js:attribute:: style + + The optional formatting style to use for display name. + + + .. js:attribute:: fallback + + The fallback return when the system does not have the requested display name, defaults to "code". + + + .. js:attribute:: language_display + + The language display kind, defaults to "dialect". + + +.. js:class:: ICU4XDisplayNamesStyle + + See the `Rust documentation for Style <https://docs.rs/icu/latest/icu/displaynames/options/enum.Style.html>`__ for more information. + + +.. js:class:: ICU4XLanguageDisplay + + See the `Rust documentation for LanguageDisplay <https://docs.rs/icu/latest/icu/displaynames/options/enum.LanguageDisplay.html>`__ for more information. + + +.. js:class:: ICU4XLocaleDisplayNamesFormatter + + See the `Rust documentation for LocaleDisplayNamesFormatter <https://docs.rs/icu/latest/icu/displaynames/struct.LocaleDisplayNamesFormatter.html>`__ for more information. + + + .. js:function:: create(provider, locale, options) + + Creates a new ``LocaleDisplayNamesFormatter`` from locale data and an options bag. + + See the `Rust documentation for try_new <https://docs.rs/icu/latest/icu/displaynames/struct.LocaleDisplayNamesFormatter.html#method.try_new>`__ for more information. + + + .. js:method:: of(locale) + + Returns the locale-specific display name of a locale. + + See the `Rust documentation for of <https://docs.rs/icu/latest/icu/displaynames/struct.LocaleDisplayNamesFormatter.html#method.of>`__ for more information. + + +.. js:class:: ICU4XRegionDisplayNames + + See the `Rust documentation for RegionDisplayNames <https://docs.rs/icu/latest/icu/displaynames/struct.RegionDisplayNames.html>`__ for more information. + + + .. js:function:: create(provider, locale) + + Creates a new ``RegionDisplayNames`` from locale data and an options bag. + + See the `Rust documentation for try_new <https://docs.rs/icu/latest/icu/displaynames/struct.RegionDisplayNames.html#method.try_new>`__ for more information. + + + .. js:method:: of(region) + + Returns the locale specific display name of a region. Note that the funtion returns an empty string in case the display name for a given region code is not found. + + See the `Rust documentation for of <https://docs.rs/icu/latest/icu/displaynames/struct.RegionDisplayNames.html#method.of>`__ for more information. + |