ICU4X
International Components for Unicode
|
#include <ICU4XBidiParagraph.hpp>
Public Member Functions | |
diplomat::result< std::monostate, ICU4XError > | set_paragraph_in_text (size_t n) |
ICU4XBidiDirection | direction () const |
size_t | size () const |
size_t | range_start () const |
size_t | range_end () const |
template<typename W> | |
diplomat::result< std::monostate, ICU4XError > | reorder_line_to_writeable (size_t range_start, size_t range_end, W &out) const |
diplomat::result< std::string, ICU4XError > | reorder_line (size_t range_start, size_t range_end) const |
uint8_t | level_at (size_t pos) const |
ICU4XBidiParagraph (capi::ICU4XBidiParagraph *i) | |
ICU4XBidiParagraph ()=default | |
ICU4XBidiParagraph (ICU4XBidiParagraph &&) noexcept=default | |
ICU4XBidiParagraph & | operator= (ICU4XBidiParagraph &&other) noexcept=default |
Bidi information for a single processed paragraph
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inline |
The primary direction of this paragraph
See the Rust documentation for level_at
for more information.
|
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 ICU4XBidi.
Returns 0 (equivalent to Level::ltr()
) on error
See the Rust documentation for level_at
for more information.
|
defaultnoexcept |
|
inline |
The end index of this paragraph within the source text
|
inline |
The start index of this paragraph within the source text
|
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.
|
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.
|
inline |
Given a paragraph index n
within the surrounding text, this sets this object to the paragraph at that index. Returns ICU4XError::OutOfBoundsError
when out of bounds.
This is equivalent to calling paragraph_at()
on ICU4XBidiInfo
but doesn't create a new object
|
inline |
The number of bytes in this paragraph
See the Rust documentation for len
for more information.