| 1 |
import { u16, u32 } from "./diplomat-runtime" |
| 2 |
import { ICU4XCodePointSetData } from "./ICU4XCodePointSetData"; |
| 3 |
import { ICU4XScriptExtensionsSet } from "./ICU4XScriptExtensionsSet"; |
| 4 |
|
| 5 |
/** |
| 6 |
|
| 7 |
* A slightly faster ICU4XScriptWithExtensions object |
| 8 |
|
| 9 |
* See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html Rust documentation for `ScriptWithExtensionsBorrowed`} for more information. |
| 10 |
*/ |
| 11 |
export class ICU4XScriptWithExtensionsBorrowed { |
| 12 |
|
| 13 |
/** |
| 14 |
|
| 15 |
* Get the Script property value for a code point |
| 16 |
|
| 17 |
* See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_val Rust documentation for `get_script_val`} for more information. |
| 18 |
*/ |
| 19 |
get_script_val(code_point: u32): u16; |
| 20 |
|
| 21 |
/** |
| 22 |
|
| 23 |
* Get the Script property value for a code point |
| 24 |
|
| 25 |
* See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_extensions_val Rust documentation for `get_script_extensions_val`} for more information. |
| 26 |
*/ |
| 27 |
get_script_extensions_val(code_point: u32): ICU4XScriptExtensionsSet; |
| 28 |
|
| 29 |
/** |
| 30 |
|
| 31 |
* Check if the Script_Extensions property of the given code point covers the given script |
| 32 |
|
| 33 |
* See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.has_script Rust documentation for `has_script`} for more information. |
| 34 |
*/ |
| 35 |
has_script(code_point: u32, script: u16): boolean; |
| 36 |
|
| 37 |
/** |
| 38 |
|
| 39 |
* Build the CodePointSetData corresponding to a codepoints matching a particular script in their Script_Extensions |
| 40 |
|
| 41 |
* See the {@link https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_extensions_set Rust documentation for `get_script_extensions_set`} for more information. |
| 42 |
*/ |
| 43 |
get_script_extensions_set(script: u16): ICU4XCodePointSetData; |
| 44 |
} |