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

Function CountLineChar

demo_example/CountCharUsingModules.cpp:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

CountTextCharFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected