CPP-AP 2.7.0
Command-line argument parser for C++20
Loading...
Searching...
No Matches
str_utility.hpp File Reference

Provides common string utility functions. More...

#include "concepts.hpp"
#include <algorithm>
#include <sstream>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  ap
 
namespace  ap::detail
 

Functions

template<c_writable T>
std::string ap::detail::as_string (const T &value) noexcept
 Converts a value to std::string.
 
bool ap::detail::contains_whitespaces (std::string_view str) noexcept
 Checks whether a string contains any whitespace characters.
 
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.
 

Detailed Description

Provides common string utility functions.

Definition in file str_utility.hpp.