ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ICU4XCodePointMapData16 Class Reference

#include <ICU4XCodePointMapData16.hpp>

Public Member Functions

uint16_t get (char32_t cp) const
 
uint16_t get32 (uint32_t cp) const
 
CodePointRangeIterator iter_ranges_for_value (uint16_t value) const
 
CodePointRangeIterator iter_ranges_for_value_complemented (uint16_t value) const
 
ICU4XCodePointSetData get_set_for_value (uint16_t value) const
 
 ICU4XCodePointMapData16 (capi::ICU4XCodePointMapData16 *i)
 
 ICU4XCodePointMapData16 ()=default
 
 ICU4XCodePointMapData16 (ICU4XCodePointMapData16 &&) noexcept=default
 
ICU4XCodePointMapData16operator= (ICU4XCodePointMapData16 &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XCodePointMapData16, ICU4XErrorload_script (const ICU4XDataProvider &provider)
 

Detailed Description

An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.

For properties whose values fit into 16 bits.

See the Rust documentation for properties for more information.

See the Rust documentation for CodePointMapData for more information.

See the Rust documentation for CodePointMapDataBorrowed for more information.

Constructor & Destructor Documentation

◆ ICU4XCodePointMapData16() [1/3]

ICU4XCodePointMapData16::ICU4XCodePointMapData16 ( capi::ICU4XCodePointMapData16 * i)
inlineexplicit

◆ ICU4XCodePointMapData16() [2/3]

ICU4XCodePointMapData16::ICU4XCodePointMapData16 ( )
default

◆ ICU4XCodePointMapData16() [3/3]

ICU4XCodePointMapData16::ICU4XCodePointMapData16 ( ICU4XCodePointMapData16 && )
defaultnoexcept

Member Function Documentation

◆ get()

uint16_t ICU4XCodePointMapData16::get ( char32_t cp) const
inline

Gets the value for a code point.

See the Rust documentation for get for more information.

◆ get32()

uint16_t ICU4XCodePointMapData16::get32 ( uint32_t cp) const
inline

Gets the value for a code point (specified as a 32 bit integer, in UTF-32)

◆ get_set_for_value()

ICU4XCodePointSetData ICU4XCodePointMapData16::get_set_for_value ( uint16_t value) const
inline

Gets a [ICU4XCodePointSetData] representing all entries in this map that map to the given value

See the Rust documentation for get_set_for_value for more information.

◆ iter_ranges_for_value()

CodePointRangeIterator ICU4XCodePointMapData16::iter_ranges_for_value ( uint16_t value) const
inline

Produces an iterator over ranges of code points that map to value

See the Rust documentation for iter_ranges_for_value for more information.

Lifetimes: this must live at least as long as the output.

◆ iter_ranges_for_value_complemented()

CodePointRangeIterator ICU4XCodePointMapData16::iter_ranges_for_value_complemented ( uint16_t value) const
inline

Produces an iterator over ranges of code points that do not map to value

See the Rust documentation for iter_ranges_for_value_complemented for more information.

Lifetimes: this must live at least as long as the output.

◆ load_script()

diplomat::result< ICU4XCodePointMapData16, ICU4XError > ICU4XCodePointMapData16::load_script ( const ICU4XDataProvider & provider)
inlinestatic

See the Rust documentation for script for more information.

◆ operator=()

ICU4XCodePointMapData16 & ICU4XCodePointMapData16::operator= ( ICU4XCodePointMapData16 && other)
defaultnoexcept

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