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

Function t_err

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

Source from the content-addressed store, hash-verified

1137 }
1138
1139 fn t_err(pattern: &str) -> hir::Error {
1140 TranslatorBuilder::new()
1141 .allow_invalid_utf8(false)
1142 .build()
1143 .translate(pattern, &parse(pattern))
1144 .unwrap_err()
1145 }
1146
1147 fn t_bytes(pattern: &str) -> Hir {
1148 TranslatorBuilder::new()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected