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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller ( mueller@kde.org ) 4 * (C) 2001 Dirk Mueller ( mueller@kde.org )
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either 11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version. 12 * version 2 of the License, or (at your option) any later version.
13 * 13 *
14 * This library is distributed in the hope that it will be useful, 14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details. 17 * Library General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU Library General Public License 19 * You should have received a copy of the GNU Library General Public License
20 * along with this library; see the file COPYING.LIB. If not, write to 20 * along with this library; see the file COPYING.LIB. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA. 22 * Boston, MA 02110-1301, USA.
23 * 23 *
24 */ 24 */
25 25
26 #include "platform/wtf/text/StringImpl.h" 26 #include "platform/wtf/text/StringImpl.h"
27 27
28 #include <algorithm>
29 #include <memory>
28 #include "platform/wtf/DynamicAnnotations.h" 30 #include "platform/wtf/DynamicAnnotations.h"
29 #include "platform/wtf/LeakAnnotations.h" 31 #include "platform/wtf/LeakAnnotations.h"
30 #include "platform/wtf/PtrUtil.h" 32 #include "platform/wtf/PtrUtil.h"
31 #include "platform/wtf/StaticConstructors.h" 33 #include "platform/wtf/StaticConstructors.h"
32 #include "platform/wtf/StdLibExtras.h" 34 #include "platform/wtf/StdLibExtras.h"
33 #include "platform/wtf/allocator/Partitions.h" 35 #include "platform/wtf/allocator/Partitions.h"
34 #include "platform/wtf/text/AtomicString.h" 36 #include "platform/wtf/text/AtomicString.h"
35 #include "platform/wtf/text/AtomicStringTable.h" 37 #include "platform/wtf/text/AtomicStringTable.h"
36 #include "platform/wtf/text/CString.h" 38 #include "platform/wtf/text/CString.h"
37 #include "platform/wtf/text/CharacterNames.h" 39 #include "platform/wtf/text/CharacterNames.h"
38 #include "platform/wtf/text/StringBuffer.h" 40 #include "platform/wtf/text/StringBuffer.h"
39 #include "platform/wtf/text/StringHash.h" 41 #include "platform/wtf/text/StringHash.h"
40 #include "platform/wtf/text/StringToNumber.h" 42 #include "platform/wtf/text/StringToNumber.h"
41 #include <algorithm>
42 #include <memory>
43 43
44 using namespace std; 44 using namespace std;
45 45
46 namespace WTF { 46 namespace WTF {
47 47
48 using namespace Unicode; 48 using namespace Unicode;
49 49
50 // As of Jan 2017, StringImpl needs 2 * sizeof(int) + 29 bits of data, and 50 // As of Jan 2017, StringImpl needs 2 * sizeof(int) + 29 bits of data, and
51 // sizeof(ThreadRestrictionVerifier) is 16 bytes. Thus, in DCHECK mode the 51 // sizeof(ThreadRestrictionVerifier) is 16 bytes. Thus, in DCHECK mode the
52 // class may be padded to 32 bytes. 52 // class may be padded to 32 bytes.
(...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 } else if (LocaleIdMatchesLang(locale_identifier, "lt")) { 2012 } else if (LocaleIdMatchesLang(locale_identifier, "lt")) {
2013 // TODO(rob.buis) implement upper-casing rules for lt 2013 // TODO(rob.buis) implement upper-casing rules for lt
2014 // like in StringImpl::upper(locale). 2014 // like in StringImpl::upper(locale).
2015 } 2015 }
2016 } 2016 }
2017 2017
2018 return ToUpper(c); 2018 return ToUpper(c);
2019 } 2019 }
2020 2020
2021 } // namespace WTF 2021 } // namespace WTF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698