[go: up one dir, main page]

Function git_odb::alternate::unquote::ansi_c[][src]

pub fn ansi_c(input: &BStr) -> Result<Cow<'_, BStr>, Error>

Unquote the given ansi-c quoted input string.

The input is returned unaltered if it doesn’t start with a " character to indicate quotation, otherwise a new unqoted string will always be allocated.

See the tests for quotation examples.