MCPcopy Create free account
hub / github.com/alibaba/async_simple / CountLineChar

Function CountLineChar

demo_example/CountChar.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37Lazy<int> CountLineChar(const std::string &line, char c) {
38 auto ret = std::count(line.begin(), line.end(), c);
39 co_return static_cast<int>(ret);
40}
41
42Lazy<int> CountTextChar(const Texts &Content, char c) {
43 int Result = 0;

Callers 1

CountTextCharFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected