Changeset 52758 in webkit for trunk/JavaScriptCore/runtime/UStringImpl.h
- Timestamp:
- Jan 4, 2010, 2:00:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/UStringImpl.h
r52500 r52758 28 28 29 29 #include <wtf/CrossThreadRefCounted.h> 30 #include <wtf/HashFunctions.h> 30 31 #include <wtf/OwnFastMallocPtr.h> 31 32 #include <wtf/PossiblyNull.h> … … 160 161 } 161 162 162 static unsigned computeHash(const UChar* , int length);163 static unsigned computeHash(const char* , int length);164 static unsigned computeHash(const char* s) { return computeHash(s, strlen(s)); }163 static unsigned computeHash(const UChar* s, int length) { ASSERT(length >= 0); return WTF::stringHash(s, length); } 164 static unsigned computeHash(const char* s, int length) { ASSERT(length >= 0); return WTF::stringHash(s, length); } 165 static unsigned computeHash(const char* s) { return WTF::stringHash(s); } 165 166 166 167 static UStringImpl& null() { return *s_null; }
Note:
See TracChangeset
for help on using the changeset viewer.