MCPcopy Index your code
hub / github.com/python/cpython / match

Method match

Lib/re/_parser.py:256–260  ·  view source on GitHub ↗
(self, char)

Source from the content-addressed store, hash-verified

254 self.index = index + 1
255 self.next = char
256 def match(self, char):
257 if char == self.next:
258 self.__next()
259 return True
260 return False
261 def get(self):
262 this = self.next
263 self.__next()

Callers 15

parse_templateFunction · 0.95
parse_opcode_signatureFunction · 0.45
parse_pdb_commandFunction · 0.45
get_header_version_infoFunction · 0.45
fix_uplinkFunction · 0.45
_matchMethod · 0.45
Internaldate2tupleFunction · 0.45
ParseFlagsFunction · 0.45
imaplib.pyFile · 0.45
_strptimeFunction · 0.45
attr_matchesMethod · 0.45

Calls 1

__nextMethod · 0.95

Tested by 4

_parse_exampleMethod · 0.36
_find_linenoMethod · 0.36
test_idprogMethod · 0.36