HighMap library (C++)
Loading...
Searching...
No Matches
string_utils.hpp
Go to the documentation of this file.
1
7#pragma once
8#include <filesystem>
9#include <string>
10
11namespace hmap
12{
13
35std::filesystem::path add_filename_suffix(
36 const std::filesystem::path &file_path,
37 const std::string &suffix);
38
50std::filesystem::path make_unique_temp_dir(const std::string &prefix);
51
72std::string zfill(const std::string &str, int n_zero);
73
74} // namespace hmap
Definition algebra.hpp:23
std::filesystem::path make_unique_temp_dir(const std::string &prefix)
Create a unique temporary directory.
Definition string_utils.cpp:26
std::string zfill(const std::string &str, int n_zero)
Pads the beginning of a string with zeros until it reaches a specified length.
Definition string_utils.cpp:43
std::filesystem::path add_filename_suffix(const std::filesystem::path &file_path, const std::string &suffix)
Adds a suffix to the filename of a given file path.
Definition string_utils.cpp:13