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

Function escape_byte

regex/regex-debug/src/main.rs:323–328  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

321}
322
323fn escape_byte(byte: u8) -> String {
324 use std::ascii::escape_default;
325
326 let escaped: Vec<u8> = escape_default(byte).collect();
327 String::from_utf8_lossy(&escaped).into_owned()
328}

Callers 3

escape_unicodeFunction · 0.70
escape_bytesFunction · 0.70
escape_bytesMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected