Go to the documentation of this file.
19 inline std::string
tos(
unsigned char a_value){
28 inline std::string
tos(
char a_value){
37 inline std::string
tos(
unsigned short a_value) {
43 inline std::string
tos(
short a_value){
49 inline std::string
tos(
unsigned int a_value) {
55 inline std::string
tosx(
unsigned int a_value) {
61 inline std::string
tos(
int a_value){
79 inline std::string
tos(
float a_value){
85 inline std::string
tos(
double a_value){
91 inline std::string
tos(
bool a_value){
92 return std::string(a_value?
"true":
"false");
95 inline std::string
tos(
const std::string& a_value){
return a_value;}
98 inline std::string
tos(
const std::vector<T>& a_vals,
99 const std::string& a_sep =
"\n",
100 bool a_sep_at_end =
false) {
101 size_t number = a_vals.size();
102 if(number<=0)
return "";
105 for(
size_t index=0;index<number;index++) {
106 result +=
tos(a_vals[index]);
109 result +=
tos(a_vals[number]);
110 if(a_sep_at_end) result += a_sep;
114 inline std::string
tos(
unsigned int a_linen,
const char* a_lines[]) {
116 for(
unsigned int index=0;index<a_linen;index++) {
117 s += std::string(a_lines[index]);