summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XScriptExtensionsSet.d.ts
blob: dcef951fcb9408122b567f486d19ab863af0df8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { u16, usize } from "./diplomat-runtime"
import { FFIError } from "./diplomat-runtime"

/**

 * An object that represents the Script_Extensions property for a single character

 * See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptExtensionsSet.html Rust documentation for `ScriptExtensionsSet`} for more information.
 */
export class ICU4XScriptExtensionsSet {

  /**

   * Check if the Script_Extensions property of the given code point covers the given script

   * See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptExtensionsSet.html#method.contains Rust documentation for `contains`} for more information.
   */
  contains(script: u16): boolean;

  /**

   * Get the number of scripts contained in here

   * See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptExtensionsSet.html#method.iter Rust documentation for `iter`} for more information.
   */
  count(): usize;

  /**

   * Get script at index, returning an error if out of bounds

   * See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptExtensionsSet.html#method.iter Rust documentation for `iter`} for more information.
   * @throws {@link FFIError}<void>
   */
  script_at(index: usize): u16 | never;
}