godot
godot copied to clipboard
Replace `find` with `contains/has` where applicable
- Replaces
find(...) != -1,find(...) > -1,find(...) >= 0withcontainsforString - Replaces
find(...) == -1,find(...) < 0with!containsforString - Replaces
find(...) != -1,find(...) > -1,find(...) >= 0withhasfor containers - Replaces
find(...) == -1,find(...) < 0with!hasfor containers
Split into four commits for review to make it easier to compare each type, to check the replacements are appropriate
Guess this line could be changed too (after https://github.com/godotengine/godot/commit/d8aa2c65a9f857e86d0c1fc1cc6b95b8ccf23099): https://github.com/godotengine/godot/blob/d8aa2c65a9f857e86d0c1fc1cc6b95b8ccf23099/editor/connections_dialog.cpp#L285
That's findn that's different, that's covered here:
- https://github.com/godotengine/godot/pull/91611
Thanks!
Thank you!