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

Function parse

regex/regex-debug/src/main.rs:281–288  ·  view source on GitHub ↗
(re: &str)

Source from the content-addressed store, hash-verified

279}
280
281fn parse(re: &str) -> Result<Hir> {
282 use syntax::ParserBuilder;
283 ParserBuilder::new()
284 .allow_invalid_utf8(true)
285 .build()
286 .parse(re)
287 .map_err(From::from)
288}
289
290fn escape_unicode(bytes: &[u8]) -> String {
291 let show = match ::std::str::from_utf8(bytes) {

Callers 7

parse_oneMethod · 0.70
parse_manyMethod · 0.70
readMethod · 0.50
parse_simpleFunction · 0.50
parse_simple2Function · 0.50
parse_smallFunction · 0.50
parse_hugeFunction · 0.50

Calls 3

parseMethod · 0.45
buildMethod · 0.45
allow_invalid_utf8Method · 0.45

Tested by

no test coverage detected