MCPcopy Index your code
hub / github.com/numpy/numpy / _resolvetypedefpattern

Function _resolvetypedefpattern

numpy/f2py/crackfortran.py:953–961  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

951
952
953def _resolvetypedefpattern(line):
954 line = ''.join(line.split()) # removes whitespace
955 m1 = typedefpattern.match(line)
956 print(line, m1)
957 if m1:
958 attrs = m1.group('attributes')
959 attrs = [a.lower() for a in attrs.split(',')] if attrs else []
960 return m1.group('name'), attrs, m1.group('params')
961 return None, [], None
962
963def parse_name_for_bind(line):
964 pattern = re.compile(r'bind\(\s*(?P<lang>[^,]+)(?:\s*,\s*name\s*=\s*["\'](?P<name>[^"\']+)["\']\s*)?\)', re.I)

Callers 1

analyzelineFunction · 0.85

Calls 3

joinMethod · 0.80
splitMethod · 0.80
lowerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…