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

Function t

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

Source from the content-addressed store, hash-verified

1129 }
1130
1131 fn t(pattern: &str) -> Hir {
1132 TranslatorBuilder::new()
1133 .allow_invalid_utf8(false)
1134 .build()
1135 .translate(pattern, &parse(pattern))
1136 .unwrap()
1137 }
1138
1139 fn t_err(pattern: &str) -> hir::Error {
1140 TranslatorBuilder::new()

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