Changeset 65021 in webkit for trunk/JavaScriptCore/wtf/text/StringImpl.h
- Timestamp:
- Aug 9, 2010, 5:38:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/text/StringImpl.h
r63273 r65021 27 27 #include <wtf/ASCIICType.h> 28 28 #include <wtf/CrossThreadRefCounted.h> 29 #include <wtf/Forward.h> 29 30 #include <wtf/OwnFastMallocPtr.h> 30 31 #include <wtf/StdLibExtras.h> … … 45 46 // Landing the file moves in one patch, will follow on with patches to change the namespaces. 46 47 namespace JSC { 47 48 48 struct IdentifierCStringTranslator; 49 49 struct IdentifierUCharBufferTranslator; 50 51 50 } 52 51 53 // FIXME: This is a temporary layering violation while we move string code to WTF. 54 // Landing the file moves in one patch, will follow on with patches to change the namespaces. 55 namespace WebCore { 56 57 class StringBuffer; 52 namespace WTF { 58 53 59 54 struct CStringTranslator; 60 55 struct HashAndCharactersTranslator; 61 struct StringHash;62 56 struct UCharBufferTranslator; 63 57 … … 71 65 friend struct JSC::IdentifierCStringTranslator; 72 66 friend struct JSC::IdentifierUCharBufferTranslator; 73 friend struct CStringTranslator;74 friend struct HashAndCharactersTranslator;75 friend struct UCharBufferTranslator;67 friend struct WTF::CStringTranslator; 68 friend struct WTF::HashAndCharactersTranslator; 69 friend struct WTF::UCharBufferTranslator; 76 70 friend class AtomicStringImpl; 77 71 private: … … 385 379 } 386 380 381 struct StringHash; 382 383 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl> 384 template<typename T> struct DefaultHash; 385 template<> struct DefaultHash<StringImpl*> { 386 typedef StringHash Hash; 387 }; 388 template<> struct DefaultHash<RefPtr<StringImpl> > { 389 typedef StringHash Hash; 390 }; 391 387 392 } 388 393 389 using WebCore::equal; 390 391 namespace WTF { 392 393 // WebCore::StringHash is the default hash for StringImpl* and RefPtr<StringImpl> 394 template<typename T> struct DefaultHash; 395 template<> struct DefaultHash<WebCore::StringImpl*> { 396 typedef WebCore::StringHash Hash; 397 }; 398 template<> struct DefaultHash<RefPtr<WebCore::StringImpl> > { 399 typedef WebCore::StringHash Hash; 400 }; 401 402 } 394 using WTF::StringImpl; 395 using WTF::equal; 396 using WTF::TextCaseSensitivity; 397 using WTF::TextCaseSensitive; 398 using WTF::TextCaseInsensitive; 403 399 404 400 #endif
Note:
See TracChangeset
for help on using the changeset viewer.