Convenient building of std::string with boost::format.
More...
#include <base/String.h>
|
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &str, const Format &obj) |
| Stream output.
|
|
Convenient building of std::string with boost::format.
Basically a boost::format autoconvertible to std::string for building string arguments.
- Note
- It won't complain about malformed or incomplete format strings. Usefull when dealing with translations or classes providing a default formater.
void fnc( const std::string & txt_r );
Definition at line 252 of file String.h.
◆ Format() [1/2]
zypp::str::Format::Format |
( |
| ) |
|
|
inline |
◆ Format() [2/2]
zypp::str::Format::Format |
( |
const std::string & |
format_r | ) |
|
|
inline |
◆ operator%()
template<class Tp >
Format & zypp::str::Format::operator% |
( |
Tp && |
arg | ) |
|
|
inline |
◆ operator std::string()
zypp::str::Format::operator std::string |
( |
| ) |
const |
|
inline |
◆ asString()
std::string zypp::str::Format::asString |
( |
| ) |
const |
|
inline |
◆ str()
std::string zypp::str::Format::str |
( |
| ) |
const |
|
inline |
◆ fmter() [1/2]
const boost::format & zypp::str::Format::fmter |
( |
| ) |
const |
|
inline |
◆ fmter() [2/2]
boost::format & zypp::str::Format::fmter |
( |
| ) |
|
|
inline |
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const Format & |
obj |
|
) |
| |
|
related |
Stream output.
Definition at line 273 of file String.h.
◆ _fmter
boost::format zypp::str::Format::_fmter |
|
protected |
The documentation for this class was generated from the following file: