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::einteger_detail Namespace Reference

string parsing More...

Functions

bool is_sign (char c) noexcept
bool is_octal_digit (char c) noexcept
bool is_decimal_digit (char c) noexcept
bool is_hex_digit (char c) noexcept
std::string::size_type skip_signs (const std::string &s) noexcept
unsigned nibble (char c) noexcept
bool matches_binary (const std::string &s) noexcept
bool matches_octal (const std::string &s) noexcept
bool matches_decimal (const std::string &s) noexcept
bool matches_hex (const std::string &s) noexcept
template<typename Integer>
void parse_power_of_two_digits (const std::string &number, std::string::size_type first, unsigned bitsPerDigit, Integer &magnitude)

Detailed Description

string parsing

Function Documentation

◆ is_decimal_digit()

bool sw::universal::einteger_detail::is_decimal_digit ( char c)
inlinenoexcept

◆ is_hex_digit()

bool sw::universal::einteger_detail::is_hex_digit ( char c)
inlinenoexcept

◆ is_octal_digit()

bool sw::universal::einteger_detail::is_octal_digit ( char c)
inlinenoexcept

◆ is_sign()

bool sw::universal::einteger_detail::is_sign ( char c)
inlinenoexcept

◆ matches_binary()

bool sw::universal::einteger_detail::matches_binary ( const std::string & s)
inlinenoexcept

◆ matches_decimal()

bool sw::universal::einteger_detail::matches_decimal ( const std::string & s)
inlinenoexcept

◆ matches_hex()

bool sw::universal::einteger_detail::matches_hex ( const std::string & s)
inlinenoexcept

◆ matches_octal()

bool sw::universal::einteger_detail::matches_octal ( const std::string & s)
inlinenoexcept

◆ nibble()

unsigned sw::universal::einteger_detail::nibble ( char c)
inlinenoexcept

◆ parse_power_of_two_digits()

template<typename Integer>
void sw::universal::einteger_detail::parse_power_of_two_digits ( const std::string & number,
std::string::size_type first,
unsigned bitsPerDigit,
Integer & magnitude )
inline

◆ skip_signs()

std::string::size_type sw::universal::einteger_detail::skip_signs ( const std::string & s)
inlinenoexcept