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 WTF_StringView_h | 5 #ifndef WTF_StringView_h |
6 #define WTF_StringView_h | 6 #define WTF_StringView_h |
7 | 7 |
8 #include "platform/wtf/Allocator.h" | 8 #include "platform/wtf/Allocator.h" |
9 #include "platform/wtf/GetPtr.h" | 9 #include "platform/wtf/GetPtr.h" |
10 #if DCHECK_IS_ON() | 10 #if DCHECK_IS_ON() |
11 #include "platform/wtf/RefPtr.h" | 11 #include "platform/wtf/RefPtr.h" |
12 #endif | 12 #endif |
| 13 #include <cstring> |
13 #include "platform/wtf/text/StringImpl.h" | 14 #include "platform/wtf/text/StringImpl.h" |
14 #include "platform/wtf/text/Unicode.h" | 15 #include "platform/wtf/text/Unicode.h" |
15 #include <cstring> | |
16 | 16 |
17 namespace WTF { | 17 namespace WTF { |
18 | 18 |
19 class AtomicString; | 19 class AtomicString; |
20 class String; | 20 class String; |
21 | 21 |
22 // A string like object that wraps either an 8bit or 16bit byte sequence | 22 // A string like object that wraps either an 8bit or 16bit byte sequence |
23 // and keeps track of the length and the type, it does NOT own the bytes. | 23 // and keeps track of the length and the type, it does NOT own the bytes. |
24 // | 24 // |
25 // Since StringView does not own the bytes creating a StringView from a String, | 25 // Since StringView does not own the bytes creating a StringView from a String, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 } | 275 } |
276 | 276 |
277 } // namespace WTF | 277 } // namespace WTF |
278 | 278 |
279 using WTF::StringView; | 279 using WTF::StringView; |
280 using WTF::EqualIgnoringASCIICase; | 280 using WTF::EqualIgnoringASCIICase; |
281 using WTF::DeprecatedEqualIgnoringCase; | 281 using WTF::DeprecatedEqualIgnoringCase; |
282 using WTF::IsAllSpecialCharacters; | 282 using WTF::IsAllSpecialCharacters; |
283 | 283 |
284 #endif | 284 #endif |
OLD | NEW |