• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { CodePointRangeIterator } from "./CodePointRangeIterator"
3import type { CodePointSetData } from "./CodePointSetData"
4import type { DataError } from "./DataError"
5import type { DataProvider } from "./DataProvider"
6import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
7
8
9/** An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.
10*
11*For properties whose values fit into 16 bits.
12*
13*See the [Rust documentation for `properties`](https://docs.rs/icu/latest/icu/properties/index.html) for more information.
14*
15*See the [Rust documentation for `CodePointMapData`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapData.html) for more information.
16*
17*See the [Rust documentation for `CodePointMapDataBorrowed`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html) for more information.
18*/
19
20
21export class CodePointMapData16 {
22
23    get ffiValue(): pointer;
24
25    get(cp: codepoint): number;
26
27    iterRangesForValue(value: number): CodePointRangeIterator;
28
29    iterRangesForValueComplemented(value: number): CodePointRangeIterator;
30
31    getSetForValue(value: number): CodePointSetData;
32
33    static createScript(): CodePointMapData16;
34
35    static createScriptWithProvider(provider: DataProvider): CodePointMapData16;
36}