| 174 | } |
| 175 | |
| 176 | std::string findMissing( StringArray const & lhsLines |
| 177 | , StringArray const & rhsLines |
| 178 | , std::string_view const & op ) |
| 179 | { |
| 180 | std::string result; |
| 181 | |
| 182 | for ( auto & lhsLine : lhsLines ) |
| 183 | { |
| 184 | if ( rhsLines.end() == std::find( rhsLines.begin() |
| 185 | , rhsLines.end() |
| 186 | , lhsLine ) ) |
| 187 | { |
| 188 | result += std::string{ op } + lhsLine + "\n"; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | return result; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | //********************************************************************************************* |