MCPcopy Create free account
hub / github.com/davidblewett/rure-python / escape_bytes

Function escape_bytes

regex/regex-debug/src/main.rs:315–321  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

313}
314
315fn escape_bytes(bytes: &[u8]) -> String {
316 let mut s = String::new();
317 for &b in bytes {
318 s.push_str(&escape_byte(b));
319 }
320 s
321}
322
323fn escape_byte(byte: u8) -> String {
324 use std::ascii::escape_default;

Callers 2

escape_unicodeFunction · 0.70
fmtMethod · 0.50

Calls 1

escape_byteFunction · 0.70

Tested by

no test coverage detected