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

#include <BidiParagraph.d.hpp>

Public Member Functions

bool set_paragraph_in_text (size_t n)
 
icu4x::BidiDirection direction () const
 
size_t size () const
 
size_t range_start () const
 
size_t range_end () const
 
std::optional< std::string > reorder_line (size_t range_start, size_t range_end) const
 
uint8_t level_at (size_t pos) const
 

Static Public Member Functions

static void operator delete (void *ptr)
 

Detailed Description

Bidi information for a single processed paragraph

Member Function Documentation

◆ direction()

icu4x::BidiDirection icu4x::BidiParagraph::direction ( ) const
inline

The primary direction of this paragraph

See the Rust documentation for level_at for more information.

◆ level_at()

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

Get the BIDI level at a particular byte index in this paragraph. 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

See the Rust documentation for level_at for more information.

◆ operator delete()

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

◆ range_end()

size_t icu4x::BidiParagraph::range_end ( ) const
inline

The end index of this paragraph within the source text

◆ range_start()

size_t icu4x::BidiParagraph::range_start ( ) const
inline

The start index of this paragraph within the source text

◆ reorder_line()

std::optional< std::string > icu4x::BidiParagraph::reorder_line ( size_t range_start,
size_t range_end ) const
inline

Reorder a line based on display order. The ranges are specified relative to the source text and must be contained within this paragraph's range.

See the Rust documentation for level_at for more information.

◆ set_paragraph_in_text()

bool icu4x::BidiParagraph::set_paragraph_in_text ( size_t n)
inline

Given a paragraph index n within the surrounding text, this sets this object to the paragraph at that index. Returns nothing when out of bounds.

This is equivalent to calling paragraph_at() on BidiInfo but doesn't create a new object

◆ size()

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

The number of bytes in this paragraph

See the Rust documentation for len for more information.


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