|
apt 3.0.3
commandline package manager
|
Zero-terminated wrapper for std::string_view. More...
#include <apt-pkg/cachefilter-patterns.h>
Public Member Functions | |
| ZeroStringView (std::string_view s) | |
| char | operator[] (size_t i) |
Zero-terminated wrapper for std::string_view.
The code peeks a character ahead and assumes the input is zero-terminated, but it may not be, this class provides a peek-ahead character access in operator[] by returning 0 for [size()].