Function unicode_bidi::get_base_direction_full
source · pub fn get_base_direction_full<'a, T: TextSource<'a> + ?Sized>(
text: &'a T
) -> Direction
Expand description
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm, considering the full text if the first paragraph is all-neutral.
This is the same as get_base_direction except that it does not stop at the first block separator, but just resets the embedding level and continues to look for a strongly- directional character. So the result will be the base direction of the first paragraph that is not purely neutral characters.