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

Method escape_bytes

regex/src/re_bytes.rs:967–973  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

965impl<'c, 't> fmt::Debug for CapturesDebug<'c, 't> {
966 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
967 fn escape_bytes(bytes: &[u8]) -> String {
968 let mut s = String::new();
969 for &b in bytes {
970 s.push_str(&escape_byte(b));
971 }
972 s
973 }
974
975 fn escape_byte(byte: u8) -> String {
976 use std::ascii::escape_default;

Callers

nothing calls this directly

Calls 1

escape_byteFunction · 0.50

Tested by

no test coverage detected