stringf.h File Reference

#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 Documentation

#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.


Generated on Wed Nov 30 18:18:30 2005 for libbuffy by  doxygen 1.4.5