/// Remove single quotes, double quotes, backticks, or heredoc/nowdoc delimiters
/// surrounding a string literal.
Remove single quotes, double quotes, backticks, or heredoc/nowdoc delimiters
surrounding a string literal.
Remove single quotes double quotes backticks or heredoc / nowdoc delimiters surrounding a string literal .
pub fn unquote_str(content: &str) -> &str {
    let unquoted = unquote_slice(content.as_bytes());
    // Safety: content is a valid &str. unquote_slice finds ASCII delimiters and
    // removes the prefix and suffix surrounding them. Because it uses ASCII
    // delimiters, we know it is slicing at codepoint boundaries.
    unsafe { std::str::from_utf8_unchecked(unquoted) }
}
pub fn unquote_str ( content : & str ) -> & str { let unquoted = unquote_slice ( content . as_bytes ( ) ) ; // Safety: content is a valid &str. unquote_slice finds ASCII delimiters and // removes the prefix and suffix surrounding them. Because it uses ASCII // delimiters, we know it is slicing at codepoint boundaries. unsafe { std :: str :: from_utf8_unchecked ( unquoted ) } }
Remove single quotes, double quotes, backticks, or heredoc/nowdoc delimiters
surrounding a string literal.
Remove single quotes double quotes backticks or heredoc / nowdoc delimiters surrounding a string literal .
content
&str