forked from nickbnf/glogg
-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use string_view for safety and clarity
Using string_view instead of low level manipulations with pointers seems to be much more readable and safer. Should prevent off-by-one errors. Although this is used in core indexing loop, string_view::find(char) seems to be either a wrapper around std::memchr, so performance should stay the same.
- Loading branch information
Showing
1 changed file
with
44 additions
and
46 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