Title: [216105] trunk/Source/WTF
- Revision
- 216105
- Author
- dba...@webkit.org
- Date
- 2017-05-02 16:07:35 -0700 (Tue, 02 May 2017)
Log Message
Fix the build after <https://trac.webkit.org/changeset/216102>
(https://bugs.webkit.org/show_bug.cgi?id=170925)
Export into global scope ASCIICaseInsensitiveStringViewHashTranslator.
Also fix indentation of member functions of ASCIICaseInsensitiveStringViewHashTranslator.
* wtf/text/StringHash.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (216104 => 216105)
--- trunk/Source/WTF/ChangeLog 2017-05-02 23:06:13 UTC (rev 216104)
+++ trunk/Source/WTF/ChangeLog 2017-05-02 23:07:35 UTC (rev 216105)
@@ -1,5 +1,16 @@
2017-05-02 Daniel Bates <daba...@apple.com>
+ Fix the build after <https://trac.webkit.org/changeset/216102>
+ (https://bugs.webkit.org/show_bug.cgi?id=170925)
+
+ Export into global scope ASCIICaseInsensitiveStringViewHashTranslator.
+
+ Also fix indentation of member functions of ASCIICaseInsensitiveStringViewHashTranslator.
+
+ * wtf/text/StringHash.h:
+
+2017-05-02 Daniel Bates <daba...@apple.com>
+
Using StringView.split() instead of String.split() in some places
https://bugs.webkit.org/show_bug.cgi?id=170925
Modified: trunk/Source/WTF/wtf/text/StringHash.h (216104 => 216105)
--- trunk/Source/WTF/wtf/text/StringHash.h 2017-05-02 23:06:13 UTC (rev 216104)
+++ trunk/Source/WTF/wtf/text/StringHash.h 2017-05-02 23:07:35 UTC (rev 216105)
@@ -178,22 +178,23 @@
// FIXME: Find a way to incorporate this functionality into ASCIICaseInsensitiveHash and allow
// a HashMap whose keys are type String to perform operations when given a key of type StringView.
struct ASCIICaseInsensitiveStringViewHashTranslator {
- static unsigned hash(StringView key)
- {
- if (key.is8Bit())
- return ASCIICaseInsensitiveHash::hash(key.characters8(), key.length());
- return ASCIICaseInsensitiveHash::hash(key.characters16(), key.length());
- }
+ static unsigned hash(StringView key)
+ {
+ if (key.is8Bit())
+ return ASCIICaseInsensitiveHash::hash(key.characters8(), key.length());
+ return ASCIICaseInsensitiveHash::hash(key.characters16(), key.length());
+ }
- static bool equal(const String& a, StringView b)
- {
- return equalIgnoringASCIICaseCommon(a, b);
- }
+ static bool equal(const String& a, StringView b)
+ {
+ return equalIgnoringASCIICaseCommon(a, b);
+ }
};
}
using WTF::ASCIICaseInsensitiveHash;
+using WTF::ASCIICaseInsensitiveStringViewHashTranslator;
using WTF::AlreadyHashed;
using WTF::StringHash;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes