| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool contains(const StringView& value) const { return find(value) != npos; }nit: Blink Style Guide: Naming - Use 'CamelCase' for all function names. This method should be named 'Contains'. Note that a 'Contains' method accepting 'StringView' already exists (via the overload with a default argument), so this addition appears redundant.
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason
_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
bool contains(const StringView& value) const { return find(value) != npos; }nit: Blink Style Guide: Naming - Use 'CamelCase' for all function names. This method should be named 'Contains'. Note that a 'Contains' method accepting 'StringView' already exists (via the overload with a default argument), so this addition appears redundant.
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason
_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
OK But Won't Fix: It's intentional. For std::string compatibility.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
WTF: Add String::contains(StringView)
This change introduces a new method `String::contains(StringView)` which
is compatible with the C++23 `std::string::contains`.
This new method is then used to replace numerous calls to
`String::Find(...) != kNotFound` and `String::Find(...) == kNotFound`,
improving code readability across many files.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool contains(const StringView& value) const { return find(value) != npos; }Fredrik Söderquistnit: Blink Style Guide: Naming - Use 'CamelCase' for all function names. This method should be named 'Contains'. Note that a 'Contains' method accepting 'StringView' already exists (via the overload with a default argument), so this addition appears redundant.
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason
_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
OK But Won't Fix: It's intentional. For std::string compatibility.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |