CPP-AP 2.2.6
Command-line argument parser for C++20
|
Provides common string utility functions. More...
Go to the source code of this file.
Functions | |
template<c_writable T> | |
std::string | ap::detail::as_string (const T &value) noexcept |
Converts a value to std::string . | |
template<std::ranges::range R> requires (c_writable<std::ranges::range_value_t<R>>) | |
std::string | ap::detail::join (const R &range, const std::string_view delimiter=", ") |
Joins elements of a range into a single string with a delimiter. | |
Provides common string utility functions.
Definition in file str_utility.hpp.
|
noexcept |
Converts a value to std::string
.
T | The value type (must satisfy the ap::detail::c_writable concept). |
value | The value to convert. |
Definition at line 25 of file str_utility.hpp.
std::string ap::detail::join | ( | const R & | range, |
const std::string_view | delimiter = ", " |
||
) |
Joins elements of a range into a single string with a delimiter.
R | The type of the value range. The value type of R must satisfy the c_writable concept. |
range | The input range to join. |
delimiter | The separator string to insert between elements. |
Definition at line 41 of file str_utility.hpp.