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

Function StringCountChar

LASzip/src/mydefs.cpp:796–801  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected