mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +01:00
We're not replacing `Path` in exposed definitions in many cases, but just adding alternatives. This will allow us to "top down" change `Path` to `std::fileysystem::path`, and then we can remove the `Path`-using utilities which will become unused. Also add some test files which we forgot to include in the libutil unit tests `meson.build`. Co-Authored-By: siddhantCodes <siddhantk232@gmail.com>
35 lines
1.7 KiB
C++
35 lines
1.7 KiB
C++
#include <filesystem>
|
|
#include <string>
|
|
|
|
#include "strings-inline.hh"
|
|
#include "os-string.hh"
|
|
|
|
namespace nix {
|
|
|
|
template std::list<std::string> tokenizeString(std::string_view s, std::string_view separators);
|
|
template std::set<std::string> tokenizeString(std::string_view s, std::string_view separators);
|
|
template std::vector<std::string> tokenizeString(std::string_view s, std::string_view separators);
|
|
|
|
template std::list<std::string> splitString(std::string_view s, std::string_view separators);
|
|
template std::set<std::string> splitString(std::string_view s, std::string_view separators);
|
|
template std::vector<std::string> splitString(std::string_view s, std::string_view separators);
|
|
|
|
template std::list<OsString>
|
|
basicSplitString(std::basic_string_view<OsChar> s, std::basic_string_view<OsChar> separators);
|
|
|
|
template std::string concatStringsSep(std::string_view, const std::list<std::string> &);
|
|
template std::string concatStringsSep(std::string_view, const std::set<std::string> &);
|
|
template std::string concatStringsSep(std::string_view, const std::vector<std::string> &);
|
|
|
|
typedef std::string_view strings_2[2];
|
|
template std::string concatStringsSep(std::string_view, const strings_2 &);
|
|
typedef std::string_view strings_3[3];
|
|
template std::string concatStringsSep(std::string_view, const strings_3 &);
|
|
typedef std::string_view strings_4[4];
|
|
template std::string concatStringsSep(std::string_view, const strings_4 &);
|
|
|
|
template std::string dropEmptyInitThenConcatStringsSep(std::string_view, const std::list<std::string> &);
|
|
template std::string dropEmptyInitThenConcatStringsSep(std::string_view, const std::set<std::string> &);
|
|
template std::string dropEmptyInitThenConcatStringsSep(std::string_view, const std::vector<std::string> &);
|
|
|
|
} // namespace nix
|