Function fluent_syntax::unicode::unescape_unicode_to_string
source · pub fn unescape_unicode_to_string(input: &str) -> Cow<'_, str>
Expand description
Unescapes to a Cow<str>
optionally allocating.
§Example
use fluent_syntax::unicode::unescape_unicode_to_string;
assert_eq!(
unescape_unicode_to_string("Foo \\U01F60A Bar"),
"Foo 😊 Bar"
);