Class ICU4XReorderedIndexMap

Thin wrapper around a vector that maps visual indices to source indices

map[visualIndex] = sourceIndex

Produced by reorder_visual() on ICU4XBidi.

Constructors

Methods

Constructors

Methods

  • Get this as a slice/array of indices

    Returns Uint32Array

  • 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)

    Parameters

    • index: number

    Returns number

  • Whether this map is empty

    Returns boolean

  • The length of this map

    Returns number