Searched refs:unescape_string (Results 1 – 2 of 2) sorted by relevance
45 pub fn unescape_string(string: &str) -> Vec<u8> { in unescape_string() function278 assert_eq!(text.as_bytes(), &super::unescape_string(escaped)[..]); in test_escape_unescape()299 assert_eq!(b"aaa\x01bbb", &super::unescape_string("aaa\\x01bbb")[..]);300 assert_eq!(b"aaa\xcdbbb", &super::unescape_string("aaa\\xCDbbb")[..]);301 assert_eq!(b"aaa\xcdbbb", &super::unescape_string("aaa\\xCDbbb")[..]);303 assert_eq!(b"aaa\"bbb", &super::unescape_string("aaa\\\"bbb")[..]);304 assert_eq!(b"aaa\'bbb", &super::unescape_string("aaa\\\'bbb")[..]);
762 rust::quote_escape_bytes(&text_format::unescape_string(proto_default)) in default_value_from_proto()