Home
last modified time | relevance | path

Searched refs:unescape_string (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/protobuf/src/text_format/
Dmod.rs45 pub fn unescape_string(string: &str) -> Vec<u8> { in unescape_string() function
278 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")[..]);
/external/rust/crates/protobuf-codegen/src/field/
Dmod.rs762 rust::quote_escape_bytes(&text_format::unescape_string(proto_default)) in default_value_from_proto()