Function piet::util::first_strong_rtl

source ·
pub fn first_strong_rtl(text: &str) -> bool
Expand description

A heurstic for text direction; returns true if, while enumerating characters in this string, a character in the ‘R’ (strong right-to-left) category is encountered before any character in the ‘L’ (strong left-to-right) category is.

See Unicode technical report 9.