| 49 | } |
| 50 | |
| 51 | StringVector Form::GetComplementaryArgs(StringVector input) |
| 52 | { |
| 53 | size_t currentOffset = 0; |
| 54 | for (auto const& arg : m_ArgumentsForm) |
| 55 | { |
| 56 | if (arg.is_array()) |
| 57 | { |
| 58 | auto size = arg.size(); |
| 59 | auto first = begin(input) + currentOffset; |
| 60 | std::rotate(first, first + size - 1, first + size); |
| 61 | currentOffset += size; |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | ++currentOffset; |
| 66 | } |
| 67 | } |
| 68 | return input; |
| 69 | } |
| 70 | } |
no test coverage detected