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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.h

Issue 1624383002: Match <area shape> ASCII case-insensitively (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/text/StringImpl.h
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
index c35fd436512810459f4e185130d63cb7c90650ee..90b8c9b7146c1e24b531ad34b4add213f62c3b5f 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
@@ -513,21 +513,8 @@ inline bool equalIgnoringASCIICase(const CharacterTypeA* a, const CharacterTypeB
return true;
}
-template<typename CharacterTypeA, typename CharacterTypeB>
-inline bool equalIgnoringASCIICase(const CharacterTypeA& a, const CharacterTypeB& b)
-{
- unsigned length = b.length();
- if (a.length() != length)
- return false;
- if (a.is8Bit()) {
- if (b.is8Bit())
- return equalIgnoringASCIICase(a.characters8(), b.characters8(), length);
- return equalIgnoringASCIICase(a.characters8(), b.characters16(), length);
- }
- if (b.is8Bit())
- return equalIgnoringASCIICase(a.characters16(), b.characters8(), length);
- return equalIgnoringASCIICase(a.characters16(), b.characters16(), length);
-}
+WTF_EXPORT bool equalIgnoringASCIICase(const StringImpl*, const StringImpl*);
+WTF_EXPORT bool equalIgnoringASCIICase(const StringImpl*, const LChar*);
template<typename CharacterType>
inline size_t find(const CharacterType* characters, unsigned length, CharacterType matchCharacter, unsigned index = 0)
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicString.h ('k') | third_party/WebKit/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698