| 40 | } |
| 41 | |
| 42 | Lazy<int> CountTextChar(const Texts &Content, char c) { |
| 43 | int Result = 0; |
| 44 | for (const auto &line : Content) |
| 45 | Result += co_await CountLineChar(line, c); |
| 46 | co_return Result; |
| 47 | } |
| 48 | |
| 49 | Lazy<int> CountFileCharNum(const std::string &filename, char c) { |
| 50 | Texts Contents = co_await ReadFile(filename); |
no test coverage detected