mFrame
載入中...
搜尋中...
無符合項目
StringFormat.h
1
7#ifndef MFRAME_5F596881_5E43_4F42_97D0_4B6E1F7ED311
8#define MFRAME_5F596881_5E43_4F42_97D0_4B6E1F7ED311
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Appendable.h"
18#include "./../lang/Memory.h"
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace mframe::lang {
24 class StringFormat;
25} // namespace mframe::lang
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
31 /* *************************************************************************************
32 * Variable
33 */
34
35 /* *************************************************************************************
36 * Abstract Method
37 */
38
39 /* *************************************************************************************
40 * Construct Method
41 */
42 private:
47 StringFormat(void);
48
49 public:
54 virtual ~StringFormat(void) override;
55
56 /* *************************************************************************************
57 * Operator Method
58 */
59
60 /* *************************************************************************************
61 * Operator Method
62 */
63
64 /* *************************************************************************************
65 * Public Method <Override>
66 */
67
68 /* *************************************************************************************
69 * Public Method
70 */
71
72 /* *************************************************************************************
73 * Protected Method
74 */
75
76 /* *************************************************************************************
77 * Private Method
78 */
79
80 /* *************************************************************************************
81 * Static Variable
82 */
83 private:
84 static char mFormatBuffer[];
85
86 /* *************************************************************************************
87 * Static Method
88 */
89 public:
99 static int pointerVa(void* buffer, size_t bufferSize, const char* format, va_list args);
100
109 static int memoryVa(const mframe::lang::Memory& memory, const char* format,
110 va_list args);
111
120 static int writeBufferVa(mframe::lang::Appendable& appendable, const char* format,
121 va_list args);
122
132 static int pointer(void* buffer, uint32 bufferSize, const char* format, ...);
133
142 static int memory(const mframe::lang::Memory& memory, const char* format, ...);
143
152 static int writeBuffer(mframe::lang::Appendable& appendable, const char* format, ...);
153
162 static int scanVa(const char* src, const char* format, va_list args);
163
172 static int scan(const char* src, const char* format, ...);
173
174 static int size(const char* src);
175
176 static bool isEmpty(const char* src);
177};
178
179/* ***************************************************************************************
180 * End of file
181 */
182
183#endif /* MFRAME_5F596881_5E43_4F42_97D0_4B6E1F7ED311 */
Definition Memory.h:29
Definition Object.h:34
Definition StringFormat.h:30
static int pointerVa(void *buffer, size_t bufferSize, const char *format, va_list args)
static int writeBufferVa(mframe::lang::Appendable &appendable, const char *format, va_list args)
static int scan(const char *src, const char *format,...)
virtual ~StringFormat(void) override
Destroy the String Format object.
static int pointer(void *buffer, uint32 bufferSize, const char *format,...)
static int memory(const mframe::lang::Memory &memory, const char *format,...)
static int writeBuffer(mframe::lang::Appendable &appendable, const char *format,...)
static int memoryVa(const mframe::lang::Memory &memory, const char *format, va_list args)
static int scanVa(const char *src, const char *format, va_list args)
Definition Appendable.h:23
可附加的 <Interface>
Definition Appendable.h:36