Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::areal_parse Namespace Reference

Functions

bool is_space (char c)
std::string_view trim (std::string_view s)
int special_value (std::string_view s, bool &negative)
template<unsigned BigBits, unsigned nbits, unsigned es, typename bt>
bool from_binary (const ::sw::universal::decimal_to_binary::basic_result< BigBits > &d, areal< nbits, es, bt > &v)
template<unsigned nbits, unsigned es, typename bt>
bool faithful (std::string_view s, areal< nbits, es, bt > &v)
template<unsigned nbits, unsigned es, typename bt>
bool nearest_exact (std::string_view s, areal< nbits, es, bt > &v)
template<unsigned nbits, unsigned es, typename bt>
bool adjacent (const areal< nbits, es, bt > &lo, const areal< nbits, es, bt > &hi)

Function Documentation

◆ adjacent()

template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::areal_parse::adjacent ( const areal< nbits, es, bt > & lo,
const areal< nbits, es, bt > & hi )

◆ faithful()

template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::areal_parse::faithful ( std::string_view s,
areal< nbits, es, bt > & v )

◆ from_binary()

template<unsigned BigBits, unsigned nbits, unsigned es, typename bt>
bool sw::universal::areal_parse::from_binary ( const ::sw::universal::decimal_to_binary::basic_result< BigBits > & d,
areal< nbits, es, bt > & v )

◆ is_space()

bool sw::universal::areal_parse::is_space ( char c)
inline

◆ nearest_exact()

template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::areal_parse::nearest_exact ( std::string_view s,
areal< nbits, es, bt > & v )

◆ special_value()

int sw::universal::areal_parse::special_value ( std::string_view s,
bool & negative )
inline

◆ trim()

std::string_view sw::universal::areal_parse::trim ( std::string_view s)
inline