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

Side by Side Diff: Source/wtf/text/AtomicString.h

Issue 203073002: Rename |imp| => |impl| in wtf (one use) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 AtomicString(const UChar* s) : m_string(add(s)) { } 43 AtomicString(const UChar* s) : m_string(add(s)) { }
44 44
45 template<size_t inlineCapacity> 45 template<size_t inlineCapacity>
46 explicit AtomicString(const Vector<UChar, inlineCapacity>& characters) 46 explicit AtomicString(const Vector<UChar, inlineCapacity>& characters)
47 : m_string(add(characters.data(), characters.size())) 47 : m_string(add(characters.data(), characters.size()))
48 { 48 {
49 } 49 }
50 50
51 // Constructing an AtomicString from a String / StringImpl can be expensive if 51 // Constructing an AtomicString from a String / StringImpl can be expensive if
52 // the StringImpl is not already atomic. 52 // the StringImpl is not already atomic.
53 explicit AtomicString(StringImpl* imp) : m_string(add(imp)) { } 53 explicit AtomicString(StringImpl* impl) : m_string(add(impl)) { }
54 explicit AtomicString(const String& s) : m_string(add(s.impl())) { } 54 explicit AtomicString(const String& s) : m_string(add(s.impl())) { }
55 55
56 AtomicString(StringImpl* baseString, unsigned start, unsigned length) : m_st ring(add(baseString, start, length)) { } 56 AtomicString(StringImpl* baseString, unsigned start, unsigned length) : m_st ring(add(baseString, start, length)) { }
57 57
58 enum ConstructFromLiteralTag { ConstructFromLiteral }; 58 enum ConstructFromLiteralTag { ConstructFromLiteral };
59 AtomicString(const char* characters, unsigned length, ConstructFromLiteralTa g) 59 AtomicString(const char* characters, unsigned length, ConstructFromLiteralTa g)
60 : m_string(addFromLiteralData(characters, length)) 60 : m_string(addFromLiteralData(characters, length))
61 { 61 {
62 } 62 }
63 63
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 using WTF::nullAtom; 264 using WTF::nullAtom;
265 using WTF::emptyAtom; 265 using WTF::emptyAtom;
266 using WTF::starAtom; 266 using WTF::starAtom;
267 using WTF::xmlAtom; 267 using WTF::xmlAtom;
268 using WTF::xmlnsAtom; 268 using WTF::xmlnsAtom;
269 using WTF::xlinkAtom; 269 using WTF::xlinkAtom;
270 #endif 270 #endif
271 271
272 #include "wtf/text/StringConcatenate.h" 272 #include "wtf/text/StringConcatenate.h"
273 #endif // AtomicString_h 273 #endif // AtomicString_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698