MCPcopy Create free account
hub / github.com/Koihik/LuaFormatter / getOSLineSeparator

Function getOSLineSeparator

src/lua-format.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static std::string getOSLineSeparator() {
57#ifdef _WIN32
58 return "\r\n";
59#else
60 return "\n";
61#endif
62}
63
64std::string handleLineSeparator(const std::string& original, const std::string& formatted, const Config& config) {
65 const auto line_separator_config = config.get<std::string>("line_separator");

Callers 1

handleLineSeparatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected