blob: ef6889f2ae6197a3d9d174f9cf75df1515bd84a4 (
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
|
import { usize } from "./diplomat-runtime"
/**
* Thin wrapper around a vector that maps visual indices to source indices
* `map[visualIndex] = sourceIndex`
* Produced by `reorder_visual()` on {@link ICU4XBidi `ICU4XBidi`}.
*/
export class ICU4XReorderedIndexMap {
/**
* Get this as a slice/array of indices
*/
as_slice(): Uint32Array;
/**
* The length of this map
*/
len(): usize;
/**
* Get element at `index`. Returns 0 when out of bounds (note that 0 is also a valid in-bounds value, please use `len()` to avoid out-of-bounds)
*/
get(index: usize): usize;
}
|