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

Function addgroup

tools/python-3.11.9-amd64/Lib/re/_parser.py:1015–1022  ·  view source on GitHub ↗
(index, pos)

Source from the content-addressed store, hash-verified

1013 literal = []
1014 lappend = literal.append
1015 def addgroup(index, pos):
1016 if index > state.groups:
1017 raise s.error("invalid group reference %d" % index, pos)
1018 if literal:
1019 literals.append(''.join(literal))
1020 del literal[:]
1021 groups.append((len(literals), index))
1022 literals.append(None)
1023 groupindex = state.groupindex
1024 while True:
1025 this = sget()

Callers 1

parse_templateFunction · 0.85

Calls 3

errorMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected