18std::string
to_string(
const T& v,
unsigned int w = -1,
unsigned int p = -1,
bool fixed=
false)
23 if (w != (
unsigned int)-1)
25 if (p != (
unsigned int)-1)
26 ss << std::setprecision(p);
33std::string
to_string(
const T& v,
unsigned int w,
char fill_char)
36 ss << std::setw(w) << std::setfill(fill_char) << v;
41template <> CGV_API std::string to_string(
const std::string& v,
unsigned int w,
unsigned int p,
bool);
47 std::stringstream ss(s);
53template <> CGV_API
bool from_string(std::string& v,
const std::string& s);
58#include <cgv/config/lib_end.h>
std::string to_string(const std::string &v, unsigned int w, unsigned int p, bool)
specialization of conversion from string to strings
bool from_string(std::string &v, const std::string &s)
specialization to extract string value from string