diff options
author | Elliott Hughes <enh@google.com> | 2011-06-17 13:55:27 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-06-17 13:55:27 -0700 |
commit | 837eabb829417c1542037423c55536649de404b8 (patch) | |
tree | e05d7410a3f2e4bc66d53cb9359c5d967e21f8bd /vm/Misc.h | |
parent | e88cce67ddb18f2dc5a7f7ee1883e79e8830fac6 (diff) | |
download | android_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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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_ |