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

Unified Diff: src/conversions.h

Issue 597007: Faster implementation of integer-to-ascii conversion. I think.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
« no previous file with comments | « no previous file | src/conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/conversions.h
===================================================================
--- src/conversions.h (revision 3813)
+++ src/conversions.h (working copy)
@@ -102,9 +102,10 @@
// 100 characters is enough.
const char* DoubleToCString(double value, Vector<char> buffer);
-// Convert an int to a null-terminated string. The returned string is
-// located inside the buffer, but not necessarily at the start.
-const char* IntToCString(int n, Vector<char> buffer);
+// Convert an int to a null-terminated string. The returned string need
+// not be freed by the caller, but may be overwritten by a later call to
+// IntToCString.
+const char* IntToCString(int n, int* length_return);
// Additional number to string conversions for the number type.
// The caller is responsible for calling free on the returned pointer.
« no previous file with comments | « no previous file | src/conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698