Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Namespaces | Functions
String.hpp File Reference
#include <toolbox/util/Concepts.hpp>
#include <toolbox/util/TypeTraits.hpp>
#include <charconv>
#include <cstring>
#include <sstream>
Include dependency graph for String.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::util
 

Functions

template<typename ValueT >
constexpr ValueT toolbox::util::from_string (std::string_view sv)
 
template<typename ValueT >
constexpr ValueT toolbox::util::from_string (const std::string &s)
 
template<typename ValueT >
constexpr ValueT toolbox::util::from_string (const char *s)
 
template<typename ValueT >
std::string toolbox::util::to_string (ValueT &&val)
 
template<typename ValueT >
requires Arithmetic<ValueT>
std::string toolbox::util::to_string (ValueT &&val)
 
template<std::size_t SizeN>
constexpr std::string_view toolbox::util::to_string_view (const char(&val)[SizeN]) noexcept
 
void toolbox::util::ltrim (string_view &s) noexcept
 
void toolbox::util::ltrim (string &s) noexcept
 
void toolbox::util::rtrim (string_view &s) noexcept
 
void toolbox::util::rtrim (string &s) noexcept
 
void toolbox::util::trim (std::string_view &s) noexcept
 
void toolbox::util::trim (std::string &s) noexcept
 
std::string_view toolbox::util::ltrim_copy (std::string_view s) noexcept
 
std::string toolbox::util::ltrim_copy (std::string s) noexcept
 
std::string_view toolbox::util::rtrim_copy (std::string_view s) noexcept
 
std::string toolbox::util::rtrim_copy (std::string s) noexcept
 
std::string_view toolbox::util::trim_copy (std::string_view s) noexcept
 
std::string toolbox::util::trim_copy (std::string s) noexcept
 
pair< string_view, string_view > toolbox::util::split_pair (string_view s, char delim) noexcept
 
pair< string, string > toolbox::util::split_pair (const string &s, char delim)
 
template<char PadC>
constexpr std::size_t toolbox::util::pstrlen (const char *src, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::pstrlen (const char(&src)[SizeN]) noexcept
 
template<char PadC>
constexpr std::size_t toolbox::util::pstrcpy (char *dst, const char *src, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::pstrcpy (char(&dst)[SizeN], const char *src) noexcept
 
template<char PadC>
constexpr std::size_t toolbox::util::pstrcpy (char *dst, std::string_view src, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::pstrcpy (char(&dst)[SizeN], std::string_view src) noexcept
 
template<char PadC>
constexpr std::size_t toolbox::util::pstrcpyid (char *dst, std::int64_t id, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::pstrcpyid (char(&dst)[SizeN], std::int64_t id) noexcept
 
template<char PadC>
constexpr std::size_t toolbox::util::lpstrlen (const char *src, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::lpstrlen (const char(&src)[SizeN]) noexcept
 
template<char PadC>
constexpr std::size_t toolbox::util::lpstrcpy (char *dst, const char *src, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::lpstrcpy (char(&dst)[SizeN], const char *src) noexcept
 
template<char PadC>
constexpr std::size_t toolbox::util::lpstrcpy (char *dst, std::string_view src, std::size_t n) noexcept
 
template<char PadC, std::size_t SizeN>
constexpr std::size_t toolbox::util::lpstrcpy (char(&dst)[SizeN], std::string_view src) noexcept
 
template<typename... ArgsT>
std::string toolbox::util::make_string (ArgsT &&... args)