X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/0e66b144e288099ece73405fdeea3160d8dd726b..f17ac0977167d1e58316d3b3f7159f65d40a090a:/apt-pkg/tagfile.h diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h index a18888198..82c856f8d 100644 --- a/apt-pkg/tagfile.h +++ b/apt-pkg/tagfile.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: tagfile.h,v 1.11 1998/11/28 03:54:31 jgg Exp $ +// $Id: tagfile.h,v 1.13 1998/12/14 02:23:47 jgg Exp $ /* ###################################################################### Fast scanner for RFC-822 type header information @@ -34,6 +34,8 @@ class pkgTagSection // We have a limit of 256 tags per section. unsigned short Indexes[256]; + unsigned short AlphaIndexes[26 + 26*26]; + unsigned int TagCount; public: @@ -43,7 +45,9 @@ class pkgTagSection bool Find(const char *Tag,const char *&Start, const char *&End); string FindS(const char *Tag); - unsigned int FindI(const char *Tag); + signed int FindI(const char *Tag,signed long Default = 0); + bool pkgTagSection::FindFlag(const char *Tag,unsigned long &Flags, + unsigned long Flag); bool Scan(const char *Start,unsigned long MaxLength); inline unsigned long size() {return Stop - Section;};