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

Method octal

regex/regex-syntax/src/ast/parse.rs:205–208  ·  view source on GitHub ↗

Whether to support octal syntax or not. Octal syntax is a little-known way of uttering Unicode codepoints in a regular expression. For example, `a`, `\x61`, `\u0061` and `\141` are all equivalent regular expressions, where the last example shows octal syntax. While supporting octal syntax isn't in and of itself a problem, it does make good error messages harder. That is, in PCRE based regex engi

(&mut self, yes: bool)

Source from the content-addressed store, hash-verified

203 ///
204 /// Octal syntax is disabled by default.
205 pub fn octal(&mut self, yes: bool) -> &mut ParserBuilder {
206 self.octal = yes;
207 self
208 }
209
210 /// Enable verbose mode in the regular expression.
211 ///

Callers 3

parser_octalFunction · 0.45
print_literalFunction · 0.45
parseFunction · 0.45

Calls

no outgoing calls

Tested by 1

print_literalFunction · 0.36