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

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

Issue 1841143002: Add enum class |WebEditingCommandType| for EditorCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introducing |codePointCompareIgnoringASCIICase()| Created 4 years, 8 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 * (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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void String::append(UChar c) 149 void String::append(UChar c)
150 { 150 {
151 appendInternal(c); 151 appendInternal(c);
152 } 152 }
153 153
154 int codePointCompare(const String& a, const String& b) 154 int codePointCompare(const String& a, const String& b)
155 { 155 {
156 return codePointCompare(a.impl(), b.impl()); 156 return codePointCompare(a.impl(), b.impl());
157 } 157 }
158 158
159 int codePointCompareIgnoringASCIICase(const String& a, const char* b)
160 {
161 return codePointCompareIgnoringASCIICase(a.impl(), reinterpret_cast<const LC har*>(b));
162 }
163
159 void String::insert(const String& string, unsigned position) 164 void String::insert(const String& string, unsigned position)
160 { 165 {
161 if (string.isEmpty()) { 166 if (string.isEmpty()) {
162 if (string.isNull()) 167 if (string.isNull())
163 return; 168 return;
164 if (isNull()) 169 if (isNull())
165 m_impl = string.impl(); 170 m_impl = string.impl();
166 return; 171 return;
167 } 172 }
168 173
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 buffer.append('\0'); 1286 buffer.append('\0');
1282 return buffer; 1287 return buffer;
1283 } 1288 }
1284 1289
1285 Vector<char> asciiDebug(String& string) 1290 Vector<char> asciiDebug(String& string)
1286 { 1291 {
1287 return asciiDebug(string.impl()); 1292 return asciiDebug(string.impl());
1288 } 1293 }
1289 1294
1290 #endif 1295 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | third_party/WebKit/public/blink_headers.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698