unescape_string

Function unescape_string 

Source
pub fn unescape_string(escaped_str: &str) -> RUMResult<RUMString>
Expand description

This function will scan through an escaped string and unescape any escaped characters. We collect these characters as a byte vector. Finally, we do a decode pass on the vector to re-encode the bytes hopefully right into a valid UTF-8 string.

This function focuses on reverting the result of escape, whose output is meant for HL7.