ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::ReorderedIndexMap Class Reference

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

Detailed Description

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

map[visualIndex] = sourceIndex

Produced by reorder_visual() on Bidi.

Member Function Documentation

◆ as_slice()

diplomat::span< const size_t > icu4x::ReorderedIndexMap::as_slice ( ) const
inline

Get this as a slice/array of indices

◆ is_empty()

bool icu4x::ReorderedIndexMap::is_empty ( ) const
inline

Whether this map is empty

◆ len()

size_t icu4x::ReorderedIndexMap::len ( ) const
inline

The length of this map

◆ operator delete()

void icu4x::ReorderedIndexMap::operator delete ( void * ptr)
inlinestatic

◆ operator[]()

size_t icu4x::ReorderedIndexMap::operator[] ( size_t index) const
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)


The documentation for this class was generated from the following files: