stringf.h File Reference

Generic std::string helpers. More...

#include <string>

Include dependency graph for stringf.h:

This graph shows which files directly or indirectly include this file:

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 ()


Detailed Description

Generic std::string helpers.


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 Sat Jan 17 03:24:44 2009 for libtagcoll by  doxygen 1.5.1