Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
names.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include <memory>
5
6
#include "
nix/util/types.hh
"
7
8
namespace
nix {
9
10
struct
Regex
;
11
12
struct
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
25
private
:
26
std::unique_ptr<Regex> regex;
27
};
28
29
typedef
std::list<DrvName> DrvNames;
30
31
std::string_view nextComponent(std::string_view::const_iterator & p,
const
std::string_view::const_iterator end);
32
std::strong_ordering compareVersions(
const
std::string_view v1,
const
std::string_view v2);
33
34
}
// namespace nix
nix::Regex
Definition
names.cc:9
types.hh
libstore
include
nix
store
names.hh
Generated by
1.18.0