summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/pluralrules_ffi.rst
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/docs/source/pluralrules_ffi.rst')
-rw-r--r--intl/icu_capi/js/package/docs/source/pluralrules_ffi.rst84
1 files changed, 84 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/docs/source/pluralrules_ffi.rst b/intl/icu_capi/js/package/docs/source/pluralrules_ffi.rst
new file mode 100644
index 0000000000..ca29ec47e0
--- /dev/null
+++ b/intl/icu_capi/js/package/docs/source/pluralrules_ffi.rst
@@ -0,0 +1,84 @@
+``pluralrules::ffi``
+====================
+
+.. js:class:: ICU4XPluralCategories
+
+ FFI version of ``PluralRules::categories()`` data.
+
+
+ .. js:attribute:: zero
+
+ .. js:attribute:: one
+
+ .. js:attribute:: two
+
+ .. js:attribute:: few
+
+ .. js:attribute:: many
+
+ .. js:attribute:: other
+
+.. js:class:: ICU4XPluralCategory
+
+ FFI version of ``PluralCategory``.
+
+ See the `Rust documentation for PluralCategory <https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html>`__ for more information.
+
+
+ .. js:function:: get_for_cldr_string(s)
+
+ Construct from a string in the format `specified in TR35 <https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules>`__
+
+ See the `Rust documentation for get_for_cldr_string <https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html#method.get_for_cldr_string>`__ for more information.
+
+ See the `Rust documentation for get_for_cldr_bytes <https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html#method.get_for_cldr_bytes>`__ for more information.
+
+
+.. js:class:: ICU4XPluralOperands
+
+ FFI version of ``PluralOperands``.
+
+ See the `Rust documentation for PluralOperands <https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html>`__ for more information.
+
+
+ .. js:function:: create_from_string(s)
+
+ Construct for a given string representing a number
+
+ See the `Rust documentation for from_str <https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html#method.from_str>`__ for more information.
+
+
+.. js:class:: ICU4XPluralRules
+
+ FFI version of ``PluralRules``.
+
+ See the `Rust documentation for PluralRules <https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html>`__ for more information.
+
+
+ .. js:function:: create_cardinal(provider, locale)
+
+ Construct an :js:class:`ICU4XPluralRules` for the given locale, for cardinal numbers
+
+ See the `Rust documentation for try_new_cardinal <https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html#method.try_new_cardinal>`__ for more information.
+
+
+ .. js:function:: create_ordinal(provider, locale)
+
+ Construct an :js:class:`ICU4XPluralRules` for the given locale, for ordinal numbers
+
+ See the `Rust documentation for try_new_ordinal <https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html#method.try_new_ordinal>`__ for more information.
+
+
+ .. js:method:: category_for(op)
+
+ Get the category for a given number represented as operands
+
+ See the `Rust documentation for category_for <https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html#method.category_for>`__ for more information.
+
+
+ .. js:method:: categories()
+
+ Get all of the categories needed in the current locale
+
+ See the `Rust documentation for categories <https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html#method.categories>`__ for more information.
+