Add Strings.compare
Hi! I'd like to propose the addition of the new method compare for Strings, which would make things more elegant and make the code less repetitive. Also, it should be really useful for testing purposes with Foundry.
I'm referring to this (old) issue: https://github.com/OpenZeppelin/openzeppelin-contracts/issues/1795#issuecomment-1286701350
PR Checklist
- [x] Tests
- [x] Documentation
- [x] Changelog entry
Note: I'd love #3666 to be merge first, so that the tests can use the new syntax (instead of having to update #3666 yet again)
What's the state of #3666? @Amxx
Congrats, your important contribution to this open-source project has earned you a GitPOAP!
GitPOAP: 2022 OpenZeppelin Contracts Contributor:
Head to gitpoap.io & connect your GitHub account to mint!
Learn more about GitPOAPs here.