Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::text::Number Class Referencefinal

Number to String Utility. More...

#include <Number.h>

Inheritance diagram for sese::text::Number:
sese::NotInstantiable

Public Member Functions

 Number ()=delete
 
- Public Member Functions inherited from sese::NotInstantiable
 NotInstantiable ()=delete
 
virtual ~NotInstantiable ()=default
 
 NotInstantiable (const NotInstantiable &)=delete
 
NotInstantiableoperator= (const NotInstantiable &)=delete
 

Static Public Member Functions

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
 

Static Private Member Functions

static std::string toStringWithNoLeadingZeros (const std::string &number) noexcept
 

Detailed Description

Number to String Utility.

Constructor & Destructor Documentation

◆ Number()

sese::text::Number::Number ( )
delete

Member Function Documentation

◆ 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

References count().

◆ 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: