| 217 | |
| 218 | |
| 219 | static std::string normalize_newlines(const std::string & s) { |
| 220 | #ifdef _WIN32 |
| 221 | static const std::regex nl_regex("\r\n"); |
| 222 | return std::regex_replace(s, nl_regex, "\n"); |
| 223 | #else |
| 224 | return s; |
| 225 | #endif |
| 226 | } |
| 227 | |
| 228 | |
| 229 | static std::string format_using_common( |
no outgoing calls
no test coverage detected