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

Function t_bytes

regex/regex-syntax/src/hir/translate.rs:1147–1153  ·  view source on GitHub ↗
(pattern: &str)

Source from the content-addressed store, hash-verified

1145 }
1146
1147 fn t_bytes(pattern: &str) -> Hir {
1148 TranslatorBuilder::new()
1149 .allow_invalid_utf8(true)
1150 .build()
1151 .translate(pattern, &parse(pattern))
1152 .unwrap()
1153 }
1154
1155 fn hir_lit(s: &str) -> Hir {
1156 match s.len() {

Callers

nothing calls this directly

Calls 5

unwrapMethod · 0.80
translateMethod · 0.80
parseFunction · 0.70
buildMethod · 0.45
allow_invalid_utf8Method · 0.45

Tested by

no test coverage detected