| 157 | } |
| 158 | |
| 159 | void StringArray::addArray (const StringArray& otherArray, int startIndex, int numElementsToAdd) |
| 160 | { |
| 161 | jassert (this != &otherArray); // can't add from our own elements! |
| 162 | |
| 163 | if (startIndex < 0) |
| 164 | { |
| 165 | jassertfalse; |
| 166 | startIndex = 0; |
| 167 | } |
| 168 | |
| 169 | if (numElementsToAdd < 0 || startIndex + numElementsToAdd > otherArray.size()) |
| 170 | numElementsToAdd = otherArray.size() - startIndex; |
| 171 | |
| 172 | while (--numElementsToAdd >= 0) |
| 173 | strings.add (otherArray.strings.getReference (startIndex++)); |
| 174 | } |
| 175 | |
| 176 | void StringArray::mergeArray (const StringArray& otherArray, bool ignoreCase) |
| 177 | { |
no test coverage detected