I have a file full of C++ code which is a bunch of small functions that return a number. I am trying to replace each number with the number plus one if the number is greater than 2. So,
int blah() { return 5; }
would become
int blah() { return 6; }
but
int blah() { return 1; }
would remain the same.
How is this done?
A bit ugly, but should work: