MCPcopy Create free account
hub / github.com/LASzip/LASzip / StringCountChar

Function StringCountChar

src/mydefs.cpp:800–805  ·  view source on GitHub ↗

returns the occurency count of 'toCount' in 'in'

Source from the content-addressed store, hash-verified

798
799/// returns the occurency count of 'toCount' in 'in'
800size_t StringCountChar(const std::string& in, const char toCount) {
801 int count = 0;
802 for (size_t i = 0; i < in.size(); i++)
803 if (in[i] == toCount) count++;
804 return count;
805}
806
807/// Function for determining the standard programme paths
808const char** getDefaultProgramPaths(size_t& numPaths) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected