#include <BidiParagraph.d.hpp>
Bidi information for a single processed paragraph
◆ direction()
◆ 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 documentation for this class was generated from the following files: