| 22 | } |
| 23 | |
| 24 | int occurencesInString(const std::string& str, const std::string& occur) |
| 25 | { |
| 26 | int occurrences = 0; |
| 27 | std::string::size_type start = 0; |
| 28 | while ((start = str.find(occur, start)) != std::string::npos) |
| 29 | { |
| 30 | ++occurrences; |
| 31 | start += occur.length(); |
| 32 | } |
| 33 | return occurrences; |
| 34 | } |
| 35 | |
| 36 | bool isStringAlpha(const std::string& str) |
| 37 | { |
no test coverage detected