Changeset View
Changeset View
Standalone View
Standalone View
src/tinyformat.h
Show First 20 Lines • Show All 1,079 Lines • ▼ Show 20 Lines | |||||
std::string format(const std::string &fmt, const Args &... args) { | std::string format(const std::string &fmt, const Args &... args) { | ||||
std::ostringstream oss; | std::ostringstream oss; | ||||
format(oss, fmt.c_str(), args...); | format(oss, fmt.c_str(), args...); | ||||
return oss.str(); | return oss.str(); | ||||
} | } | ||||
} // namespace tinyformat | } // namespace tinyformat | ||||
/** | |||||
* Format arguments and return the string or write to given std::ostream (see | |||||
* tinyformat::format doc for details) | |||||
*/ | |||||
#define strprintf tfm::format | #define strprintf tfm::format | ||||
#endif // TINYFORMAT_H_INCLUDED | #endif // TINYFORMAT_H_INCLUDED |