summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 01:52:13 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 01:52:13 +0000
commit969f815e00942ba68f6ddd7bf4b0ce9f6da9479c (patch)
tree1d6b467f0e36248fbfa9278b98c91c087bdb05c8 /base/string_util.h
parentce5ae299183322b9accc2532d17c9599bbc2f7d1 (diff)
downloadchromium_src-969f815e00942ba68f6ddd7bf4b0ce9f6da9479c.zip
chromium_src-969f815e00942ba68f6ddd7bf4b0ce9f6da9479c.tar.gz
chromium_src-969f815e00942ba68f6ddd7bf4b0ce9f6da9479c.tar.bz2
Add StringPrintV, fix libxml_utils.cc to use it
Review URL: http://codereview.chromium.org/464064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h
index 66518e9..723242e 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -453,6 +453,9 @@ double StringToDouble(const string16& value);
std::string StringPrintf(const char* format, ...) PRINTF_FORMAT(1, 2);
std::wstring StringPrintf(const wchar_t* format, ...) WPRINTF_FORMAT(1, 2);
+// Return a C++ string given vprintf-like input.
+std::string StringPrintV(const char* format, va_list ap) PRINTF_FORMAT(1, 0);
+
// Store result into a supplied string and return it
const std::string& SStringPrintf(std::string* dst, const char* format, ...)
PRINTF_FORMAT(2, 3);