From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../icu_capi/js/package/docs/source/script_ffi.rst | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 intl/icu_capi/js/package/docs/source/script_ffi.rst (limited to 'intl/icu_capi/js/package/docs/source/script_ffi.rst') diff --git a/intl/icu_capi/js/package/docs/source/script_ffi.rst b/intl/icu_capi/js/package/docs/source/script_ffi.rst new file mode 100644 index 0000000000..23a94bdb19 --- /dev/null +++ b/intl/icu_capi/js/package/docs/source/script_ffi.rst @@ -0,0 +1,105 @@ +``script::ffi`` +=============== + +.. js:class:: ICU4XScriptExtensionsSet + + An object that represents the Script_Extensions property for a single character + + See the `Rust documentation for ScriptExtensionsSet `__ for more information. + + + .. js:method:: contains(script) + + Check if the Script_Extensions property of the given code point covers the given script + + See the `Rust documentation for contains `__ for more information. + + + .. js:method:: count() + + Get the number of scripts contained in here + + See the `Rust documentation for iter `__ for more information. + + + .. js:method:: script_at(index) + + Get script at index, returning an error if out of bounds + + See the `Rust documentation for iter `__ for more information. + + +.. js:class:: ICU4XScriptWithExtensions + + An ICU4X ScriptWithExtensions map object, capable of holding a map of codepoints to scriptextensions values + + See the `Rust documentation for ScriptWithExtensions `__ for more information. + + + .. js:function:: create(provider) + + See the `Rust documentation for script_with_extensions `__ for more information. + + + .. js:method:: get_script_val(code_point) + + Get the Script property value for a code point + + See the `Rust documentation for get_script_val `__ for more information. + + + .. js:method:: has_script(code_point, script) + + Check if the Script_Extensions property of the given code point covers the given script + + See the `Rust documentation for has_script `__ for more information. + + + .. js:method:: as_borrowed() + + Borrow this object for a slightly faster variant with more operations + + See the `Rust documentation for as_borrowed `__ for more information. + + + .. js:method:: iter_ranges_for_script(script) + + Get a list of ranges of code points that contain this script in their Script_Extensions values + + See the `Rust documentation for get_script_extensions_ranges `__ for more information. + + +.. js:class:: ICU4XScriptWithExtensionsBorrowed + + A slightly faster ICU4XScriptWithExtensions object + + See the `Rust documentation for ScriptWithExtensionsBorrowed `__ for more information. + + + .. js:method:: get_script_val(code_point) + + Get the Script property value for a code point + + See the `Rust documentation for get_script_val `__ for more information. + + + .. js:method:: get_script_extensions_val(code_point) + + Get the Script property value for a code point + + See the `Rust documentation for get_script_extensions_val `__ for more information. + + + .. js:method:: has_script(code_point, script) + + Check if the Script_Extensions property of the given code point covers the given script + + See the `Rust documentation for has_script `__ for more information. + + + .. js:method:: get_script_extensions_set(script) + + Build the CodePointSetData corresponding to a codepoints matching a particular script in their Script_Extensions + + See the `Rust documentation for get_script_extensions_set `__ for more information. + -- cgit v1.2.3