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

Function _clean_brief

Scripts/emit_docs.py:48–55  ·  view source on GitHub ↗

Strip any residual raw comment markers from a brief/description field.

(s: str)

Source from the content-addressed store, hash-verified

46_RAW_COMMENT_RE = re.compile(r'/\*+|\*+/|@brief|@param|@class|@struct|@enum|@return')
47
48def _clean_brief(s: str) -> str:
49 """Strip any residual raw comment markers from a brief/description field."""
50 if not s:
51 return ''
52 s = _RAW_COMMENT_RE.sub('', s).strip()
53 # Remove leading * lines
54 s = re.sub(r'^\*+\s*', '', s, flags=re.MULTILINE).strip()
55 return s
56
57def _editor_badge(prop: dict) -> str:
58 if prop.get('is_edit_anywhere'):

Callers 4

_brief_or_emptyFunction · 0.85
_render_classFunction · 0.85
_render_enumFunction · 0.85
_write_api_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected