1 2 3 4 5 6 7 8
use unicode_segmentation::UnicodeSegmentation; pub fn str_len( str : &str ) -> usize { str.graphemes( true ) .count() }