From 503e14fbe7d41118a659ead6dde90ebfbc408de9 Mon Sep 17 00:00:00 2001 From: наб Date: Tue, 12 Nov 2024 17:59:19 +0100 Subject: apt-pkg/deb/deblistparser.h: APT::StringView -> std::string_view --- apt-pkg/deb/deblistparser.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'apt-pkg/deb/deblistparser.h') diff --git a/apt-pkg/deb/deblistparser.h b/apt-pkg/deb/deblistparser.h index b791e6f38..06d3715a4 100644 --- a/apt-pkg/deb/deblistparser.h +++ b/apt-pkg/deb/deblistparser.h @@ -20,7 +20,6 @@ #include #include -#include class FileFd; @@ -32,7 +31,7 @@ class APT_HIDDEN debListParser : public pkgCacheListParser // Parser Helper struct WordList { - APT::StringView Str; + std::string_view Str; unsigned char Val; }; @@ -52,7 +51,7 @@ class APT_HIDDEN debListParser : public pkgCacheListParser unsigned int Type); bool ParseProvides(pkgCache::VerIterator &Ver); - APT_HIDDEN static bool GrabWord(APT::StringView Word,const WordList *List,unsigned char &Out); + APT_HIDDEN static bool GrabWord(std::string_view Word,const WordList *List,unsigned char &Out); APT_HIDDEN unsigned char ParseMultiArch(bool const showErrors); public: @@ -83,8 +82,8 @@ class APT_HIDDEN debListParser : public pkgCacheListParser std::string const &Arch = ""); APT_PUBLIC static const char *ParseDepends(const char *Start, const char *Stop, - APT::StringView &Package, - APT::StringView &Ver, unsigned int &Op, + std::string_view &Package, + std::string_view &Ver, unsigned int &Op, bool const ParseArchFlags = false, bool StripMultiArch = true, bool const ParseRestrictionsList = false, std::string Arch = ""); @@ -95,7 +94,7 @@ class APT_HIDDEN debListParser : public pkgCacheListParser virtual ~debListParser(); #ifdef APT_COMPILING_APT - APT::StringView SHA256() const + std::string_view SHA256() const { return Section.Find(pkgTagSection::Key::SHA256); } -- cgit v1.2.3-70-g09d2