MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _combine_flags

Function _combine_flags

tools/python-3.11.9-amd64/Lib/re/_compiler.py:31–35  ·  view source on GitHub ↗
(flags, add_flags, del_flags,
                   TYPE_FLAGS=_parser.TYPE_FLAGS)

Source from the content-addressed store, hash-verified

29}
30
31def _combine_flags(flags, add_flags, del_flags,
32 TYPE_FLAGS=_parser.TYPE_FLAGS):
33 if add_flags & TYPE_FLAGS:
34 flags &= ~TYPE_FLAGS
35 return (flags | add_flags) & ~del_flags
36
37def _compile(code, pattern, flags):
38 # internal: compile a (sub)pattern

Callers 3

_compileFunction · 0.85
_get_literal_prefixFunction · 0.85
_get_charset_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected