INNER CODE UNIT · Python
key_cell
introlab/rtabmap · doxygen/generate_parameters_page.py:195
def key_cell(param):
"""The key column: the row's own anchor, then the link to the accessor."""
return '@anchor %s %s' % (param.anchor, accessor_link(param))
def page_link(param):
"""A link to the parameter's own row on this page."""
return '@ref %s "%s"' % (param.anchor, param.key)
def resolve_description(param, by_accessor):
"""Render the description, resolving uFormat() placeholders to key links."""
text = param.description.strip()
if text.startswith('uFormat('):
args = split_args(text[len('uFormat('):text.rindex(')')])
text = unescape(args[0])
for arg in args[1:]:
match = re.search(r'\bk([A-Za-z0-9]+)\(\)', arg)