E-MailRelay
|
A simple version of boost::format for formatting strings in an i18n-friendly way. More...
#include <gformat.h>
Public Member Functions | |
format (const std::string &fmt) | |
Constructor. More... | |
format (const char *fmt) | |
Constructor. More... | |
format & | parse (const std::string &fmt) |
Resets the object with the given format string. More... | |
format & | parse (const char *fmt) |
Resets the object with the given format string. More... | |
std::string | str () const |
Returns the string. More... | |
std::size_t | size () const |
Returns the string size. More... | |
template<typename T > | |
format & | operator% (const T &) |
Applies a substitution value. More... | |
A simple version of boost::format for formatting strings in an i18n-friendly way.
Eg:
|
explicit |
Constructor.
Definition at line 26 of file gformat.cpp.
|
explicit |
Constructor.
Definition at line 32 of file gformat.cpp.
format & G::format::operator% | ( | const T & | item | ) |
G::format & G::format::parse | ( | const char * | fmt | ) |
Resets the object with the given format string.
Definition at line 48 of file gformat.cpp.
G::format & G::format::parse | ( | const std::string & | fmt | ) |
Resets the object with the given format string.
Definition at line 38 of file gformat.cpp.
std::size_t G::format::size | ( | ) | const |
Returns the string size.
Definition at line 93 of file gformat.cpp.
std::string G::format::str | ( | ) | const |
Returns the string.
Definition at line 63 of file gformat.cpp.