1 #ifndef cetlib_base_converter_h 2 #define cetlib_base_converter_h 47 static constexpr
char const*
52 static constexpr
char const*
57 static constexpr
char const*
60 return "0123456789ABCDEF";
static constexpr char const * binary_set()
static unsigned int base2dec(std::string const &baseDigits, std::string const &value)
static std::string dec_to_hex(std::string value)
base_converter(std::string const &sourceBaseSet, std::string const &targetBaseSet)
std::string convert(std::string value) const
static constexpr char const * decimal_set()
static std::string dec2base(std::string const &baseDigits, unsigned int value)
unsigned int get_source_base() const
std::string const & get_source_base_set() const
static unsigned int divide(std::string const &baseDigits, std::string &x, unsigned int y)
static std::string dec_to_bin(std::string value)
std::string const & get_target_base_set() const
static constexpr char const * hex_set()
std::string source_base_set_
static std::string hex_to_dec(std::string value)
unsigned int get_target_base() const
std::string target_base_set_
static std::string bin_to_dec(std::string value)