Function fluent_syntax::unicode::unescape_unicode
source · pub fn unescape_unicode<W>(w: &mut W, input: &str) -> Resultwhere
W: Write,
Expand description
Unescapes to a writer without allocating.
§Example
use fluent_syntax::unicode::unescape_unicode;
let mut s = String::new();
unescape_unicode(&mut s, "Foo \\U01F60A Bar");
assert_eq!(s, "Foo 😊 Bar");