Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::UnixPathTrait Struct Reference

#include <file-path-impl.hh>

Public Types

using CharT = char
using String = std::string
using StringView = std::string_view

Static Public Member Functions

static bool isPathSep (char c)
static size_t findPathSep (StringView path, size_t from=0)
static size_t rfindPathSep (StringView path, size_t from=StringView::npos)
static size_t rootNameLen (StringView)

Static Public Attributes

static constexpr char preferredSep = '/'

Detailed Description

Unix-style path primitives.

Nix'result own "logical" paths are always Unix-style. So this is always used for that, and additionally used for native paths on Unix.


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