Lines Matching +full:sub +full:- +full:group
2 # SPDX-License-Identifier: GPL-2.0
8 Classes to implement output filters to print kernel-doc documentation.
32 type_constant2 = KernRe(r"\%([-_*\w]+)", cache=False)
34 type_param_ref = KernRe(r"([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False)
40 type_fp_param2 = KernRe(r"\@(\w+->\S+)\(\)", cache=False)
47 type_member = KernRe(r"\&([_\w]+)(\.|->)([_\w]+)", cache=False)
54 Base class for OutputFormat. If used as-is, it means that only
62 OUTPUT_INTERNAL = 3 #: Output non-exported symbols.
119 Apply the RST highlights to a sub-block of text.
122 for r, sub in self.highlights:
123 block = r.sub(sub, block)
185 Handles a single entry from kernel-doc parser.
300 sphinx_cblock = KernRe(r'^\.\.\ +code-block::', cache=False)
338 # If this is the first non-blank line in a literal block,
343 litprefix = '^' + r.group(1)
424 signature += function_pointer.group(1) + parameter + function_pointer.group(3)
461 parameter_name = KernRe(r'\[.*').sub('', parameter)
655 "%Y-%m-%d",
761 Handles a single entry from kernel-doc parser.
831 elif KernRe(r"^\s*\+[-+]+\+.*$").match(line):
852 pos.append((m.start(), m.end() - 1))
900 if "code-block" in line:
906 line = line[2:-1].strip().upper()
909 out = line[:-1]
934 return i - 1, out
966 line = KernRe(r"^\s*").sub("", org_line)
969 if KernRe(r"^\+\-[-+]+\+.*$").match(line):
979 if line.endswith("::") or KernRe(r"\.\.\s+code-block.*::").match(line):
992 line = KernRe(r'^[-*]\s+').sub(r'.IP \[bu]\n', line)
993 line = KernRe(r'^(\d+|a-z)[\.\)]\s+').sub(r'.IP \1\n', line)
1020 self.data += f"{name} \\- {args['purpose']}\n"
1033 if count == len(args.parameterlist) - 1:
1038 # Pointer-to-function
1039 self.data += f'".BI "{parenth}{function_pointer.group(1)}" " ") ({function_pointer.group(2)}){post}"' + "\n"
1041 dtype = KernRe(r'([^\*])$').sub(r'\1 ', dtype)
1051 parameter_name = re.sub(r'\[.*', '', parameter)
1066 self.data += f"enum {name} \\- {args['purpose']}\n"
1074 if count == len(args.parameterlist) - 1:
1084 parameter_name = KernRe(r'\[.*').sub('', parameter)
1099 self.data += f"{name} \\- {args['purpose']}\n"
1120 self.data += f"typedef {name} \\- {purpose}\n"
1135 self.data += f"{args.type} {name} \\- {purpose}\n"
1139 declaration = KernRe(r"\n").sub('"\n.br\n.BI "', declaration)
1150 parameter_name = re.sub(r"\[.*", "", parameter)