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

Method digits

regex/regex-syntax/src/ast/mod.rs:704–710  ·  view source on GitHub ↗

The number of digits that must be used with this literal form when used without brackets. When used with brackets, there is no restriction on the number of digits.

(&self)

Source from the content-addressed store, hash-verified

702 /// used without brackets. When used with brackets, there is no
703 /// restriction on the number of digits.
704 pub fn digits(&self) -> u32 {
705 match *self {
706 HexLiteralKind::X => 2,
707 HexLiteralKind::UnicodeShort => 4,
708 HexLiteralKind::UnicodeLong => 8,
709 }
710 }
711}
712
713/// A single character class expression.

Callers 1

parse_hex_digitsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected