| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef String16WTF_h | 5 #ifndef String16WTF_h |
| 6 #define String16WTF_h | 6 #define String16WTF_h |
| 7 | 7 |
| 8 #include "platform/Decimal.h" | 8 #include "platform/Decimal.h" |
| 9 #include "public/platform/WebString.h" | 9 #include "public/platform/WebString.h" |
| 10 #include "wtf/text/StringBuilder.h" | 10 #include "wtf/text/StringBuilder.h" |
| 11 #include "wtf/text/StringConcatenate.h" | 11 #include "wtf/text/StringConcatenate.h" |
| 12 #include "wtf/text/StringHash.h" | 12 #include "wtf/text/StringHash.h" |
| 13 #include "wtf/text/StringToNumber.h" |
| 13 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
| 14 | 15 |
| 15 namespace blink { | 16 namespace blink { |
| 16 namespace protocol { | 17 namespace protocol { |
| 17 | 18 |
| 18 class PLATFORM_EXPORT String16 { | 19 class PLATFORM_EXPORT String16 { |
| 19 public: | 20 public: |
| 20 String16() { } | 21 String16() { } |
| 21 String16(const String16& other); | 22 String16(const String16& other); |
| 22 String16(const UChar*, unsigned); | 23 String16(const UChar*, unsigned); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 template<> | 133 template<> |
| 133 struct HashTraits<String16> : SimpleClassHashTraits<String16> { | 134 struct HashTraits<String16> : SimpleClassHashTraits<String16> { |
| 134 static const bool hasIsEmptyValueFunction = true; | 135 static const bool hasIsEmptyValueFunction = true; |
| 135 static bool isEmptyValue(const String16& a) { return a.impl().isNull(); } | 136 static bool isEmptyValue(const String16& a) { return a.impl().isNull(); } |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace WTF | 139 } // namespace WTF |
| 139 | 140 |
| 140 #endif // !defined(String16WTF_h) | 141 #endif // !defined(String16WTF_h) |
| OLD | NEW |