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

Method c_dotstar

regex/src/compile.rs:382–396  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

380 }
381
382 fn c_dotstar(&mut self) -> Result {
383 Ok(if !self.compiled.only_utf8() {
384 self.c(&Hir::repetition(hir::Repetition {
385 kind: hir::RepetitionKind::ZeroOrMore,
386 greedy: false,
387 hir: Box::new(Hir::any(true)),
388 }))?
389 } else {
390 self.c(&Hir::repetition(hir::Repetition {
391 kind: hir::RepetitionKind::ZeroOrMore,
392 greedy: false,
393 hir: Box::new(Hir::any(false)),
394 }))?
395 })
396 }
397
398 fn c_char(&mut self, c: char) -> Result {
399 self.c_class(&[hir::ClassUnicodeRange::new(c, c)])

Callers 2

compile_oneMethod · 0.80
compile_manyMethod · 0.80

Calls 3

repetitionFunction · 0.85
cMethod · 0.80
only_utf8Method · 0.45

Tested by

no test coverage detected