diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-08 01:52:13 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-08 01:52:13 +0000 |
commit | 969f815e00942ba68f6ddd7bf4b0ce9f6da9479c (patch) | |
tree | 1d6b467f0e36248fbfa9278b98c91c087bdb05c8 /base/string_util.cc | |
parent | ce5ae299183322b9accc2532d17c9599bbc2f7d1 (diff) | |
download | chromium_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.cc')
-rw-r--r-- | base/string_util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/string_util.cc b/base/string_util.cc index 9db0f03..b38e182 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); |