diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 17:59:18 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-14 19:45:12 +0100 |
| commit | 793c9b1f3059c35b66c19f62fa39b6607809fea0 (patch) | |
| tree | fe23d92be8e2f0144e5f4c8d267bd7b62e1023c1 /apt-pkg/cacheiterators.h | |
| parent | 6de55404ca8ce296ccf14880c6115b6d8eb4e0b9 (diff) | |
APT::StringView -> std::string_view [textonly]
Diffstat (limited to 'apt-pkg/cacheiterators.h')
| -rw-r--r-- | apt-pkg/cacheiterators.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index 38b4b8635..ceeb4b3a7 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -1,17 +1,17 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ /* ###################################################################### - + Cache Iterators - Iterators for navigating the cache structure - + The iterators all provides ++,==,!=,->,* and end for their type. The end function can be used to tell if the list has been fully traversed. - + Unlike STL iterators these contain helper functions to access the data that is being iterated over. This is because the data structures can't be formed in a manner that is intuitive to use and also mmapable. - + For each variable in the target structure that would need a translation to be accessed correctly a translating function of the same name is present in the iterator. If applicable the translating function will @@ -22,9 +22,9 @@ structure passed to the constructor, which should be the structure that has the depends pointer as a member. The provide iterator has the same system. - + This header is not user includable, please use apt-pkg/pkgcache.h - + ##################################################################### */ /*}}}*/ #ifndef PKGLIB_CACHEITERATORS_H @@ -37,7 +37,6 @@ #include <iosfwd> #include <iterator> #include <string> -#include <apt-pkg/string_view.h> #include <cstring> @@ -123,7 +122,7 @@ class APT_PUBLIC pkgCache::GrpIterator: public Iterator<Group, GrpIterator> { inline const char *Name() const {return S->Name == 0?0:Owner->StrP + S->Name;} inline PkgIterator PackageList() const; inline VerIterator VersionsInSource() const; - PkgIterator FindPkg(APT::StringView Arch = APT::StringView("any", 3)) const; + PkgIterator FindPkg(std::string_view Arch = {"any", 3}) const; /** \brief find the package with the "best" architecture The best architecture is either the "native" or the first @@ -234,7 +233,7 @@ class APT_PUBLIC pkgCache::VerIterator : public Iterator<Version, VerIterator> { inline PkgIterator ParentPkg() const {return PkgIterator(*Owner,Owner->PkgP + S->ParentPkg);} inline DescIterator DescriptionList() const; - DescIterator TranslatedDescriptionForLanguage(APT::StringView lang) const; + DescIterator TranslatedDescriptionForLanguage(std::string_view lang) const; DescIterator TranslatedDescription() const; inline DepIterator DependsList() const; inline PrvIterator ProvidesList() const; |
