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

Unified Diff: Source/wtf/text/WTFString.h

Issue 587173005: Add WTF::String::emptyString16Bit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: Source/wtf/text/WTFString.h
diff --git a/Source/wtf/text/WTFString.h b/Source/wtf/text/WTFString.h
index 51d4bcd0e0180718bd21e08a2dd307a6a7c1b6b7..f5652533e3149845788a64df4fc733c2efa000a7 100644
--- a/Source/wtf/text/WTFString.h
+++ b/Source/wtf/text/WTFString.h
@@ -653,8 +653,11 @@ template<> struct DefaultHash<String> {
typedef StringHash Hash;
};
+enum Force16Bit { Force16BitEmpty };
Mikhail 2014/09/23 09:48:10 Sorry, I see that I lead you to a bit wrong direct
+
// Shared global empty string.
WTF_EXPORT const String& emptyString();
+WTF_EXPORT const String& emptyString(Force16Bit);
WTF_EXPORT extern const String& xmlnsWithColon;
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698