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

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

Issue 1636333003: Implement specced parsing algorithm for <area coords> (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
« no previous file with comments | « third_party/WebKit/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: third_party/WebKit/Source/wtf/text/WTFString.cpp
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.cpp b/third_party/WebKit/Source/wtf/text/WTFString.cpp
index 63c64f47f2709bb1b72cf7e73783a7999030f20c..f647d1733a41e7eb4ba9f8e5855ea7c2ddeafc16 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.cpp
+++ b/third_party/WebKit/Source/wtf/text/WTFString.cpp
@@ -1139,6 +1139,16 @@ double charactersToDouble(const UChar* data, size_t length, bool* ok)
return toDoubleType<UChar, DisallowTrailingJunk>(data, length, ok, parsedLength);
}
+double charactersToDouble(const LChar* data, size_t length, size_t& parsedLength)
+{
+ return toDoubleType<LChar, AllowTrailingJunk>(data, length, nullptr, parsedLength);
+}
+
+double charactersToDouble(const UChar* data, size_t length, size_t& parsedLength)
+{
+ return toDoubleType<UChar, AllowTrailingJunk>(data, length, nullptr, parsedLength);
+}
+
float charactersToFloat(const LChar* data, size_t length, bool* ok)
{
// FIXME: This will return ok even when the string fits into a double but
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698