summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgrecords.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-11-30 00:39:04 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2016-11-30 00:39:04 -0800
commitf3514c6d0f434e007266988edaed1c3d90c5676b (patch)
treec27ef2eed43301aeb258e69e4773da92983b015f /apt-pkg/pkgrecords.h
parent4e99adb0d3727c0ae41edc9b3f52448d0d5b7655 (diff)
The fastest way to get field values is as a range.
Diffstat (limited to 'apt-pkg/pkgrecords.h')
-rw-r--r--apt-pkg/pkgrecords.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h
index a151fa123..b5eec305e 100644
--- a/apt-pkg/pkgrecords.h
+++ b/apt-pkg/pkgrecords.h
@@ -101,6 +101,9 @@ class pkgRecords::Parser /*{{{*/
// The record in binary form
virtual void GetRec(const char *&Start,const char *&Stop) {Start = Stop = 0;};
+ // Locate a tag
+ virtual bool Find(const char *Tag,const char *&Start, const char *&End) {Start = End = 0; return false;};
+
Parser();
virtual ~Parser();