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

Unified Diff: runtime/vm/double_conversion.h

Issue 9113043: Implement Double.{toString, toStringAsExponential, toStringAsPrecision} (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't use NULL and rebase. Created 8 years, 10 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: runtime/vm/double_conversion.h
diff --git a/runtime/vm/double_conversion.h b/runtime/vm/double_conversion.h
index a8f91114a055f819c02f949fd517e4369c67edfa..cbc3c92562fb9c12a9255202894b927375f58800 100644
--- a/runtime/vm/double_conversion.h
+++ b/runtime/vm/double_conversion.h
@@ -10,10 +10,11 @@
namespace dart {
-bool DoubleToString(double d, String& result);
-bool DoubleToStringAsFixed(double d, int fraction_digits, String& result);
-bool DoubleToStringAsExponential(double d, int fraction_digits, String& result);
-bool DoubleToStringAsPrecision(double d, int precision, String& result);
+bool DoubleToCString(double d, char* buffer, int buffer_size,
+ int* result_length);
+RawString* DoubleToStringAsFixed(double d, int fraction_digits);
+RawString* DoubleToStringAsExponential(double d, int fraction_digits);
+RawString* DoubleToStringAsPrecision(double d, int precision);
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698