Remove using std::string from port.h

Change-Id: I7376f5e7eace22ec1fc05a61eaa858594f08682d
This commit is contained in:
Sameer Agarwal
2015-01-07 15:10:46 -08:00
parent bcc865f81c
commit 05a07ecc77
65 changed files with 149 additions and 127 deletions
+4 -4
View File
@@ -63,23 +63,23 @@ namespace internal {
#endif
// Return a C++ string.
extern string StringPrintf(const char* format, ...)
extern std::string StringPrintf(const char* format, ...)
// Tell the compiler to do printf format string checking.
CERES_PRINTF_ATTRIBUTE(1, 2);
// Store result into a supplied string and return it.
extern const string& SStringPrintf(string* dst, const char* format, ...)
extern const std::string& SStringPrintf(std::string* dst, const char* format, ...)
// Tell the compiler to do printf format string checking.
CERES_PRINTF_ATTRIBUTE(2, 3);
// Append result to a supplied string.
extern void StringAppendF(string* dst, const char* format, ...)
extern void StringAppendF(std::string* dst, const char* format, ...)
// Tell the compiler to do printf format string checking.
CERES_PRINTF_ATTRIBUTE(2, 3);
// Lower-level routine that takes a va_list and appends to a specified string.
// All other routines are just convenience wrappers around it.
extern void StringAppendV(string* dst, const char* format, va_list ap);
extern void StringAppendV(std::string* dst, const char* format, va_list ap);
#undef CERES_PRINTF_ATTRIBUTE