#include <string>
Go to the source code of this file.
Namespaces | |
namespace | stringf |
Defines | |
#define | ATTR_PRINTF(string, first) |
#define | PFSTR(str) (int)(str).size(), (str).data() |
Pass a string to a printf-like function for a %.*s argument. | |
Functions | |
int | stringf::addf (std::string &str, const char *fmt,...) ATTR_PRINTF(2 throw () |
Format the printf-style arguments and add the result to `str'. | |
int std::string | stringf::fmt (const char *fmt,...) ATTR_PRINTF(1 throw () |
Format the printf-style arguments and return the result as a string. | |
int std::string std::string | stringf::fmt (int val) throw () |
std::string | stringf::fmt (unsigned int val) throw () |
std::string | stringf::fmt (long int val) throw () |
std::string | stringf::fmt (long unsigned int val) throw () |
std::string | stringf::fmt (const std::string &str) throw () |
#define ATTR_PRINTF | ( | string, | |||
first | ) |
#define PFSTR | ( | str | ) | (int)(str).size(), (str).data() |
Pass a string to a printf-like function for a %.*s argument.