mFrame
載入中...
搜尋中...
無符合項目
Floats.h
1
7#ifndef MFRAME_D058821B_1E72_462D_A6EC_00EA14E01C9D
8#define MFRAME_D058821B_1E72_462D_A6EC_00EA14E01C9D
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "./../lang/NonInstantiable.h"
16
17//----------------------------------------------------------------------------------------
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace ufm::numb {
23 class Floats;
24} // namespace ufm::numb
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
29
43 /* *************************************************************************************
44 * Variable
45 */
46
47 /* *************************************************************************************
48 * Abstract Method
49 */
50
51 /* *************************************************************************************
52 * Construct Method
53 */
54 protected:
59 virtual ~Floats(void) override = default;
60
61 /* *************************************************************************************
62 * Operator Method
63 */
64
65 /* *************************************************************************************
66 * Override Method
67 */
68
69 /* *************************************************************************************
70 * Public Method
71 */
72
73 /* *************************************************************************************
74 * Protected Method
75 */
76
77 /* *************************************************************************************
78 * Private Method
79 */
80
81 /* *************************************************************************************
82 * Static Variable
83 */
84 public:
85 static const int MAX_ASCII_VALUE;
86 static const float MAX_VALUE;
87 static const float MIN_VALUE;
88 /* *************************************************************************************
89 * Static Method
90 */
91 public:
102 static bool isFloat(const char* str, int limit = -1);
103
116 static bool parseFloat(float& result, const char* str, int limit = -1);
117};
118
119/* ***************************************************************************************
120 * End of file
121 */
122
123#endif /* MFRAME_D058821B_1E72_462D_A6EC_00EA14E01C9D */
Definition NonInstantiable.h:29
浮點數靜態工具類
Definition Floats.h:42
static const float MAX_VALUE
浮點數最大值
Definition Floats.h:86
static bool parseFloat(float &result, const char *str, int limit=-1)
將字串解析為 float
virtual ~Floats(void) override=default
Destroy the Floats object.
static const int MAX_ASCII_VALUE
浮點數字串最大長度
Definition Floats.h:85
static const float MIN_VALUE
浮點數最小值
Definition Floats.h:87
static bool isFloat(const char *str, int limit=-1)
判斷字串是否為浮點數格式
Definition Boolean.h:23