Add HashValue() methods to BString

This commit is contained in:
Ingo Weinhold
2011-11-25 06:19:44 +01:00
parent 1524eed163
commit 156ea481b3
2 changed files with 27 additions and 0 deletions
+10
View File
@@ -30,6 +30,9 @@ public:
int32 charCount) const;
bool IsEmpty() const;
uint32 HashValue() const;
static uint32 HashValue(const char* string);
// Assignment
BString& operator=(const BString& string);
BString& operator=(const char* string);
@@ -416,6 +419,13 @@ BString::String() const
}
inline uint32
BString::HashValue() const
{
return HashValue(String());
}
inline BString &
BString::SetTo(const char* string)
{