INNER CODE UNIT · Python
anchor
introlab/rtabmap · doxygen/generate_parameters_page.py:79
def anchor(self):
"""Doxygen anchor of this parameter's row, for in-page links."""
return 'param_%s%s' % (self.prefix, self.name)
def split_args(text):
"""Split a macro argument list on top-level commas."""
args, depth, current, i, in_string = [], 0, [], 0, False
while i < len(text):
c = text[i]
if in_string:
if c == '\\':
current.append(text[i:i + 2])
i += 2
continue
in_string = c != '"'
elif c == '"':
in_string = True