| 93 | |
| 94 | template <typename T> |
| 95 | static bool IsReductionOnSymbolsTrue(const TWtringBuf text, T&& f) { |
| 96 | const auto* p = text.data(); |
| 97 | const auto* const pe = text.data() + text.length(); |
| 98 | while (p != pe) { |
| 99 | const auto symbol = ReadSymbolAndAdvance(p, pe); |
| 100 | if (!f(symbol)) { |
| 101 | return false; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | return true; |
| 106 | } |
| 107 | |
| 108 | bool IsLowerWord(const TWtringBuf text) noexcept { |
| 109 | return IsReductionOnSymbolsTrue(text, [](const wchar32 s) { return IsLower(s); }); |
no test coverage detected