Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
names.hh
Go to the documentation of this file.
1#pragma once
3
4#include <memory>
5
7
8namespace nix {
9
10struct Regex;
11
12struct DrvName
13{
14 std::string fullName;
15 std::string name;
16 std::string version;
17 unsigned int hits;
18
19 DrvName();
20 DrvName(std::string_view s);
21 ~DrvName();
22
23 bool matches(const DrvName & n);
24
25private:
26 std::unique_ptr<Regex> regex;
27};
28
29typedef std::list<DrvName> DrvNames;
30
31std::string_view nextComponent(std::string_view::const_iterator & p,
32 const std::string_view::const_iterator end);
33std::strong_ordering compareVersions(const std::string_view v1, const std::string_view v2);
34DrvNames drvNamesFromArgs(const Strings & opArgs);
35
36}
Definition names.cc:12