MCPcopy Create free account
hub / github.com/devosoft/avida / CountNumWords

Method CountNumWords

avida-core/source/tools/cString.cc:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152int cString::CountNumWords() const
153{
154 int num_words = 0;
155 int pos = CountWhitespace(); // Skip initial whitespace.
156 while( pos<GetSize() ) {
157 pos += CountWordsize(pos);
158 pos += CountWhitespace(pos);
159 num_words++;
160 }
161 return num_words;
162}
163
164
165// -- Search --

Callers 15

mainFunction · 0.80
LoadResourcesMethod · 0.80
CommandFilterMethod · 0.80
FindGenotypeMethod · 0.80
FindOrganismMethod · 0.80
FindLineageMethod · 0.80
FindSexLineageMethod · 0.80
SampleOffspringMethod · 0.80
CommandTraceMethod · 0.80
CommandDetailAverageMethod · 0.80
CommandDetailIndexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected