00001 #ifndef _T_UTIL_HH 00002 #define _T_UTIL_HH 00003 00004 // Simple utility functions used by the library. 00005 00006 class TUtil 00007 { 00008 public: 00009 00018 static unsigned int Hash (const char *cs, int n, 00019 unsigned int hash = 0); 00020 00029 static bool Equal (const char *s1, const char *s2, int n); 00030 00037 static void CopyOverlapped (char *s1, const char *s2, int n); 00038 }; 00039 00040 #endif // _T_UTIL_HH