summaryrefslogtreecommitdiff
path: root/apt-pkg/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/version.h')
-rw-r--r--apt-pkg/version.h28
1 files changed, 4 insertions, 24 deletions
diff --git a/apt-pkg/version.h b/apt-pkg/version.h
index b263d7c90..ba7eb592d 100644
--- a/apt-pkg/version.h
+++ b/apt-pkg/version.h
@@ -1,13 +1,12 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: version.h,v 1.3 1998/07/12 23:58:43 jgg Exp $
+// $Id: version.h,v 1.4 1998/07/19 21:24:19 jgg Exp $
/* ######################################################################
- Version - Version string
+ Version - Version comparison routines
- This class implements storage and operators for version strings.
-
- The client is responsible for stripping epochs should it be desired.
+ These routines provide some means to compare versions and check
+ dependencies.
##################################################################### */
/*}}}*/
@@ -21,25 +20,6 @@
#include <string>
-class pkgVersion
-{
- string Value;
-
- public:
-
- inline operator string () const {return Value;};
-
- // Assignmnet
- void operator =(string rhs) {Value = rhs;};
-
- // Comparitors. STL will provide the rest
- bool operator ==(const pkgVersion &rhs) const;
- bool operator <(const pkgVersion &rhs) const;
-
- pkgVersion();
- pkgVersion(string Version) : Value(Version) {};
-};
-
int pkgVersionCompare(const char *A, const char *B);
int pkgVersionCompare(const char *A, const char *AEnd, const char *B,
const char *BEnd);