Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/Source/wtf/text/WTFString.h

Issue 2522243003: Revert of Out-of-line WTF::String's destructor. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 String(const char* characters, unsigned length); 92 String(const char* characters, unsigned length);
93 93
94 // Construct a string with latin1 data, from a null-terminated source. 94 // Construct a string with latin1 data, from a null-terminated source.
95 String(const LChar* characters); 95 String(const LChar* characters);
96 String(const char* characters); 96 String(const char* characters);
97 97
98 // Construct a string referencing an existing StringImpl. 98 // Construct a string referencing an existing StringImpl.
99 String(StringImpl* impl) : m_impl(impl) {} 99 String(StringImpl* impl) : m_impl(impl) {}
100 String(PassRefPtr<StringImpl> impl) : m_impl(impl) {} 100 String(PassRefPtr<StringImpl> impl) : m_impl(impl) {}
101 101
102 String(const String&);
103 String& operator=(const String&);
104
105 String(String&&);
106 String& operator=(String&&);
107
108 ~String();
109
110 void swap(String& o) { m_impl.swap(o.m_impl); } 102 void swap(String& o) { m_impl.swap(o.m_impl); }
111 103
112 template <typename CharType> 104 template <typename CharType>
113 static String adopt(StringBuffer<CharType>& buffer) { 105 static String adopt(StringBuffer<CharType>& buffer) {
114 if (!buffer.length()) 106 if (!buffer.length())
115 return StringImpl::empty(); 107 return StringImpl::empty();
116 return String(buffer.release()); 108 return String(buffer.release());
117 } 109 }
118 110
119 bool isNull() const { return !m_impl; } 111 bool isNull() const { return !m_impl; }
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 using WTF::emptyString; 652 using WTF::emptyString;
661 using WTF::emptyString16Bit; 653 using WTF::emptyString16Bit;
662 using WTF::charactersAreAllASCII; 654 using WTF::charactersAreAllASCII;
663 using WTF::equal; 655 using WTF::equal;
664 using WTF::find; 656 using WTF::find;
665 using WTF::isAllSpecialCharacters; 657 using WTF::isAllSpecialCharacters;
666 using WTF::isSpaceOrNewline; 658 using WTF::isSpaceOrNewline;
667 659
668 #include "wtf/text/AtomicString.h" 660 #include "wtf/text/AtomicString.h"
669 #endif // WTFString_h 661 #endif // WTFString_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698