summaryrefslogtreecommitdiffstats
path: root/vm/Misc.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-06-17 13:55:27 -0700
committerElliott Hughes <enh@google.com>2011-06-17 13:55:27 -0700
commit837eabb829417c1542037423c55536649de404b8 (patch)
treee05d7410a3f2e4bc66d53cb9359c5d967e21f8bd /vm/Misc.h
parente88cce67ddb18f2dc5a7f7ee1883e79e8830fac6 (diff)
downloadandroid_dalvik-837eabb829417c1542037423c55536649de404b8.tar.gz
android_dalvik-837eabb829417c1542037423c55536649de404b8.tar.bz2
android_dalvik-837eabb829417c1542037423c55536649de404b8.zip
Add and use StringAppendF.
I've also removed the dvm prefix from the existing StringPrintf. Change-Id: I3d01f676c876957b6c6e032c674e1a06c3670021
Diffstat (limited to 'vm/Misc.h')
-rw-r--r--vm/Misc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/vm/Misc.h b/vm/Misc.h
index f861c6c53..e027f0cd2 100644
--- a/vm/Misc.h
+++ b/vm/Misc.h
@@ -315,6 +315,13 @@ const char* dvmPathToAbsolutePortion(const char* path);
/**
* Returns a string corresponding to printf-like formatting of the arguments.
*/
-std::string dvmStringPrintf(const char* fmt, ...) __attribute__((__format__ (__printf__, 1, 2)));
+std::string StringPrintf(const char* fmt, ...)
+ __attribute__((__format__ (__printf__, 1, 2)));
+
+/**
+ * Appends a printf-like formatting of the arguments to 'dst'.
+ */
+void StringAppendF(std::string* dst, const char* fmt, ...)
+ __attribute__((__format__ (__printf__, 2, 3)));
#endif // DALVIK_MISC_H_