![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <list>#include <map>#include <optional>#include <string>#include <string_view>#include "nix/util/strings.hh"Go to the source code of this file.
Macros | |
| #define | OS_STR(s) |
Typedefs | |
| using | nix::OsChar |
| using | nix::OsString = std::basic_string<OsChar> |
| using | nix::OsStringView = std::basic_string_view<OsChar> |
| using | nix::OsStringMap = std::map<OsString, OsString, std::less<>> |
| using | nix::OsStrings = std::list<OsString> |
Functions | |
| std::string | nix::os_string_to_string (OsStringView s) |
| std::string | nix::os_string_to_string (OsString s) |
| OsString | nix::string_to_os_string (std::string_view s) |
| OsString | nix::string_to_os_string (std::string s) |
| OsStrings | nix::toOsStrings (std::list< std::string > ss) |
| #define OS_STR | ( | s | ) |
Create string literals with the native character width of paths
| using nix::OsChar |
Named because it is similar to the Rust type, except it is in the native encoding not WTF-8.
Same as std::filesystem::path::value_type, but manually defined to avoid including a much more complex header.
| using nix::OsString = std::basic_string<OsChar> |
Named because it is similar to the Rust type, except it is in the native encoding not WTF-8.
Same as std::filesystem::path::string_type, but manually defined for the same reason as OsChar.
| using nix::OsStringMap = std::map<OsString, OsString, std::less<>> |
nix::StringMap counterpart for OsString
| using nix::OsStrings = std::list<OsString> |
nix::Strings counterpart for OsString
| using nix::OsStringView = std::basic_string_view<OsChar> |
std::string_view counterpart for OsString.
|
inline |
Convert a list of std::string to OsStrings. Takes ownership to enable moves on Unix.