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

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

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
Index: Source/wtf/text/WTFString.h
diff --git a/Source/wtf/text/WTFString.h b/Source/wtf/text/WTFString.h
index 13078127885b7c8233cbb1e20515fdbd60125df8..3e39e0d98ea5a99a203f08863e346fcde549566b 100644
--- a/Source/wtf/text/WTFString.h
+++ b/Source/wtf/text/WTFString.h
@@ -380,6 +380,11 @@ public:
bool percentage(int& percentage) const;
+ // Returns a string which is guaranteed to be composed of Unicode
+ // scalar values, i.e. if the string is a 16-bit string, it is valid
+ // UTF-16 containing no unpaired surrogates.
+ String toScalarValueString() const;
tkent 2014/06/16 07:51:16 WTF should not have such function. I think this s
jsbell 2014/06/17 21:39:50 Okie dokie - moved it directly into V8Bindings.cpp
+
String isolatedCopy() const;
bool isSafeToSendToAnotherThread() const;

Powered by Google App Engine
This is Rietveld 408576698