diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-30 00:39:04 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-30 00:39:04 -0800 |
commit | f3514c6d0f434e007266988edaed1c3d90c5676b (patch) | |
tree | c27ef2eed43301aeb258e69e4773da92983b015f /apt-pkg/deb/debrecords.cc | |
parent | 4e99adb0d3727c0ae41edc9b3f52448d0d5b7655 (diff) |
The fastest way to get field values is as a range.
Diffstat (limited to 'apt-pkg/deb/debrecords.cc')
-rw-r--r-- | apt-pkg/deb/debrecords.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index 6d642c7b8..e7025d911 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/apt-pkg/deb/debrecords.cc @@ -210,6 +210,12 @@ void debRecordParserBase::GetRec(const char *&Start,const char *&Stop) Section.GetSection(Start,Stop); } /*}}}*/ +// RecordParserBase::Find - Locate a tag /*{{{*/ +bool debRecordParserBase::Find(const char *Tag,const char *&Start, const char *&End) +{ + return Section.Find(Tag,Start,End); +} + /*}}}*/ debRecordParserBase::~debRecordParserBase() {} bool debDebFileRecordParser::LoadContent() |