true iff the two strings define the same version. Hence, the result may be true even when the two string differ syntactically.
val compare : string -> string -> int
compare x y returns 0 if x is eqivalent to y, -1 if x is smaller than y, and 1 if x is greater than y. This is consistent with Pervasives.compare.
Decomposing and recomposing debian version strings
type version_analysis =
| Nativeof string * string * string
epoch,upstream,binnmu
| NonNativeof string * string * string * string
epoch,upstream,revision,binnmu
result type of the analysis of a version string. The binNMU part, if present, has been removed from the upstream (if native version) or revision (if non-native vesion).
recompose a decomposed version string. For all v: equal(v,compose(decompose v)) = true. There may, however, be small syntactic differences between v and compose(decompose v)