Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#532 Returns for SearchAndReplace.replaceAll

none
open
nobody
None
5
2017-03-12
2017-03-12
No

Version 5.3

I'm trying to use "SearchAndReplace.replaceAll" method in a macro and I'd like to have back the total number of modifications done instead of a boolean. Maybe, since the method can operate on multiple files it can be useful to have a method to return modified files list and modifications number for a given file... so that I can elaborate the sum oo the "detailed list".

I also noticed that in the docstring it's said it should return "the number of modified files" but it's a boolean instead of a number type.

Thanks,
Andrea

Discussion


Log in to post a comment.