| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_STRINGPRINTF_H_ | 5 #ifndef BASE_STRINGPRINTF_H_ |
| 6 #define BASE_STRINGPRINTF_H_ | 6 #define BASE_STRINGPRINTF_H_ |
| 7 | 7 |
| 8 #include <stdarg.h> // va_list | 8 #include <stdarg.h> // va_list |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 BASE_EXPORT void StringAppendV(std::string* dst, const char* format, va_list ap) | 52 BASE_EXPORT void StringAppendV(std::string* dst, const char* format, va_list ap) |
| 53 PRINTF_FORMAT(2, 0); | 53 PRINTF_FORMAT(2, 0); |
| 54 #if !defined(OS_ANDROID) | 54 #if !defined(OS_ANDROID) |
| 55 BASE_EXPORT void StringAppendV(std::wstring* dst, | 55 BASE_EXPORT void StringAppendV(std::wstring* dst, |
| 56 const wchar_t* format, va_list ap) | 56 const wchar_t* format, va_list ap) |
| 57 WPRINTF_FORMAT(2, 0); | 57 WPRINTF_FORMAT(2, 0); |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 } // namespace base | 60 } // namespace base |
| 61 | 61 |
| 62 // Don't require the namespace for legacy code. New code should use "base::" or | |
| 63 // have its own using decl. | |
| 64 // | |
| 65 // TODO(brettw) remove these when calling code is converted. | |
| 66 using base::StringPrintf; | |
| 67 | |
| 68 #endif // BASE_STRINGPRINTF_H_ | 62 #endif // BASE_STRINGPRINTF_H_ |
| OLD | NEW |