summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:44 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:44 +0000
commit0e66b144e288099ece73405fdeea3160d8dd726b (patch)
tree0328281dd811b0c5a305e54df90247c5de66ab84 /apt-pkg/tagfile.h
parentdcc482661704c132f16744aa8b64031614606856 (diff)
More tagfile accessors
Author: jgg Date: 1998-11-28 03:54:29 GMT More tagfile accessors
Diffstat (limited to 'apt-pkg/tagfile.h')
-rw-r--r--apt-pkg/tagfile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h
index 7782b54f9..a18888198 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.10 1998/11/27 01:14:07 jgg Exp $
+// $Id: tagfile.h,v 1.11 1998/11/28 03:54:31 jgg Exp $
/* ######################################################################
Fast scanner for RFC-822 type header information
@@ -46,7 +46,11 @@ class pkgTagSection
unsigned int FindI(const char *Tag);
bool Scan(const char *Start,unsigned long MaxLength);
inline unsigned long size() {return Stop - Section;};
-
+
+ inline unsigned int Count() {return TagCount;};
+ inline void Get(const char *&Start,const char *&Stop,unsigned int I)
+ {Start = Section + Indexes[I]; Stop = Section + Indexes[I+1];}
+
inline void GetSection(const char *&Start,const char *&Stop)
{
Start = Section;