Skip to content

Commit

Permalink
fix(Apps/Fmt): correct fmt replace script
Browse files Browse the repository at this point in the history
  • Loading branch information
Winfidonarleyan committed Jul 8, 2024
1 parent 216eb56 commit d0a1ced
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/Fmt/FormatReplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def handleCleanup(line):
line = line.replace("%02X", "{:02X}");
line = line.replace("%08X", "{:08X}");
line = line.replace("%f", "{}");
line = line.replace("%.1f", "{0:.1f}");
line = line.replace("%.2f", "{0:.2f}");
line = line.replace("%.3f", "{0:.3f}");
line = line.replace("%.4f", "{0:.4f}");
line = line.replace("%.5f", "{0:.5f}");
line = line.replace("%.1f", "{:.1f}");
line = line.replace("%.2f", "{:.2f}");
line = line.replace("%.3f", "{:.3f}");
line = line.replace("%.4f", "{:.4f}");
line = line.replace("%.5f", "{:.5f}");
line = line.replace("%3.1f", "{:3.1f}");
line = line.replace("%%", "%");
line = line.replace(".c_str()", "");
Expand Down Expand Up @@ -236,4 +236,4 @@ def handlefile(name):
if '.cpp' in i.name:
handlefile(fname)
if '.h' in i.name:
handlefile(fname)
handlefile(fname)

0 comments on commit d0a1ced

Please sign in to comment.