Chromium Code Reviews| 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. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 646 result.prepend(m_impl->characters16() + pos, numberOfCharactersToCopy); | 646 result.prepend(m_impl->characters16() + pos, numberOfCharactersToCopy); |
| 647 } | 647 } |
| 648 } | 648 } |
| 649 | 649 |
| 650 // StringHash is the default hash for String | 650 // StringHash is the default hash for String |
| 651 template<typename T> struct DefaultHash; | 651 template<typename T> struct DefaultHash; |
| 652 template<> struct DefaultHash<String> { | 652 template<> struct DefaultHash<String> { |
| 653 typedef StringHash Hash; | 653 typedef StringHash Hash; |
| 654 }; | 654 }; |
| 655 | 655 |
| 656 enum Force16Bit { Force16BitEmpty }; | |
|
Mikhail
2014/09/23 09:48:10
Sorry, I see that I lead you to a bit wrong direct
| |
| 657 | |
| 656 // Shared global empty string. | 658 // Shared global empty string. |
| 657 WTF_EXPORT const String& emptyString(); | 659 WTF_EXPORT const String& emptyString(); |
| 660 WTF_EXPORT const String& emptyString(Force16Bit); | |
| 658 WTF_EXPORT extern const String& xmlnsWithColon; | 661 WTF_EXPORT extern const String& xmlnsWithColon; |
| 659 | 662 |
| 660 } // namespace WTF | 663 } // namespace WTF |
| 661 | 664 |
| 662 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(String); | 665 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(String); |
| 663 | 666 |
| 664 using WTF::CString; | 667 using WTF::CString; |
| 665 using WTF::KeepTrailingZeros; | 668 using WTF::KeepTrailingZeros; |
| 666 using WTF::StrictUTF8Conversion; | 669 using WTF::StrictUTF8Conversion; |
| 667 using WTF::StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD; | 670 using WTF::StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD; |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 684 using WTF::charactersToFloat; | 687 using WTF::charactersToFloat; |
| 685 using WTF::equal; | 688 using WTF::equal; |
| 686 using WTF::equalIgnoringCase; | 689 using WTF::equalIgnoringCase; |
| 687 using WTF::find; | 690 using WTF::find; |
| 688 using WTF::isAllSpecialCharacters; | 691 using WTF::isAllSpecialCharacters; |
| 689 using WTF::isSpaceOrNewline; | 692 using WTF::isSpaceOrNewline; |
| 690 using WTF::reverseFind; | 693 using WTF::reverseFind; |
| 691 | 694 |
| 692 #include "wtf/text/AtomicString.h" | 695 #include "wtf/text/AtomicString.h" |
| 693 #endif // WTFString_h | 696 #endif // WTFString_h |
| OLD | NEW |