• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { CodePointRangeIterator } from "./CodePointRangeIterator"
3import type { DataError } from "./DataError"
4import type { DataProvider } from "./DataProvider"
5import type { ScriptWithExtensionsBorrowed } from "./ScriptWithExtensionsBorrowed"
6import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
7
8
9/** An ICU4X ScriptWithExtensions map object, capable of holding a map of codepoints to scriptextensions values
10*
11*See the [Rust documentation for `ScriptWithExtensions`](https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensions.html) for more information.
12*/
13
14
15export class ScriptWithExtensions {
16
17    get ffiValue(): pointer;
18
19    static createWithProvider(provider: DataProvider): ScriptWithExtensions;
20
21    getScriptVal(ch: codepoint): number;
22
23    hasScript(ch: codepoint, script: number): boolean;
24
25    get asBorrowed(): ScriptWithExtensionsBorrowed;
26
27    iterRangesForScript(script: number): CodePointRangeIterator;
28
29    constructor();
30}