\rst Formats arguments and returns the result as a string. **Example**:: std::string message = fmt::sprintf("The answer is %d", 42); \endrst */
| 2173 | \endrst |
| 2174 | */ |
| 2175 | inline std::string sprintf(StringRef format, ArgList args) { |
| 2176 | MemoryWriter w; |
| 2177 | printf(w, format, args); |
| 2178 | return w.str(); |
| 2179 | } |
| 2180 | |
| 2181 | /** |
| 2182 | \rst |