MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _parse_specifiers

Function _parse_specifiers

Scripts/parse_headers.py:153–164  ·  view source on GitHub ↗
(args: str)

Source from the content-addressed store, hash-verified

151 return parts
152
153def _parse_specifiers(args: str) -> dict:
154 result = {}
155 for token in _split_specifiers(args.strip()):
156 token = token.strip()
157 if not token:
158 continue
159 if '=' in token:
160 k, _, v = token.partition('=')
161 result[k.strip()] = v.strip().strip('"').strip("'")
162 else:
163 result[token] = True
164 return result
165
166def _extract_meta_value(specs: dict, key: str, default="") -> str:
167 """Extract a value from the meta=(...) string inside specifiers."""

Callers 2

_parse_fileFunction · 0.85
_parse_bodyFunction · 0.85

Calls 1

_split_specifiersFunction · 0.85

Tested by

no test coverage detected