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