vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / util / StringUtils.h
blobe2aaca7595c0a7eaf6c2de1bc4e37dc0d91f6a52
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef STRING_UTILS_H
6 #define STRING_UTILS_H
8 #include <String.h>
11 class StringUtils {
12 public:
13 static uint32 HashValue(const char* string);
14 static uint32 HashValue(const BString& string);
18 /*static*/ inline uint32
19 StringUtils::HashValue(const BString& string)
21 return HashValue(string.String());
25 #endif // STRING_UTILS_H