MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / normalize_eol

Function normalize_eol

erpcgen/src/cpptemplate/cpptempl.cpp:1538–1553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1536
1537#if __CYGWIN__ || _WIN32
1538void normalize_eol(std::string &str)
1539{
1540 std::string str2 = "";
1541 for (int i = 0; i < str.size(); i++)
1542 {
1543 if (str[i] == '\n')
1544 {
1545 str2 += "\r\n";
1546 }
1547 else if (str[i] != '\r')
1548 {
1549 str2 += str[i];
1550 }
1551 }
1552 str = str2;
1553}
1554#endif
1555
1556void NodeText::gettext(std::ostream &stream, data_map &)

Callers 1

gettextMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected