Function unicode_bidi::explicit::compute
source ยท pub fn compute<'a, T: TextSource<'a> + ?Sized>(
text: &'a T,
para_level: Level,
original_classes: &[BidiClass],
levels: &mut [Level],
processing_classes: &mut [BidiClass],
runs: &mut LevelRunVec,
)
Expand description
Compute explicit embedding levels for one paragraph of text (X1-X8), and identify level runs (BD7) for use when determining Isolating Run Sequences (X10).
processing_classes[i]
must contain the BidiClass
of the char at byte index i
,
for each char in text
.
runs
returns the list of level runs (BD7) of the text.