Changeset 52776 in webkit for trunk/JavaScriptCore/runtime/UStringImpl.h
- Timestamp:
- Jan 4, 2010, 5:24:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/UStringImpl.h
r52768 r52776 27 27 #define UStringImpl_h 28 28 29 #include <limits> 29 30 #include <wtf/CrossThreadRefCounted.h> 30 31 #include <wtf/OwnFastMallocPtr.h> 31 32 #include <wtf/PossiblyNull.h> 33 #include <wtf/StringHashFunctions.h> 32 34 #include <wtf/unicode/Unicode.h> 33 #include <limits>34 35 35 36 namespace JSC { … … 161 162 } 162 163 163 static unsigned computeHash(const UChar* , int length);164 static unsigned computeHash(const char* , int length);165 static unsigned computeHash(const char* s) { return computeHash(s, strlen(s)); }164 static unsigned computeHash(const UChar* s, int length) { ASSERT(length >= 0); return WTF::stringHash(s, length); } 165 static unsigned computeHash(const char* s, int length) { ASSERT(length >= 0); return WTF::stringHash(s, length); } 166 static unsigned computeHash(const char* s) { return WTF::stringHash(s); } 166 167 167 168 static UStringImpl& null() { return *s_null; }
Note:
See TracChangeset
for help on using the changeset viewer.