| 127 | } |
| 128 | |
| 129 | int string_vappendf(std::string* output, const char* format, va_list args) { |
| 130 | const size_t old_size = output->size(); |
| 131 | const int rc = string_printf_impl(*output, format, args); |
| 132 | if (rc != 0) { |
| 133 | output->resize(old_size); |
| 134 | } |
| 135 | return rc; |
| 136 | } |
| 137 | |
| 138 | int string_printf(std::string* output, const char* format, ...) { |
| 139 | va_list ap; |
no test coverage detected