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

Unified Diff: base/string_util.cc

Issue 464064: Add StringPrintV, fix libxml_utils.cc to use it (Closed)
Patch Set: remove wstring version of StringPrintV Created 11 years 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 | « base/string_util.h ('k') | chrome/common/libxml_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util.cc
diff --git a/base/string_util.cc b/base/string_util.cc
index 9db0f03b5c353d2f1378f3b8ab4a1b91015c715f..b38e182ea676496bd94db8d14c261dde4669aea0 100644
--- a/base/string_util.cc
+++ b/base/string_util.cc
@@ -1245,6 +1245,12 @@ std::wstring StringPrintf(const wchar_t* format, ...) {
return result;
}
+std::string StringPrintV(const char* format, va_list ap) {
+ std::string result;
+ StringAppendV(&result, format, ap);
+ return result;
+}
+
const std::string& SStringPrintf(std::string* dst, const char* format, ...) {
va_list ap;
va_start(ap, format);
« no previous file with comments | « base/string_util.h ('k') | chrome/common/libxml_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698