Number to String Utility.
More...
#include <Number.h>
|
static std::string | toHex (uint64_t number, bool upper_case=true) noexcept |
|
static std::string | toHex (int64_t number, bool upper_case=true) noexcept |
|
static std::string | toOct (uint64_t number) noexcept |
|
static std::string | toOct (int64_t number) noexcept |
|
static std::string | toBin (uint64_t number) noexcept |
|
static std::string | toBin (int64_t number) noexcept |
|
static std::string | toString (double number, uint16_t placeholder) noexcept |
|
template<typename T > |
static void | toString (StringBuilder &builder, T number, int radix, bool upper_case) noexcept |
|
template<typename T > |
static void | toString (StringBuilder &builder, T number, uint16_t placeholder) noexcept |
|
Number to String Utility.
◆ Number()
sese::text::Number::Number |
( |
| ) |
|
|
delete |
◆ toBin() [1/2]
std::string Number::toBin |
( |
int64_t | number | ) |
|
|
staticnoexcept |
◆ toBin() [2/2]
std::string Number::toBin |
( |
uint64_t | number | ) |
|
|
staticnoexcept |
◆ toHex() [1/2]
std::string Number::toHex |
( |
int64_t | number, |
|
|
bool | upper_case = true ) |
|
staticnoexcept |
◆ toHex() [2/2]
std::string Number::toHex |
( |
uint64_t | number, |
|
|
bool | upper_case = true ) |
|
staticnoexcept |
◆ toOct() [1/2]
std::string Number::toOct |
( |
int64_t | number | ) |
|
|
staticnoexcept |
◆ toOct() [2/2]
std::string Number::toOct |
( |
uint64_t | number | ) |
|
|
staticnoexcept |
◆ toString() [1/3]
std::string Number::toString |
( |
double | number, |
|
|
uint16_t | placeholder ) |
|
staticnoexcept |
◆ toString() [2/3]
template<typename T >
static void sese::text::Number::toString |
( |
StringBuilder & | builder, |
|
|
T | number, |
|
|
int | radix, |
|
|
bool | upper_case ) |
|
inlinestaticnoexcept |
◆ toString() [3/3]
template<typename T >
static void sese::text::Number::toString |
( |
StringBuilder & | builder, |
|
|
T | number, |
|
|
uint16_t | placeholder ) |
|
inlinestaticnoexcept |
◆ toStringWithNoLeadingZeros()
std::string Number::toStringWithNoLeadingZeros |
( |
const std::string & | number | ) |
|
|
staticprivatenoexcept |
The documentation for this class was generated from the following files: