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

Function count_newlines

erpcgen/src/cpptemplate/cpptempl.cpp:1866–1869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864}
1865
1866inline size_t count_newlines(const std::string &text)
1867{
1868 return std::count(text.begin(), text.end(), '\n');
1869}
1870
1871//////////////////////////////////////////////////////////////////////////
1872// tokenize

Callers 4

cpptempl.cppFile · 0.85
parse_varMethod · 0.85
parse_stmtMethod · 0.85
parse_commentMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected