Lines Matching +full:sub +full:- +full:spaces

2 # SPDX-License-Identifier: GPL-2.0
8 Implement output filters to print kernel-doc documentation.
30 type_constant2 = KernRe(r"\%([-_*\w]+)", cache=False)
32 type_param_ref = KernRe(r"([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False)
38 type_fp_param2 = KernRe(r"\@(\w+->\S+)\(\)", cache=False)
45 type_member = KernRe(r"\&([_\w]+)(\.|->)([_\w]+)", cache=False)
52 Base class for OutputFormat. If used as-is, it means that only
60 OUTPUT_INTERNAL = 3 # output non-exported symbols
114 Apply the RST highlights to a sub-block of text.
117 for r, sub in self.highlights:
118 block = r.sub(sub, block)
180 Handles a single entry from kernel-doc parser
262 sphinx_cblock = KernRe(r'^\.\.\ +code-block::', cache=False)
300 # If this is the first non-blank line in a literal block,
423 parameter_name = KernRe(r'\[.*').sub('', parameter)
567 "%Y-%m-%d",
654 Handles a single entry from kernel-doc parser.
675 line = KernRe(r"^\s*").sub("", line)
704 self.data += f"{name} \\- {args['purpose']}\n"
717 if count == len(args.parameterlist) - 1:
722 # Pointer-to-function
725 dtype = KernRe(r'([^\*])$').sub(r'\1 ', dtype)
735 parameter_name = re.sub(r'\[.*', '', parameter)
750 self.data += f"enum {name} \\- {args['purpose']}\n"
758 if count == len(args.parameterlist) - 1:
768 parameter_name = KernRe(r'\[.*').sub('', parameter)
784 self.data += f"typedef {name} \\- {purpose}\n"
799 self.data += f"{args.type} {name} \\- {purpose}\n"
801 # Replace tabs with two spaces and handle newlines
803 declaration = KernRe(r"\n").sub('"\n.br\n.BI "', declaration)
814 parameter_name = re.sub(r"\[.*", "", parameter)