12#include <zypp-core/base/String.h>
14#include <zypp-core/base/Unit.h>
24 const std::string & symbol_r,
25 unsigned field_width_r,
26 unsigned unit_width_r,
29 std::string ret =
str::form(
"%*.*f", field_width_r, prec_r, val_r );
32 ret +=
str::form(
" %*s", unit_width_r, symbol_r.c_str() );
std::string form(ValueType val_r, unsigned field_width_r=0, unsigned unit_width_r=1) const
Build string representation of val_r.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.