mFrame
載入中...
搜尋中...
無符合項目
Booleans.h
1
7#ifndef MFRAME_90D9B92C_CB56_4072_B34E_C233A3D5684D
8#define MFRAME_90D9B92C_CB56_4072_B34E_C233A3D5684D
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Object.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace mframe::numb {
23 class Booleans;
24} // namespace mframe::numb
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
30 /* *************************************************************************************
31 * Variable
32 */
33
34 /* *************************************************************************************
35 * Abstract Method
36 */
37
38 /* *************************************************************************************
39 * Construct Method
40 */
41 private:
46 Booleans(void) = default;
47
52 virtual ~Booleans(void) override = default;
53
54 /* *************************************************************************************
55 * Operator Method
56 */
57
58 /* *************************************************************************************
59 * Public Method <Override>
60 */
61
62 /* *************************************************************************************
63 * Public Method
64 */
65
66 /* *************************************************************************************
67 * Protected Method
68 */
69
70 /* *************************************************************************************
71 * Private Method
72 */
73
74 /* *************************************************************************************
75 * Static Variable
76 */
77 public:
78 static constexpr const char* const TEXT_TRUE = "true";
79 static constexpr const char* const TEXT_FALSE = "false";
80 static constexpr const int TEXT_TRUE_LENGTH = sizeof("true") - 1;
81 static constexpr const int TEXT_FALSE_LENGTH = sizeof("false") - 1;
82
83 /* *************************************************************************************
84 * Static Method
85 */
86 public:
87 static bool isTrue(const char* str, int count);
88
89 static bool isFalse(const char* str, int count);
90
91 static bool isBoolean(const char* str, int count);
92
93 static bool parseBoolean(bool& result, const char* str, int count);
94};
95
96/* ***************************************************************************************
97 * End of file
98 */
99
100#endif /* MFRAME_90D9B92C_CB56_4072_B34E_C233A3D5684D */
Definition Object.h:34
Definition Booleans.h:29
Definition Boolean.h:23