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

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

Issue 313993002: Bindings: Add ScalarValueString support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Incorporate review feedback Created 6 years, 6 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
« Source/wtf/text/WTFString.h ('K') | « Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/WTFString.cpp
diff --git a/Source/wtf/text/WTFString.cpp b/Source/wtf/text/WTFString.cpp
index 1ae107ea6aebee860a7c1c814357bcd5ed5fd4ef..c80edd4e052a8554e64baef35f9a77c10397769b 100644
--- a/Source/wtf/text/WTFString.cpp
+++ b/Source/wtf/text/WTFString.cpp
@@ -435,6 +435,13 @@ bool String::percentage(int& result) const
return true;
}
+String String::toScalarValueString() const
+{
+ if (!m_impl)
+ return String();
+ return m_impl->replaceUnmatchedSurrogates();
+}
+
Vector<UChar> String::charactersWithNullTermination() const
{
if (!m_impl)
« Source/wtf/text/WTFString.h ('K') | « Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698