returns the occurency count of 'toCount' in 'in'
| 798 | |
| 799 | /// returns the occurency count of 'toCount' in 'in' |
| 800 | size_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 |
| 808 | const char** getDefaultProgramPaths(size_t& numPaths) { |
nothing calls this directly
no outgoing calls
no test coverage detected