| 145 | } |
| 146 | |
| 147 | void StringArray::insert (int index, String newString) |
| 148 | { |
| 149 | // NB: the local temp copy is to avoid a dangling pointer if the |
| 150 | // argument being passed-in is a reference into this array. |
| 151 | strings.insert (index, std::move (newString)); |
| 152 | } |
| 153 | |
| 154 | bool StringArray::addIfNotAlreadyThere (const String& newString, bool ignoreCase) |
| 155 | { |