7#ifndef MFRAME_E2DC1ED1_7C31_4A99_AF60_2B859E6190C9
8#define MFRAME_E2DC1ED1_7C31_4A99_AF60_2B859E6190C9
15#include "./../lang/NonInstantiable.h"
16#include "./../numb/Integer.h"
94 static_cast<int>(
sizeof(
"-2147483648"));
97 static_cast<int>(
sizeof(
"07777777777777777"));
100 static_cast<int>(
sizeof(
"0xFFFFFFFF"));
119 return static_cast<uint32
>(value);
129 return static_cast<int>(value);
155 static bool parseInteger(
int& result,
const char* str,
int limit = -1);
Definition NonInstantiable.h:29
整數靜態工具類
Definition Integers.h:44
static bool parseInteger(int &result, const char *str, int limit=-1)
將字串解析為整數
static constexpr const char *const TEXT_MAX_VALUE
最大值字符串表示
Definition Integers.h:88
static constexpr const int MAX_ASCII_HEX
最大十六進制ASCII長度
Definition Integers.h:99
static int castSigned(uint32 value)
轉換為有符號整數
Definition Integers.h:128
virtual ~Integers(void) override=default
Destroy the Integers object.
static constexpr const int MAX_ASCII_VALUE
最大ASCII值長度
Definition Integers.h:93
static constexpr const char *const TEXT_MIN_VALUE
最小值字符串表示
Definition Integers.h:90
static bool isInteger(const char *str, int limit=-1)
判斷字串是否為有效整數格式
static constexpr const int MAX_ASCII_OCTAL
最大八進制ASCII長度
Definition Integers.h:96
static uint32 castUnsigned(int value)
轉換為無符號整數
Definition Integers.h:118
static constexpr const int64 MAX_VALUE
整數類型的最大值
Definition Integers.h:103
static constexpr const int64 MIN_VALUE
整數類型的最小值
Definition Integers.h:106