Merged from go/wvgerrit/178231 Bug: 290252845 Test: WVTS tests seem to be running and passing Change-Id: Ifff9123a73e173e835a6e89ba7c2760e1cd500fd (cherry picked from commit 6889845d2e7e24f22c00b333335c34259b3fc96e)
24 lines
578 B
C++
24 lines
578 B
C++
// Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
#ifndef WVCDM_UTIL_STRING_FORMAT_H_
|
|
#define WVCDM_UTIL_STRING_FORMAT_H_
|
|
|
|
#include <string>
|
|
|
|
namespace wvutil {
|
|
|
|
#ifdef __GNUC__
|
|
[[gnu::format(printf, 2, 3)]]
|
|
#endif
|
|
bool FormatString(std::string* out, const char* fmt, ...);
|
|
|
|
#ifdef __GNUC__
|
|
[[gnu::format(printf, 2, 0)]]
|
|
#endif
|
|
bool VFormatString(std::string* out, const char* fmt, va_list vlist);
|
|
|
|
} // namespace wvutil
|
|
|
|
#endif // WVCDM_UTIL_STRING_FORMAT_H_
|