Nix 2.26.3
Nix, the purely functional 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
6#include "types.hh"
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}
PosIdx end
Definition lexer.l:5814
return s
Definition lexer.l:459
std::shared_ptr< T > p
Definition lexer.l:1269
Definition names.cc:11