pub fn itemize_with_base_dir_and_embedding_levels(
context: &Context,
base_dir: Direction,
text: &str,
start_index: i32,
length: i32,
attrs: Option<&AttrList>,
cached_iter: Option<&AttrIterator<'_>>,
embedding_levels: &[u8],
) -> Vec<Item>Available on crate feature
v1_60 only.Expand description
Itemizes a range using embedding levels computed for the complete paragraph.
This is useful when itemizing bounded ranges of a paragraph without changing the directional analysis at range boundaries. The embedding levels must contain one entry for every Unicode character in @text. @start_index and @length must identify UTF-8 character boundaries.
§context
a structure holding information that affects itemization
§base_dir
base direction of the paragraph
§text
valid UTF-8 paragraph text
§start_index
first byte in @text to process
§length
number of bytes to process
§attrs
attributes that apply to @text
§cached_iter
cached attribute iterator
§embedding_levels
one embedding level for each character in @text
§Returns
newly allocated items in logical order