expression
Persian half-space — preserve ZWNJ
Persian text can use U+200C ZERO WIDTH NON-JOINER to control joining. It is not a normal space; removing it changes the text. Rust byte and scalar counts include it. Expected stdout (not executed): true 6 1 Common mistake: Deleting invisible format characters indiscriminately.
Formal Syntax & Structure
rust syntaxrust
"می\u{200C}روم"Working Example
Example Snippetrust
fn main() { let s = "می\u{200C}روم"; println!("{} {} {}", s.contains('\u{200C}'), s.chars().count(), s.split_whitespace().count());}