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

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

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicString.cpp ('k') | 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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 private: 283 private:
284 const String& m_buffer; 284 const String& m_buffer;
285 }; 285 };
286 286
287 template<> 287 template<>
288 class StringTypeAdapter<AtomicString> { 288 class StringTypeAdapter<AtomicString> {
289 DISALLOW_NEW(); 289 DISALLOW_NEW();
290 public: 290 public:
291 StringTypeAdapter<AtomicString>(const AtomicString& string) 291 StringTypeAdapter<AtomicString>(const AtomicString& string)
292 : m_adapter(string.string()) 292 : m_adapter(string.getString())
293 { 293 {
294 } 294 }
295 295
296 unsigned length() { return m_adapter.length(); } 296 unsigned length() { return m_adapter.length(); }
297 297
298 bool is8Bit() { return m_adapter.is8Bit(); } 298 bool is8Bit() { return m_adapter.is8Bit(); }
299 299
300 void writeTo(LChar* destination) { m_adapter.writeTo(destination); } 300 void writeTo(LChar* destination) { m_adapter.writeTo(destination); }
301 void writeTo(UChar* destination) { m_adapter.writeTo(destination); } 301 void writeTo(UChar* destination) { m_adapter.writeTo(destination); }
302 302
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 result += adapter1.length(); 348 result += adapter1.length();
349 adapter2.writeTo(result); 349 adapter2.writeTo(result);
350 350
351 return resultImpl.release(); 351 return resultImpl.release();
352 } 352 }
353 353
354 } // namespace WTF 354 } // namespace WTF
355 355
356 #include "wtf/text/StringOperators.h" 356 #include "wtf/text/StringOperators.h"
357 #endif 357 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicString.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698