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

Method as_str

regex/src/re_bytes.rs:659–661  ·  view source on GitHub ↗

Returns the original string of this regex.

(&self)

Source from the content-addressed store, hash-verified

657impl Regex {
658 /// Returns the original string of this regex.
659 pub fn as_str(&self) -> &str {
660 &self.0.regex_strings()[0]
661 }
662
663 /// Returns an iterator over the capture names.
664 pub fn capture_names(&self) -> CaptureNames {

Callers 6

expand_strFunction · 0.45
add_capture_nameMethod · 0.45
parse_hex_digitsMethod · 0.45
parse_hex_braceMethod · 0.45
parse_decimalMethod · 0.45
parse_unicode_classMethod · 0.45

Calls 1

regex_stringsMethod · 0.80

Tested by

no test coverage detected