-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make StartsWith and EndsWith constexpr.
This required rewriting StartsWith and EndsWith to not use memcmp and just create a string_view for the substring instead which can then be compared with operator==. PiperOrigin-RevId: 702095989 Change-Id: I73474dd2e9a7fbbde563baf39e7cedd4fc2357e7
- Loading branch information
1 parent
a04ef10
commit 6757696
Showing
1 changed file
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters