Function unicode_bidi::initial_scan [] [src]

pub fn initial_scan(
    text: &str,
    default_para_level: Option<u8>
) -> InitialProperties

Find the paragraphs and BidiClasses in a string of text.

http://www.unicode.org/reports/tr9/#The_Paragraph_Level

Also sets the class for each First Strong Isolate initiator (FSI) to LRI or RLI if a strong character is found before the matching PDI. If no strong character is found, the class will remain FSI, and it's up to later stages to treat these as LRI when needed.