ICU4X
International Components for Unicode
|
#include <ReorderedIndexMap.d.hpp>
Public Member Functions | |
diplomat::span< const size_t > | as_slice () const |
size_t | len () const |
bool | is_empty () const |
size_t | operator[] (size_t index) const |
Static Public Member Functions | |
static void | operator delete (void *ptr) |
Thin wrapper around a vector that maps visual indices to source indices
map[visualIndex] = sourceIndex
Produced by reorder_visual()
on Bidi
.
|
inline |
Get this as a slice/array of indices
|
inline |
Whether this map is empty
|
inline |
The length of this map
|
inlinestatic |
|
inline |
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)