Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNeed to find all string compares in scores of projects
https://www.eclipse.org/forums/index.php/mv/msg/794250/1400804/#msg_1400804
Some careful reading uncovered that using == to compare strings has quirks and using == on char* (properly terminated by the \0 character) was a good way to go.
I would like to find all string compares in my 78 projects and convert them to char* compares, but the only thing I can find is using some Eclipse java add-on which does this.
Is there anything for Eclipse C++ which can locate a string compare using the equality == operator?
Thanks for sharing a robust method (if it exists) I did go manually through all my code attempting to do this, but I might have overlooked one or two which could still be a bug in the program module. (and yes, this bug caused the program to do strange things such as return negative integers to the mod operator)