MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / string_lines_count

Function string_lines_count

src/Chain/libraries/glua/glua_lutil.cpp:117–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 size_t string_lines_count(const std::string &str)
118 {
119 return std::count(str.begin(), str.end(), '\n') + 1;
120 }
121
122 } // end namespace glua::util
123} // end namespace glua

Callers 4

_push_new_tokenMethod · 0.85
_parse_next_tokenMethod · 0.85
dumpMethod · 0.85

Calls 3

countFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected