| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 | 559 |
| 560 // StringHash is the default hash for String | 560 // StringHash is the default hash for String |
| 561 template <typename T> | 561 template <typename T> |
| 562 struct DefaultHash; | 562 struct DefaultHash; |
| 563 template <> | 563 template <> |
| 564 struct DefaultHash<String> { | 564 struct DefaultHash<String> { |
| 565 typedef StringHash Hash; | 565 typedef StringHash Hash; |
| 566 }; | 566 }; |
| 567 | 567 |
| 568 // Shared global empty string. | 568 // Shared global empty string. |
| 569 WTF_EXPORT const String& emptyString(); | 569 WTF_EXPORT extern const String& emptyString; |
| 570 WTF_EXPORT const String& emptyString16Bit(); | 570 WTF_EXPORT extern const String& emptyString16Bit; |
| 571 WTF_EXPORT extern const String& xmlnsWithColon; | 571 WTF_EXPORT extern const String& xmlnsWithColon; |
| 572 | 572 |
| 573 // Pretty printer for gtest and base/logging.*. It prepends and appends | 573 // Pretty printer for gtest and base/logging.*. It prepends and appends |
| 574 // double-quotes, and escapes chracters other than ASCII printables. | 574 // double-quotes, and escapes chracters other than ASCII printables. |
| 575 WTF_EXPORT std::ostream& operator<<(std::ostream&, const String&); | 575 WTF_EXPORT std::ostream& operator<<(std::ostream&, const String&); |
| 576 | 576 |
| 577 inline StringView::StringView(const String& string, | 577 inline StringView::StringView(const String& string, |
| 578 unsigned offset, | 578 unsigned offset, |
| 579 unsigned length) | 579 unsigned length) |
| 580 : StringView(string.impl(), offset, length) {} | 580 : StringView(string.impl(), offset, length) {} |
| (...skipping 12 matching lines...) Expand all Loading... |
| 593 using WTF::String; | 593 using WTF::String; |
| 594 using WTF::emptyString; | 594 using WTF::emptyString; |
| 595 using WTF::emptyString16Bit; | 595 using WTF::emptyString16Bit; |
| 596 using WTF::charactersAreAllASCII; | 596 using WTF::charactersAreAllASCII; |
| 597 using WTF::equal; | 597 using WTF::equal; |
| 598 using WTF::find; | 598 using WTF::find; |
| 599 using WTF::isSpaceOrNewline; | 599 using WTF::isSpaceOrNewline; |
| 600 | 600 |
| 601 #include "wtf/text/AtomicString.h" | 601 #include "wtf/text/AtomicString.h" |
| 602 #endif // WTFString_h | 602 #endif // WTFString_h |
| OLD | NEW |