xmol/utils/string.h file

Contents

Namespaces

namespace xmol
Reworked original xmol.
namespace xmol::utils

Functions

static auto ltrim(std::string& s) -> std::string&
static auto rtrim(std::string& s) -> std::string&
static auto trim(std::string& s) -> std::string&
static auto ltrim(std::string&& s) -> std::string
static auto rtrim(std::string&& s) -> std::string
static auto trim(std::string&& s) -> std::string
template<typename I>
auto int2hex(I w, size_t hex_len = sizeof(I)<<1) -> std::string