diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:52 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:52 +0000 |
commit | 6fc33863f31051a5fc2726a236ce8b64d33bc964 (patch) | |
tree | 0e360d911299b38ac8d22786ef3a647026f7d570 /apt-pkg/version.h | |
parent | 8e06abb2587d06891a84414f09f4910429451bf8 (diff) |
Comment touch ups
Author: jgg
Date: 1998-07-19 21:24:11 GMT
Comment touch ups
Diffstat (limited to 'apt-pkg/version.h')
-rw-r--r-- | apt-pkg/version.h | 28 |
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); |