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

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

Issue 2148423003: Use StringView for equalIgnoringCase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK is silly. Created 4 years, 4 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) 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 inline bool operator!=(const AtomicString& a, const AtomicString& b) { return a. impl() != b.impl(); } 163 inline bool operator!=(const AtomicString& a, const AtomicString& b) { return a. impl() != b.impl(); }
164 inline bool operator!=(const AtomicString& a, const LChar* b) { return !(a == b) ; } 164 inline bool operator!=(const AtomicString& a, const LChar* b) { return !(a == b) ; }
165 inline bool operator!=(const AtomicString& a, const char* b) { return !(a == b); } 165 inline bool operator!=(const AtomicString& a, const char* b) { return !(a == b); }
166 inline bool operator!=(const AtomicString& a, const String& b) { return !equal(a .impl(), b.impl()); } 166 inline bool operator!=(const AtomicString& a, const String& b) { return !equal(a .impl(), b.impl()); }
167 inline bool operator!=(const AtomicString& a, const Vector<UChar>& b) { return ! (a == b); } 167 inline bool operator!=(const AtomicString& a, const Vector<UChar>& b) { return ! (a == b); }
168 inline bool operator!=(const LChar* a, const AtomicString& b) { return !(b == a) ; } 168 inline bool operator!=(const LChar* a, const AtomicString& b) { return !(b == a) ; }
169 inline bool operator!=(const char* a, const AtomicString& b) { return !(b == a); } 169 inline bool operator!=(const char* a, const AtomicString& b) { return !(b == a); }
170 inline bool operator!=(const String& a, const AtomicString& b) { return !equal(a .impl(), b.impl()); } 170 inline bool operator!=(const String& a, const AtomicString& b) { return !equal(a .impl(), b.impl()); }
171 inline bool operator!=(const Vector<UChar>& a, const AtomicString& b) { return ! (a == b); } 171 inline bool operator!=(const Vector<UChar>& a, const AtomicString& b) { return ! (a == b); }
172 172
173 inline bool equalIgnoringCase(const AtomicString& a, const AtomicString& b) { re turn equalIgnoringCase(a.impl(), b.impl()); }
174 inline bool equalIgnoringCase(const AtomicString& a, const LChar* b) { return eq ualIgnoringCase(a.impl(), b); }
175 inline bool equalIgnoringCase(const AtomicString& a, const char* b) { return equ alIgnoringCase(a.impl(), reinterpret_cast<const LChar*>(b)); }
176 inline bool equalIgnoringCase(const AtomicString& a, const String& b) { return e qualIgnoringCase(a.impl(), b.impl()); }
177 inline bool equalIgnoringCase(const LChar* a, const AtomicString& b) { return eq ualIgnoringCase(a, b.impl()); }
178 inline bool equalIgnoringCase(const char* a, const AtomicString& b) { return equ alIgnoringCase(reinterpret_cast<const LChar*>(a), b.impl()); }
179 inline bool equalIgnoringCase(const String& a, const AtomicString& b) { return e qualIgnoringCase(a.impl(), b.impl()); }
180
181 // Define external global variables for the commonly used atomic strings. 173 // Define external global variables for the commonly used atomic strings.
182 // These are only usable from the main thread. 174 // These are only usable from the main thread.
183 WTF_EXPORT extern const AtomicString& nullAtom; 175 WTF_EXPORT extern const AtomicString& nullAtom;
184 WTF_EXPORT extern const AtomicString& emptyAtom; 176 WTF_EXPORT extern const AtomicString& emptyAtom;
185 WTF_EXPORT extern const AtomicString& starAtom; 177 WTF_EXPORT extern const AtomicString& starAtom;
186 WTF_EXPORT extern const AtomicString& xmlAtom; 178 WTF_EXPORT extern const AtomicString& xmlAtom;
187 WTF_EXPORT extern const AtomicString& xmlnsAtom; 179 WTF_EXPORT extern const AtomicString& xmlnsAtom;
188 WTF_EXPORT extern const AtomicString& xlinkAtom; 180 WTF_EXPORT extern const AtomicString& xlinkAtom;
189 181
190 182
(...skipping 21 matching lines...) Expand all
212 using WTF::AtomicString; 204 using WTF::AtomicString;
213 using WTF::nullAtom; 205 using WTF::nullAtom;
214 using WTF::emptyAtom; 206 using WTF::emptyAtom;
215 using WTF::starAtom; 207 using WTF::starAtom;
216 using WTF::xmlAtom; 208 using WTF::xmlAtom;
217 using WTF::xmlnsAtom; 209 using WTF::xmlnsAtom;
218 using WTF::xlinkAtom; 210 using WTF::xlinkAtom;
219 211
220 #include "wtf/text/StringConcatenate.h" 212 #include "wtf/text/StringConcatenate.h"
221 #endif // AtomicString_h 213 #endif // AtomicString_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/KURL.h ('k') | third_party/WebKit/Source/wtf/text/StringHash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698