| 124 | } |
| 125 | |
| 126 | size_t TotalViewLength(const std::vector<std::string_view>& views) { |
| 127 | size_t total_view_length = 0; |
| 128 | for (const auto& view : views) { |
| 129 | total_view_length += view.length(); |
| 130 | } |
| 131 | return total_view_length; |
| 132 | } |
| 133 | |
| 134 | std::vector<std::string_view> Views(const std::vector<std::string>& strings) { |
| 135 | std::vector<std::string_view> views(strings.size()); |
no test coverage detected