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

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

Issue 1528323002: Include <algorithm> if you use functions from <algorithm>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split ui parts into a separate review Created 5 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 | « third_party/WebKit/Source/wtf/text/TextPosition.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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007-2009 Torch Mobile, Inc. 4 * Copyright (C) 2007-2009 Torch Mobile, Inc.
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 16 matching lines...) Expand all
27 #include "wtf/DataLog.h" 27 #include "wtf/DataLog.h"
28 #include "wtf/HexNumber.h" 28 #include "wtf/HexNumber.h"
29 #include "wtf/MathExtras.h" 29 #include "wtf/MathExtras.h"
30 #include "wtf/StringExtras.h" 30 #include "wtf/StringExtras.h"
31 #include "wtf/Vector.h" 31 #include "wtf/Vector.h"
32 #include "wtf/dtoa.h" 32 #include "wtf/dtoa.h"
33 #include "wtf/text/CString.h" 33 #include "wtf/text/CString.h"
34 #include "wtf/text/CharacterNames.h" 34 #include "wtf/text/CharacterNames.h"
35 #include "wtf/text/UTF8.h" 35 #include "wtf/text/UTF8.h"
36 #include "wtf/text/Unicode.h" 36 #include "wtf/text/Unicode.h"
37 #include <algorithm>
37 #include <stdarg.h> 38 #include <stdarg.h>
38 39
39 namespace WTF { 40 namespace WTF {
40 41
41 using namespace Unicode; 42 using namespace Unicode;
42 43
43 // Construct a string with UTF-16 data. 44 // Construct a string with UTF-16 data.
44 String::String(const UChar* characters, unsigned length) 45 String::String(const UChar* characters, unsigned length)
45 : m_impl(characters ? StringImpl::create(characters, length) : nullptr) 46 : m_impl(characters ? StringImpl::create(characters, length) : nullptr)
46 { 47 {
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 buffer.append('\0'); 1222 buffer.append('\0');
1222 return buffer; 1223 return buffer;
1223 } 1224 }
1224 1225
1225 Vector<char> asciiDebug(String& string) 1226 Vector<char> asciiDebug(String& string)
1226 { 1227 {
1227 return asciiDebug(string.impl()); 1228 return asciiDebug(string.impl());
1228 } 1229 }
1229 1230
1230 #endif 1231 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextPosition.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698