Skip to content

Commit

Permalink
because order could matter in the replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcaron committed Jun 15, 2018
1 parent 8bdfc67 commit 13894a6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions generators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,21 @@ def split_overloads(methods, needs_overloading: List[str] = None):


def clean_doxygen(doxygen):
replace = {
"/** ": "",
"* ": "",
"\n*/": "",
"*\n": "\n",
"{": "",
"}": "",
"<b>": "",
"</b>": "",
"≥": ">=",
"ü": "u",
"–": "-",
"fi": "fi",
"Ž": "", # invisible character in fast_bilateral_filter.h "FrŽdo Durand"[2] (no kidding)
}
for k, v in replace.items():
replace = [
("/** ", ""),
("* ", ""),
("\n*/", ""),
("*\n", "\n"),
("{", ""),
("}", ""),
("<b>", ""),
("</b>", ""),
("≥", ">="),
("ü", "u"),
("–", "-"),
("fi", "fi"),
("Ž", ""), # invisible character in fast_bilateral_filter.h "FrŽdo Durand"[2] (no kidding)
]
for k, v in replace:
doxygen = doxygen.replace(k, v)
return doxygen

0 comments on commit 13894a6

Please sign in to comment.