Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

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 addf (std::string &str, const char *fmt,...) ATTR_PRINTF(2 throw ()
 Format the printf-style arguments and add the result to `str'.
std::string fmt (const char *fmt,...) ATTR_PRINTF(1 throw ()
 Format the printf-style arguments and return the result as a string.
std::string fmt (int val) throw ()
std::string fmt (unsigned int val) throw ()
std::string fmt (long int val) throw ()
std::string fmt (long unsigned int val) throw ()
std::string 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.


Function Documentation

int stringf::addf std::string &  str,
const char *  fmt,
  ...
throw ()
 

Format the printf-style arguments and add the result to `str'.

std::string fmt const std::string &  str  )  throw () [inline]
 

std::string fmt long unsigned int  val  )  throw ()
 

std::string fmt long int  val  )  throw ()
 

std::string fmt unsigned int  val  )  throw ()
 

std::string fmt int  val  )  throw ()
 

std::string fmt const char *  fmt,
  ...
throw ()
 

Format the printf-style arguments and return the result as a string.


Generated on Sun Aug 15 21:20:49 2004 for libtagcoll by doxygen 1.3.8