String conversion/printing values¶
dB_to_string
function¶
template <typename T>
std::string dB_to_string(const T &value,
double minimum = -140.0)
Converts dB value to string (uses oo for infinity symbol)
Source code
template <typename T>
std::string dB_to_string(const T& value, double minimum = -140.0)
{
if (value <= minimum)
return "-oo dB";
return as_string(fmtwidth<0, 2>(value), " dB");
}
https://github.com/kfrlib/kfr/blob//include/kfr/io/tostring.hpp#L281
dB_to_utf8string
function¶
template <typename T>
std::string dB_to_utf8string(const T &value,
double minimum = -140.0)
Converts dB value to string (uses infinity symbol in utf-8 encoding)
Source code
template <typename T>
std::string dB_to_utf8string(const T& value, double minimum = -140.0)
{
if (value <= minimum)
return "-\xE2\x88\x9E dB"; // infinity symbol
return as_string(fmtwidth<0, 2>(value), " dB");
}
https://github.com/kfrlib/kfr/blob//include/kfr/io/tostring.hpp#L290
debug_printer
function¶
inline internal::expression_debug_printer debug_printer()
Returns an output expression that prints the values with their types (used for debug)
Source code
inline internal::expression_debug_printer debug_printer() { return internal::expression_debug_printer(); }
https://github.com/kfrlib/kfr/blob//include/kfr/io/tostring.hpp#L276
printer
function¶
inline internal::expression_printer printer()
Returns an output expression that prints the values
Source code
inline internal::expression_printer printer() { return internal::expression_printer(); }
https://github.com/kfrlib/kfr/blob//include/kfr/io/tostring.hpp#L273
Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/