use std::cmp::max;
use std::ops::Range;
+use matches::matches;
-use super::char_data::BidiClass;
+use super::BidiClass::{self, *};
use super::level::Level;
-use BidiClass::*;
-
/// A maximal substring of characters with the same embedding level.
///
/// Represented as a range of byte indices.
/// whose matching PDI is the first character of the next level run in the sequence.
///
/// Note: This function does *not* return the sequences in order by their first characters.
-#[cfg_attr(feature = "flame_it", flame)]
+#[cfg_attr(feature = "flame_it", flamer::flame)]
pub fn isolating_run_sequences(
para_level: Level,
original_classes: &[BidiClass],
}
// From <http://www.unicode.org/reports/tr9/#BD13>
- #[cfg_attr(rustfmt, rustfmt_skip)]
+ #[rustfmt::skip]
#[test]
fn test_isolating_run_sequences() {
}
// From <http://www.unicode.org/reports/tr9/#X10>
- #[cfg_attr(rustfmt, rustfmt_skip)]
+ #[rustfmt::skip]
#[test]
fn test_isolating_run_sequences_sos_and_eos() {