1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
5 Debian Version - Versioning system for Debian
7 This implements the standard Debian versioning system.
9 ##################################################################### */
11 #ifndef PKGLIB_DEBVERSION_H
12 #define PKGLIB_DEBVERSION_H
14 #include <apt-pkg/version.h>
18 class debVersioningSystem
: public pkgVersioningSystem
22 static int CmpFragment(const char *A
, const char *AEnd
, const char *B
,
23 const char *BEnd
) APT_PURE
;
26 virtual int DoCmpVersion(const char *A
,const char *Aend
,
27 const char *B
,const char *Bend
) APT_PURE
;
28 virtual bool CheckDep(const char *PkgVer
,int Op
,const char *DepVer
) APT_PURE
;
29 virtual APT_PURE
int DoCmpReleaseVer(const char *A
,const char *Aend
,
30 const char *B
,const char *Bend
)
32 return DoCmpVersion(A
,Aend
,B
,Bend
);
34 virtual std::string
UpstreamVersion(const char *A
);
36 debVersioningSystem();
39 extern debVersioningSystem debVS
;