paludis Version 3.0.2
The one true package mangler
paludis::VersionSpecComponent Struct Reference

#include <version_spec.hh>

Public Attributes

NamedValue< n::number_value, std::string > number_value
NamedValue< n::text, std::string > text
NamedValue< n::type, VersionSpecComponentType > type

Detailed Description

A VersionSpec component part.

This is mostly for use by the Exheres 'ever' API.

The version 1.2x_pre3_rc-scm would be split up into these parts:

  • (type, number_value, text)
  • (vsct_number, "1", "1")
  • (vsct_number, "2", ".2")
  • (vsct_letter, "x", "x")
  • (vsct_pre, "3", "_pre3")
  • (vsct_rc, "MAX" "_rc0")
  • (vsct_scm, "0" "-scm")

The type and number_value are mostly for internal use. In particular, the number_value is not always what you might expect it to be.

The text includes any preceeding delimiter.

Since
0.32

The documentation for this struct was generated from the following file: