==============================================================================
| 252 | |
| 253 | //============================================================================== |
| 254 | void StringArray::removeEmptyStrings (bool removeWhitespaceStrings) |
| 255 | { |
| 256 | if (removeWhitespaceStrings) |
| 257 | { |
| 258 | for (int i = size(); --i >= 0;) |
| 259 | if (! strings.getReference(i).containsNonWhitespaceChars()) |
| 260 | strings.remove (i); |
| 261 | } |
| 262 | else |
| 263 | { |
| 264 | for (int i = size(); --i >= 0;) |
| 265 | if (strings.getReference(i).isEmpty()) |
| 266 | strings.remove (i); |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | void StringArray::trim() |
| 271 | { |
no test coverage detected