Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sese::text::Number类 参考final

数字转字符串工具 更多...

#include <Number.h>

类 sese::text::Number 继承关系图:
sese::NotInstantiable

Public 成员函数

 Number ()=delete
 
- Public 成员函数 继承自 sese::NotInstantiable
 NotInstantiable ()=delete
 
virtual ~NotInstantiable ()=default
 
 NotInstantiable (const NotInstantiable &)=delete
 
NotInstantiableoperator= (const NotInstantiable &)=delete
 

静态 Public 成员函数

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
 

静态 Private 成员函数

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

详细描述

数字转字符串工具

构造及析构函数说明

◆ 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

引用了 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

该类的文档由以下文件生成: