MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / normalize_newlines

Function normalize_newlines

tests/test-chat-template.cpp:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219static 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
229static std::string format_using_common(

Callers 2

format_using_commonFunction · 0.85
main_automated_testsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected