|
FlatImage
A configurable Linux containerization system
|
String helpers. More...
#include <algorithm>#include <sstream>#include <format>#include <expected>#include "concept.hpp"Go to the source code of this file.
Classes | |
| struct | ns_string::static_string< N > |
| Compile-time string container with fixed size. More... | |
Namespaces | |
| namespace | ns_string |
| String manipulation and conversion utilities. | |
Functions | |
| template<typename T> | |
| std::string | ns_string::to_string (T &&t) noexcept |
| Converts a type to a string. | |
| template<typename T> | |
| std::string | ns_string::from_container (T &&t, std::optional< char > sep=std::nullopt) noexcept |
| Converts a container into a string if it has string convertible elements. | |
| template<std::input_iterator It> | |
| std::string | ns_string::from_container (It &&begin, It &&end, std::optional< char > sep=std::nullopt) noexcept |
| Converts a container into a string if it has string convertible elements. | |
| template<typename... Args> | |
| std::string | ns_string::placeholders_replace (std::string str, Args &&... args) |
| Replace all occurrences of "{}" placeholders in a string with provided values. | |