StringHash.pkg 703 B

1234567891011121314151617181920212223
  1. $#include "Math/StringHash.h"
  2. class StringHash
  3. {
  4. StringHash();
  5. StringHash(const StringHash& rhs);
  6. StringHash(const char* str); // This works for Lua string and Urho3D:String
  7. explicit StringHash(unsigned value);
  8. ~StringHash();
  9. StringHash operator + (const StringHash& rhs) const;
  10. bool operator ==(const StringHash& rhs) const;
  11. bool operator < (const StringHash& rhs) const;
  12. operator bool () const;
  13. unsigned Value() const;
  14. String ToString() const;
  15. unsigned ToHash() const;
  16. static unsigned Calculate(const char* str);
  17. static const StringHash ZERO;
  18. tolua_readonly tolua_property__no_prefix unsigned value;
  19. };