mFrame
載入中...
搜尋中...
無符合項目
HashGenerator.h
1
8#ifndef MFRAME_D1E5DD7B_AA7D_4621_97E3_0B556D6CE64C
9#define MFRAME_D1E5DD7B_AA7D_4621_97E3_0B556D6CE64C
10
11/* ***************************************************************************************
12 * Include
13 */
14
15//----------------------------------------------------------------------------------------
16#include "./../lang/NonInstantiable.h"
17
18//----------------------------------------------------------------------------------------
19
20/* ***************************************************************************************
21 * Namespace
22 */
23namespace ufm::lang {
24 class HashGenerator;
25} // namespace ufm::lang
26
27/* ***************************************************************************************
28 * Class/Interface/Struct/Enum
29 */
30
35 /* *************************************************************************************
36 * Variable
37 */
38
39 /* *************************************************************************************
40 * Abstract Method
41 */
42
43 /* *************************************************************************************
44 * Construct Method
45 */
46 private:
51 virtual ~HashGenerator(void) override = default;
52
53 /* *************************************************************************************
54 * Operator Method
55 */
56
57 /* *************************************************************************************
58 * Override Method
59 */
60
61 /* *************************************************************************************
62 * Public Method
63 */
64
65 /* *************************************************************************************
66 * Protected Method
67 */
68
69 /* *************************************************************************************
70 * Private Method
71 */
72
73 /* *************************************************************************************
74 * Static Variable
75 */
76
77 /* *************************************************************************************
78 * Static Method
79 */
80 public:
90 static int getHashcode(const void* src, int len);
91
100 static int getHashcode(const char* src);
101
110 static int getHashcodeUpperCast(const char* src);
111
120 static int getHashcodeLowerCast(const char* src);
121};
122
123/* ***************************************************************************************
124 * End of file
125 */
126
127#endif /* MFRAME_D1E5DD7B_AA7D_4621_97E3_0B556D6CE64C */
雜湊產生器類別,提供雜湊值生成的多種方法
Definition HashGenerator.h:34
static int getHashcode(const char *src)
計算 C 字串的雜湊值
static int getHashcodeUpperCast(const char *src)
計算 C 字串的雜湊值 (全部字符轉為大寫後計算)
static int getHashcodeLowerCast(const char *src)
計算 C 字串的雜湊值 (全部字符轉為小寫後計算)
static int getHashcode(const void *src, int len)
計算資料區塊的雜湊值
Definition NonInstantiable.h:29
Definition Appendable.h:23