MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / removeEmptyStrings

Method removeEmptyStrings

JUCE/modules/juce_core/text/juce_StringArray.cpp:254–268  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

252
253//==============================================================================
254void 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
270void StringArray::trim()
271{

Callers 15

parseParamMethod · 0.80
refreshParameterListFunction · 0.80
getPluginDescriptionMethod · 0.80
readDeadMansPedalFileFunction · 0.80
tokeniseMethod · 0.80
juce_ValueTree.cppFile · 0.80
getMachineNumbersMethod · 0.80
parseColourMethod · 0.80
parseTransformMethod · 0.80

Calls 5

getReferenceMethod · 0.80
sizeFunction · 0.70
removeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected