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

#include <BidiInfo.d.hpp>

Public Member Functions

size_t paragraph_count () const
 
std::unique_ptr< icu4x::BidiParagraphparagraph_at (size_t n) const
 
size_t size () const
 
uint8_t level_at (size_t pos) const
 

Static Public Member Functions

static void operator delete (void *ptr)
 

Detailed Description

An object containing bidi information for a given string, produced by for_text() on Bidi

See the Rust documentation for BidiInfo for more information.

Member Function Documentation

◆ level_at()

uint8_t icu4x::BidiInfo::level_at ( size_t pos) const
inline

Get the BIDI level at a particular byte index in the full text. This integer is conceptually a unicode_bidi::Level, and can be further inspected using the static methods on Bidi.

Returns 0 (equivalent to Level::ltr()) on error

◆ operator delete()

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

◆ paragraph_at()

std::unique_ptr< icu4x::BidiParagraph > icu4x::BidiInfo::paragraph_at ( size_t n) const
inline

Get the nth paragraph, returning None if out of bounds

◆ paragraph_count()

size_t icu4x::BidiInfo::paragraph_count ( ) const
inline

The number of paragraphs contained here

◆ size()

size_t icu4x::BidiInfo::size ( ) const
inline

The number of bytes in this full text


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