|
ICU4X
International Components for Unicode
|
#include <ICU4XReorderedIndexMap.hpp>
Public Member Functions | |
| const diplomat::span< const size_t > | as_slice () const |
| size_t | len () const |
| bool | is_empty () const |
| size_t | get (size_t index) const |
| ICU4XReorderedIndexMap (capi::ICU4XReorderedIndexMap *i) | |
| ICU4XReorderedIndexMap ()=default | |
| ICU4XReorderedIndexMap (ICU4XReorderedIndexMap &&) noexcept=default | |
| ICU4XReorderedIndexMap & | operator= (ICU4XReorderedIndexMap &&other) noexcept=default |
Thin wrapper around a vector that maps visual indices to source indices
map[visualIndex] = sourceIndex
Produced by reorder_visual() on [ICU4XBidi].
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inline |
Get this as a slice/array of indices
Lifetimes: this must live at least as long as the output.
|
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)
|
inline |
Whether this map is empty
|
inline |
The length of this map
|
defaultnoexcept |